1 Reply Latest reply on Jan 15, 2012 9:57 PM by Mike Brock

    Errai-2 Marshaller issue

    slawek t Novice

      Hi,

       

      My project was working well until latest maven update. Library errai-marshalling-2.0-20120114.003846-82.jar started giving me an error:

       

      20:32:25,176 ERROR [stderr] (http--127.0.0.1-8080-2) org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint

      20:32:25,176 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:126)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.cdi.server.CDIExtensionPoints$4.callback(CDIExtensionPoints.java:458)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(DeliveryPlan.java:35)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:565)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:44)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:84)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at java.lang.reflect.Method.invoke(Method.java:601)

      20:32:25,177 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.weld.proxies.ErraiService$1366014919$Proxy$_$$_WeldClientProxy.store(ErraiService$1366014919$Proxy$_$$_WeldClientProxy.java)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:71)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)

      20:32:25,178 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

      20:32:25,179 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

      20:32:25,180 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2054)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at java.lang.Thread.run(Thread.java:722)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2) Caused by: java.lang.NullPointerException

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.util.NumbersUtils.qualifiedNumericEncoding(NumbersUtils.java:162)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.marshallers.LongMarshaller.marshall(LongMarshaller.java:52)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$23.marshall(ServerMarshallingFactoryImpl.java:1569)

      20:32:25,181 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$23.marshall(ServerMarshallingFactoryImpl.java:1504)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.util.EncDecUtil.arrayMarshall(EncDecUtil.java:54)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doMarshall(AbstractCollectionMarshaller.java:35)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller.doMarshall(AbstractCollectionMarshaller.java:31)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller.marshall(AbstractBackReferencingMarshaller.java:44)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$29.marshall(ServerMarshallingFactoryImpl.java:1908)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl$29.marshall(ServerMarshallingFactoryImpl.java:1864)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolEnvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:95)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.encodePayload(ErraiProtocol.java:40)

      20:32:25,182 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServer.encodePayloadToByteArrayInputStream(ErraiProtocolServer.java:31)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(BufferHelper.java:70)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueueImpl.java:168)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDelivery(ServerMessageBusImpl.java:657)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:646)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:597)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:182)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.client.api.base.AbstractMessageBuilder$1.sendNowWith(AbstractMessageBuilder.java:76)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:113)

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2)           ... 42 more

      20:32:25,183 ERROR [stderr] (http--127.0.0.1-8080-2) *** Message delivery failure ***

      20:32:25,184 ERROR [stderr] (http--127.0.0.1-8080-2) Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@1c19400

      20:32:25,184 ERROR [stderr] (http--127.0.0.1-8080-2) Message: CommandType=findDocumentsByParentIdAsNull:com.company.project.shared.Sorting:java.lang.String:, ErrorTo=com.company.project.shared.service.rpc.CatalogRPCService:RPC.findDocumentsByParentIdAsNull:com.company.project.shared.Sorting:java.lang.String::Errors:6, ReplyTo=com.company.project.shared.service.rpc.CatalogRPCService:RPC.findDocumentsByParentIdAsNull:com.company.project.shared.Sorting:java.lang.String::RespondTo:6, ToSubject=com.company.project.shared.service.rpc.CatalogRPCService:RPC, MethodParms=[Ljava.lang.Object;@1cc9748

      20:32:25,184 ERROR [stderr] (http--127.0.0.1-8080-2) errorMessage: Error calling remote service: com.company.project.shared.service.rpc.CatalogRPCService:RPC

      20:32:25,184 ERROR [stderr] (http--127.0.0.1-8080-2) exception: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint

      20:32:25,184 ERROR [stderr] (http--127.0.0.1-8080-2) disconnect: false

       

       

      During debug I see that the line of code NumbersUtils.java:162 finishes with NPE because method  public static String qualifiedNumericEncoding(Object o)  is calling twice - first time o parameter value equals Long(0) but anothet time o == null

       

      What's wrong?