Somik,
Are you using the gwt-log jar or working from source? The jar file is setup
to have the server side version of the classes as bytecode (*.class) which
do not use GWT.create() will client side versions of the source code
(*.java) for the GWT compiler which do use GWT.create()

Fred


On Wed, Jun 10, 2009 at 5:22 AM, somik <[email protected]> wrote:

>
> I forgot to mention that I am using GWT 1.5.3 and gwt-log 2.5.3
>
> Thanks,
> Somik
>
> On Jun 9, 1:09 pm, somik <[email protected]> wrote:
> > HI Folks,
> >
> > My gwt-log install was working great till we deployed in a linux
> > environment. Now, I have started getting
> > java.lang.ExceptionInInitializerError and further investigating the
> > cause seems to indicate the RemoteLoggerService is using GWT.create()
> > on the server-side, GWT.create() can only be used on the client side.
> >
> > Here's the stack trace:
> >
> > Caused by: java.lang.ExceptionInInitializerError
> >  at com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl.info
> > (RemoteLoggerServiceImpl.java:70)
> >  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.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:527)
> >  ... 27 more
> > Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create
> > () is only usable in client code! It cannot be called, for example,
> > from server code. If you are running a unit test, check that your test
> > case extends GWTTestCase and that GWT.create() is not called from
> > within an initializer or constructor.
> >  at com.google.gwt.core.client.GWT.create(GWT.java:91)
> >  at com.allen_sauer.gwt.log.client.Log.<clinit>(Log.java):70)
> >  ... 33 more
> >
> > Please let me know, if anyone has workaround or a bug # for the known
> > issue, so that I can track it till the issue gets fixed.
> >
> > Thanks in advance and keep up the good work Fred!
> >
> > Somik
> >
>


-- 
Fred Sauer

Developer Advocate

Google Inc.1600 Amphitheatre Parkway

Mountain View, CA 94043

[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-log" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-log?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to