JSR303 Pre-Persist / Pre-Persist / Pre-Remove Validation not covered by onConstraintViolations() and throws Exception

2012-04-03 Thread Romain BIARD


Hi all,


I'm writing Custom Validators (server side I mean) in order to validate an 
entity before a persist() call (and only in this specific case).

Actually my final goal is to display localized messages when users want to 
insert a duplicate entry in my CRUD Webapp.


To do this, i have tried to play with validation groups and validation 
triggers. In Hibernate you can associate Custom ValidationGroup (Here  
com.test.cis.server.validator.PreRemove 
, com.test.cis.server.validator.PrePersist, com.test.cis.server.validator
.PreUpdate) and validation triggers.

*
*

*persistence.xml*


property name=javax.persistence.validation.group.pre-remove value=
com.test.cis.server.validator.PreRemove/

property name=javax.persistence.validation.group.pre-persist value=
javax.validation.groups.Default,com.test.cis.server.validator.PrePersist/

property name=javax.persistence.validation.group.pre-update value=
javax.validation.groups.Default,com.test.cis.server.validator.PreUpdate/


On my bean, I've put my custom annotation with 
com.test.cis.server.validator.PrePersist.class 
as validation group.


@MyConstraint(groups=com.test.cis.server.validator.PrePersist.class)


So my problem turns around the GWT validation with requestfactory : the 
validation is done *before* (so the validation will not execute my custom 
validator at this time ) the call to persist (which will trigger 
myConstraint validator) so GWT can't handle Constraint Violation exception 
that occurs during a method call(i.e during method execution). In this 
case, the exception is catch by the standard ExceptionHandling mechanism 
and every informations / Localized messages are lost.


javax.validation.ConstraintViolationException: validation failed for 
classes [com.test.domain.entity.CatalogueEntity] during persist time for 
groups [javax.validation.groups.Default, 
com.test.cis.server.validator.PrePersist, ]


Have you ever been in this case ? Another solution ?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/HOHWp0VmVN8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSR303 Pre-Persist / Pre-Persist / Pre-Remove Validation not covered by onConstraintViolations() and throws Exception

2012-04-03 Thread Romain BIARD
Maybe i have to override SimpleRequestProcessor.process(RequestMessage req, 
ResponseMessage resp)

around 

// Validate entities

ListViolationMessage errorMessages = validateEntities(source);


 if (!errorMessages.isEmpty()) {

resp.setViolations(errorMessages);

return;

}


 RequestState returnState = new RequestState(source);


 // Invoke methods

ListSplittable invocationResults = new ArrayListSplittable();

ListBoolean invocationSuccess = new ArrayListBoolean();

*processInvocationMessages*(source, req, invocationResults, 
invocationSuccess, returnState);



Le mardi 3 avril 2012 22:40:04 UTC+2, Romain BIARD a écrit :

 Hi all,


 I'm writing Custom Validators (server side I mean) in order to validate an 
 entity before a persist() call (and only in this specific case).

 Actually my final goal is to display localized messages when users want to 
 insert a duplicate entry in my CRUD Webapp.


 To do this, i have tried to play with validation groups and validation 
 triggers. In Hibernate you can associate Custom ValidationGroup (Here  
 com.test.cis.server.validator.PreRemove 
 , com.test.cis.server.validator.PrePersist, com.test.cis.server.validator
 .PreUpdate) and validation triggers.

 *
 *

 *persistence.xml*


 property name=javax.persistence.validation.group.pre-remove value=
 com.test.cis.server.validator.PreRemove/

 property name=javax.persistence.validation.group.pre-persist value=
 javax.validation.groups.Default,com.test.cis.server.validator.PrePersist
 /

 property name=javax.persistence.validation.group.pre-update value=
 javax.validation.groups.Default,com.test.cis.server.validator.PreUpdate
 /


 On my bean, I've put my custom annotation with 
 com.test.cis.server.validator.PrePersist.class as validation group.


 @MyConstraint(groups=com.test.cis.server.validator.PrePersist.class)


 So my problem turns around the GWT validation with requestfactory : the 
 validation is done *before* (so the validation will not execute my custom 
 validator at this time ) the call to persist (which will trigger 
 myConstraint validator) so GWT can't handle Constraint Violation exception 
 that occurs during a method call(i.e during method execution). In this 
 case, the exception is catch by the standard ExceptionHandling mechanism 
 and every informations / Localized messages are lost.


 javax.validation.ConstraintViolationException: validation failed for 
 classes [com.test.domain.entity.CatalogueEntity] during persist time for 
 groups [javax.validation.groups.Default, 
 com.test.cis.server.validator.PrePersist, ]


 Have you ever been in this case ? Another solution ?





-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/frbG_i_qp4AJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Interface composition on Proxies

2012-03-12 Thread Romain BIARD
Hi all,

I'm trying to do this kind of things:

interface HasCode{

  void setCode(String code);

  String getCode();
}

interface IsIdentifiable{

  void setId(Long id);

  Long getId();

  Integer getVersion();

  void setVersion(Integer version);
}

@ProxyFor(AProxy.class)
interface AProxy extends EntityProxy,HasCode,IsIdentifiable{

}

Of course, these interfaces have been placed in my shared package and
I use them for my concretes entity classes on back side.
On Validation I have an error like this :

[INFO] diagnostic /src/main/java/com/test/cis/toto/shared/api/
HasLabel.java:6: Could not find domain method similar to void
setLabel(java.lang.String)
[INFO] diagnostic /src/main/java/com/test/cis/toto/shared/api/
HasLabel.java:8: Could not find domain method similar to
java.lang.String getLabel()

I didn't manage to find what is wrong. Can I do this or interface
composition has to be done only with interfaces which represents
concrete/abstract classes on the server ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RequestFactory and JSR 303 validator behavior customization

2011-09-30 Thread Romain BIARD
Hi all,

My project has some Entities stored in Mysql and we are using Hibernate 
Validator as JSR 303 implementation.

My problem is that GWT ServiceLayerDecorator considers that any operations 
on the database need a complete validation on the objects, even delete (in 
my case).

Maybe it would be nice if we had the possibility to choose *FOR A GIVEN 
METHOD* declared in a RequestContext to skip the validation and just 
execute the method, bypassing the validation.
(maybe with a *@ValidatorPolicy(ValidatorPolicy.SKIPPED)*)

Even if I'm conscious that my DB should not be invalid toward my 
validators,it is very embarrassing because it need a intervention directly 
on the DB (validators block the GWT user and even a Administrator could not 
repair the damages done in the DB through my app).

What do you think about this ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qJfh_gGGi4IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Class Cast Exception while running requestfactory-apt

2011-09-27 Thread Romain BIARD
Hi all,

I'm updating my project to GWT 2.4.0 but i'm facing an issue not
really documented while running requestfactory-apt.

[INFO] javac option: -proc:only
[INFO] javac option: -d
[INFO] javac option: /Users/romainbiard/Soft/workspace-foo/bar/target/
foobar-1.0.8-SNAPSHOT/WEB-INF/classes
[INFO] javac option: -s
[INFO] javac option: /Users/romainbiard/Soft/workspace-foo/bar/target/
generated-sources/apt
[INFO] diagnostic /Users/romainbiard/Soft/workspace-foo/bar/src/main/
java/com/foo/cis/foobar/client/requestfactory/Persistable.java:9:
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol
$TypeSymbol cannot be cast to javax.lang.model.element.TypeElement
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitExecutable(RequestContextScanner.java:
62)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitExecutable(RequestContextScanner.java:
35)
at com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:
1227)
at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:
122)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:
63)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scanAllInheritedMethods(ScannerBase.java:
126)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitType(RequestContextScanner.java:
104)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitType(RequestContextScanner.java:
35)
at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:
832)
at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:
122)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:
63)
at
com.google.web.bindery.requestfactory.apt.State.executeJobs(State.java:
248)
at
com.google.web.bindery.requestfactory.apt.RfValidator.process(RfValidator.java:
83)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:
625)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:
554)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:
699)
at
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:
981)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:
727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
at
org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:
350)
at
org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:
197)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)

and here's the interface previously mentionned :

package com.foo.cis.foobar.client.requestfactory;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import 

Re: Class Cast Exception while running requestfactory-apt

2011-09-27 Thread Romain BIARD
Thank you Thomas, I found the issue just after i started this thread.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7CH_yeS5P9UJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



ValueProxy Implementation Rule ?

2011-07-30 Thread Romain BIARD
Hi all,

I'm using valueProxies in order to give Criterias to a static method
find located in my ServerSide Entity.
Each ValueProxy had a setter and a getter.

But today I realized that only setter had to be used Client side so I
decided to remove all the getters on the Proxy but let them on
*.shared POJO which my proxy is a valueProxy for.

But It don't seems to work. The application is still compling but I'm
facing a RuntimeException:

Caused by: java.lang.IllegalArgumentException: searchKey
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doCoderFor(AutoBeanCodexImpl.java:
524)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:
276)

I didn't understand why but I suppose that RequestFactory don't manage
any ValueProxies without getters AND setters declared.

Maybe it has to call getters when object are created Server Side ???

If it is true, maybe this implementation rule should be documented.
Anybody in this case ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RF constraint violation reporting with unpersisted proxies

2011-07-19 Thread Romain BIARD
I just posted the whole patched class ...

It works great for me:

http://code.google.com/p/google-web-toolkit/issues/detail?id=6319

Romain

On Jul 18, 8:25 pm, Jesse Hutton jesse.hut...@gmail.com wrote:
 I'm just starting with RF and I hit a snag related to the workflow of
 creatingnewentityrecords on the server. If I do something like:

 MyProxy proxy = request.create(MyProxy.class);
 myDriver.edit(proxy, request);

 and then in my save click handler:

 request.persist(proxy).fire(newReceiverVoid() {
 ...

 });

 any constraint violations will be reported to the receiver in
 onViolation(). But, they are not reflected in the UI where I'm using
 ValueBoxEditorDecorators to wrap my text fields. In
 AbstractRequestFactoryEditorDriver$SimpleViolationAdapter, getKey() is
 returning null, which is preventing the display in
 SimpleViolation#pushViolations().

 However, if I'm editing a an existingentity,
 SimpleViolationAdapter#getKey() returns non-null, and theviolation
 message is displayed. I just realized that even if I do:
     request.getNew().fire(newReceiverMyProxy() {
       @Override
       public void onSuccess(MyProxy response) {
         currentProxy = response;
         edit(response);
       }
     });

 where my service method just returns anewentityinstance, getKey()
 again is non-null and constraintviolationmessages are shown.

 So, that appears to be a fine workaround for the violations display
 issue. But, is there a bug there? Or, is there a better workflow than
 writing getNew() methods for all your request/service methods for
 handling not-yet-persistedentityproxies?

 Jesse

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



NPE when HasDataEditor for field of type List initialize()

2011-06-22 Thread Romain BIARD
Hi,

We are using editor framework for CRUD operations with mysql/Hibernate
Backend. We managed to create and modify simple fields (String, other
proxies entities ...) but we have a NPE while trying to edit a new
proxy created by RequestContext.create(); which contains an arraylist
of another entityProxy :

@ProxyFor(A.class)
public interface AProxy extends EntityProxy {
   Long getId();
   Integer getVersion();
   void setB(ListBProxy listofB);
   ListBProxy getB();
}

...Here's the View

@Path(b)
HasDataEditorBProxy bEditor;

@UiField
CellTableBProxy bTable;

ListDataProviderBProxy bTableDataProvider;

public AEditorView() {
bTableDataProvider = new ListDataProviderBProxy();

initWidget(uiBinder.createAndBindUi(this));

bEditor = HasDataEditor.of(bTable);
 ...


... We initialize the editor

getView().getDataBinder().initialize(requestFactory, getView());
context = createRequestContext();
AProxy newEntity = context.create(AProxy.class);
--edit(newEntity, context);

...

And Boom!
Here's the stack :


Caused by: java.lang.NullPointerException: null
at
com.google.gwt.editor.client.adapters.ListEditorWrapper.init(ListEditorWrapper.java:
43)
at
com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java:
131)
at
com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java:
1)
at
com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java:
260)
at
com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java:
85)
at
c.f.c.p.client.ui.profile.edit.ProfileEditorView_RequestFactoryEditorDelegate.attachSubEditors(ProfileEditorView_RequestFactoryEditorDelegate.java:
44)
at
com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java:
264)
at
com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java:
85)
at
com.google.gwt.requestfactory.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java:
92)
at
c.f.c.p.client.mvp.editor.EditorPresenter.edit(EditorPresenter.java:
63)


Any ideas ?

We don't understand why the collections based fields of a new proxy
aren't initialized with an empty Collection (ArrayList for instance).

Best Regards

Romain BIARD

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Need Feedback on charts frameworks for GWT

2011-03-23 Thread Romain BIARD
Ok first of all thanks for sharing your XP ;)

@Martin Trummer
In fact I don't have internet access while most of applications we are
developing are located on client's intranet :( I'll take a look on
chronoscope :)

@Daniel Renner
GXT was my first idea but GPLv3 or Commercial License don't fit my
client's strategy (only Apache , MIT,... without copyleft).

@opn
Although its license policy is pretty good, I think that i couldn't
explain to my client that all charts in his application would be based
on a stack maintained by a few people with no visibility on their
roadmap.
(and the charts are not such pretty as other Ajax framework like
jQuery / ext-js).

In the same time of my investigation,I'm trying to build a wrapper for
jQPlot which seems to draw pretty charts without any pain and it looks
really good.




On Mar 23, 11:04 am, nino ekambi jazzmatad...@googlemail.com wrote:
 Looks pretty ok but the API is kind of complicate imho.
 It should me more simpler to do that.

 2011/3/23 opn open...@gmx.net





  What about clientsidegchart? (http://code.google.com/p/
  clientsidegchart/?redir=1)

  I took a look at it and it looks kind of complex to create the charts,
  but the style is pretty nice!
  Anyone tried those and can tell if the library worked for him / her?

  Regards

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --

 GWT API for the Flash 
 Platformhttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Need Feedback on charts frameworks for GWT

2011-03-21 Thread Romain BIARD
Hi everybody,

I'm looking for different feedback about frameworks which provides
client-side charts, especially well integrated with GWT MVP
Architecture (I managed to persuade my client to migrate to GWT
2.2.0 :p ) . I don't know which solution fit the best and the
community didn't discuss about it for a while...

What about your XP ? JS wrapper, clientsidegchart, GXT ?

Thanks for your feedback !

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



NPE on Integrating GIN with Request Factory

2011-01-21 Thread Romain BIARD
Hi everybody,

I'm currently trying to integrate GIN on a POC which deals with
RequestFactory and EventBus.
1) I first noticed that I had to extends some Technical Classes with
no reasons except to mark the constructor whit @Inject like this :

public class PamdaPlaceHistoryHandler extends PlaceHistoryHandler {

@Inject
public PamdaPlaceHistoryHandler(PlaceHistoryMapper mapper) {
super(mapper);
}
}

2) After initializing the injector and create all the singletons
through GIN (eventBus, RequestFactory and so on ...), my app threw a
NPE when fire a event in order to retrieve Proxies through Request
Factory . Here's the stack :


Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.activity.shared.ActivityManager.onPlaceChange(ActivityManager.java:
173)
at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
52)
at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
1)
at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
204)
at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
at
com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
115)
at
com.google.gwt.place.shared.PlaceHistoryHandler.handleHistoryToken(PlaceHistoryHandler.java:
179)
at
com.google.gwt.place.shared.PlaceHistoryHandler.handleCurrentHistory(PlaceHistoryHandler.java:
117)
at
com.francetelecom.entreprise.fme.client.Pamda.onModuleLoad(Pamda.java:
36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException: null
at
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.doFire(AbstractRequestContext.java:
606)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.fire(AbstractRequestContext.java:
210)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequest.fire(AbstractRequest.java:
54)
at
com.google.gwt.requestfactory.shared.impl.AbstractRequest.fire(AbstractRequest.java:
59)

The cause of this NPE seems to come from the request Factory which
hasn't been initialized with the EventBus

Am I supose to call requestFactory.initialize(eventBus) each time i
would make a call? Am I wrong on initialization on my App ?

Thank you for your responses

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.