AnsweredAssumed Answered

Warning ERROR: Gwt.create() ¿what is the problem?

Question asked by jeanfranco on Sep 3, 2013
Latest reply on Sep 12, 2013 by jbarrez
Deploy activiti 8.5 on websphere express and Oracle 10g express

I have the following error or warning in the log.



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.


thanks!



More…

[9/3/13 4:26:46:044 ADT] 0000007e Application   E   Terminal error:
                                 java.lang.ExceptionInInitializerError
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:250)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
   at java.lang.Class.forNameImpl(Native Method)
   at java.lang.Class.forName(Class.java:170)
   at com.ibm.oti.reflect.AnnotationParser.parseClass(AnnotationParser.java:217)
   at com.ibm.oti.reflect.AnnotationParser.parseElementValue(AnnotationParser.java:170)
   at com.ibm.oti.reflect.AnnotationParser.parseAnnotation(AnnotationParser.java:143)
   at com.ibm.oti.reflect.AnnotationParser.parseAnnotations(AnnotationParser.java:57)
   at java.lang.Class.getDeclaredAnnotations(Class.java:1664)
   at java.lang.Class.getAnnotations(Class.java:1627)
   at java.lang.Class.getAnnotation(Class.java:1601)
   at java.lang.Class.isAnnotationPresent(Class.java:1695)
   at com.vaadin.terminal.gwt.server.JsonPaintTarget.hasClientWidgetMapping(JsonPaintTarget.java:1063)
   at com.vaadin.terminal.gwt.server.JsonPaintTarget.getTag(JsonPaintTarget.java:1036)
   at com.vaadin.ui.AbstractComponent.paint(AbstractComponent.java:734)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.writeUidlResponce(AbstractCommunicationManager.java:1044)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.paintAfterVariableChanges(AbstractCommunicationManager.java:925)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:792)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:325)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
   at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
   at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
   at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
   at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
   at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
   at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:522)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:311)
   at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:87)
   at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
   at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
   at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
   at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1783)
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:92)
   at com.google.gwt.user.client.ui.UIObject.<clinit>(UIObject.java:188)
   at java.lang.J9VMInternals.initializeImpl(Native Method)
   at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)
   … 53 more

Outcomes