7 Replies Latest reply: Apr 3, 2013 12:28 AM by Jervis Liu RSS

    java.lang.RuntimeException: no mapping definition for:[...]

    Jervis Liu Apprentice

      Hi, please check following stack trace:

       

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.

      lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: j

      ava.lang.RuntimeException: no mapping definition for: [Lorg.drools.guvnor.models

      .commons.shared.rule.FieldConstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolE

      nvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:99)

      [ERROR]         at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.en

      codePayload(ErraiProtocol.java:40)

      [ERROR]         at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServ

       

       

      This kind of marshaller problems keep coming back to bite us. I fixed seveal this kind of problems before, usually it is because one of the implementations of

      org.drools.guvnor.models.commons.shared.rule.FieldConstraint (it is an interface) can not be marshalled, or because one of the attribute contained in an implementation of FieldConstraint is not marshallable. Because there are lots of classes implemented FieldConstraint, it is very very hard to find the root cause.

       

      I was wondering if Errai can give a more detailed and precise information on the exact class it has problem to marshall. We are using Errai 2.2.0.Final. Also, it will be very helpful if you know how I can dig into errai to find out the exact offfending class with the Errai vesrsion I am currently using. Thanks.

       

      BTW, I remember the error message I had before normally is sth like "no marshalling definition available for ..". So Errai has changed the error message or this is actually a different problem?

       

      Cheers,

      Jervis

       

      The full statck is attached below:

       

      [ERROR] org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoki

      ng endpoint

      [ERROR]         at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.

      callback(ConversationalEndpointCallback.java:135)

      [ERROR]         at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(

      RemoteServiceCallback.java:54)

      [ERROR]         at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIE

      xtensionPoints.java:512)

      [ERROR]         at org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(Del

      iveryPlan.java:43)

      [ERROR]         at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(Se

      rverMessageBusImpl.java:632)

      [ERROR]         at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(Si

      mpleDispatcher.java:46)

      [ERROR]         at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(Err

      aiServiceImpl.java:93)

      [ERROR]         at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(Err

      aiServiceImpl.java:107)

      [ERROR]         at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doP

      ost(DefaultBlockingServlet.java:117)

      [ERROR]         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      [ERROR]         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      [ERROR]         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.

      java:487)

      [ERROR]         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter

      (ServletHandler.java:1097)

      [ERROR]         at org.uberfire.security.server.UberFireSecurityFilter.doFilter(

      UberFireSecurityFilter.java:221)

      [ERROR]         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter

      (ServletHandler.java:1088)

      [ERROR]         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle

      r.java:360)

      [ERROR]         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHan

      dler.java:216)

      [ERROR]         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle

      r.java:181)

      [ERROR]         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle

      r.java:729)

      [ERROR]         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.j

      ava:405)

      [ERROR]         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrappe

      r.java:152)

      [ERROR]         at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLog

      Handler.java:49)

      [ERROR]         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrappe

      r.java:152)

      [ERROR]         at org.mortbay.jetty.Server.handle(Server.java:324)

      [ERROR]         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection

      .java:505)

      [ERROR]         at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpC

      onnection.java:843)

      [ERROR]         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)

      [ERROR]         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:2

      11)

      [ERROR]         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:3

      80)

      [ERROR]         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEnd

      Point.java:395)

      [ERROR]         at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThre

      adPool.java:488)

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.

      lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: j

      ava.lang.RuntimeException: no mapping definition for: [Lorg.drools.guvnor.models

      .commons.shared.rule.FieldConstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolE

      nvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:99)

      [ERROR]         at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.en

      codePayload(ErraiProtocol.java:40)

      [ERROR]         at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServ

      er.encodePayloadToByteArrayInputStream(ErraiProtocolServer.java:31)

      [ERROR]         at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(Buf

      ferHelper.java:70)

      [ERROR]         at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueu

      eImpl.java:186)

      [ERROR]         at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDel

      ivery(ServerMessageBusImpl.java:739)

      [ERROR]         at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMe

      ssageBusImpl.java:728)

      [ERROR]         at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMe

      ssageBusImpl.java:675)

      [ERROR]         at org.jboss.errai.bus.server.service.MessageBusProxy.send(Messa

      geBusProxy.java:59)

      [ERROR]         at org.jboss.errai.bus.client.api.base.ConversationMessageWrappe

      r.sendNowWith(ConversationMessageWrapper.java:228)

      [ERROR]         at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.s

      endNowWith(DefaultMessageBuilder.java:78)

      [ERROR]         at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.

      callback(ConversationalEndpointCallback.java:122)

      [ERROR]         ... 30 more

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.

      lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: n

      o mapping definition for: [Lorg.drools.guvnor.models.commons.shared.rule.FieldCo

      nstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.ObjectMarshall

      er.doNotNullMarshall(ObjectMarshaller.java:122)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.AbstractNullab

      leMarshaller.marshall(AbstractNullableMarshaller.java:29)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:295)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:188)

      [ERROR]         ... 42 more

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.

      lang.RuntimeException: java.lang.RuntimeException: no mapping definition for: [L

      org.drools.guvnor.models.commons.shared.rule.FieldConstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.ObjectMarshall

      er.doNotNullMarshall(ObjectMarshaller.java:122)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.AbstractNullab

      leMarshaller.marshall(AbstractNullableMarshaller.java:29)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultArrayMa

      rshaller._marshall(DefaultArrayMarshaller.java:113)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultArrayMa

      rshaller.marshall(DefaultArrayMarshaller.java:79)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.QualifyingMars

      hallerWrapper.doNotNullMarshall(QualifyingMarshallerWrapper.java:92)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.AbstractNullab

      leMarshaller.marshall(AbstractNullableMarshaller.java:29)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:295)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:188)

      [ERROR]         ... 46 more

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.

      lang.RuntimeException: no mapping definition for: [Lorg.drools.guvnor.models.com

      mons.shared.rule.FieldConstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.ObjectMarshall

      er.doNotNullMarshall(ObjectMarshaller.java:122)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.AbstractNullab

      leMarshaller.marshall(AbstractNullableMarshaller.java:29)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultArrayMa

      rshaller._marshall(DefaultArrayMarshaller.java:113)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultArrayMa

      rshaller.marshall(DefaultArrayMarshaller.java:79)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.QualifyingMars

      hallerWrapper.doNotNullMarshall(QualifyingMarshallerWrapper.java:92)

      [ERROR]         at org.jboss.errai.marshalling.client.marshallers.AbstractNullab

      leMarshaller.marshall(AbstractNullableMarshaller.java:29)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:295)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:188)

      [ERROR]         ... 54 more

      [ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: no ma

      pping definition for: [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstr

      aint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:192)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:295)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:188)

      [ERROR]         ... 62 more

      [ERROR] Caused by: java.lang.RuntimeException: no mapping definition for: [Lorg.

      drools.guvnor.models.commons.shared.rule.FieldConstraint;

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:286)

      [ERROR]         at org.jboss.errai.marshalling.server.marshallers.DefaultDefinit

      ionMarshaller.marshall(DefaultDefinitionMarshaller.java:188)

      [ERROR]         ... 64 more

      [ERROR] *** Message delivery failure ***

      [ERROR] Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@20ea850f

      [ERROR] Message: CommandType=loadContent:org.uberfire.backend.vfs.Path:, ErrorTo

      =org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC.loadContent:org.

      uberfire.backend.vfs.Path::Errors:112, ReplyTo=org.kie.guvnor.guided.rule.servic

      e.GuidedRuleEditorService:RPC.loadContent:org.uberfire.backend.vfs.Path::Respond

      To:112, ToSubject=org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC

      , MethodParms=[PathImpl{uri='default://master@uf-playground/mortgages/src/main/r

      esources/Bankruptcy%20history.gre.drl', fileName='Bankruptcy history.gre.drl', a

      ttrs={lastModifiedTime=org.kie.commons.java.nio.base.FileTimeImpl@4c5acab, isDir

      ectory=false, isRegularFile=true, creationTime=org.kie.commons.java.nio.base.Fil

      eTimeImpl@4dcb10ff, size=257}}]

      [ERROR] errorMessage: Error calling remote service: org.kie.guvnor.guided.rule.s

      ervice.GuidedRuleEditorService:RPC

      [ERROR] exception: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: e

      rror invoking endpoint

        • 1. Re: java.lang.RuntimeException: no mapping definition for:[...]
          Jonathan Fuerth Master

          Hi Jervis,

           

          The error message we need to focus on is the one from the root cause on the server side:

           

          Caused by: java.lang.RuntimeException: no mapping definition for: [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstraint;

                  at org.jboss.errai.marshalling.server.marshallers.DefaultDefinitionMarshaller.marshall(DefaultDefinitionMarshaller.java:286)

           

          This says that the server-side marshaller couldn't figure out how to marshal an array of FieldConstraint. That's somewhat surprising, since the server marshalling system should be able to create an array marshaller of any number of dimensions on demand.

           

          Can you point me at the project on GitHub? I will try compiling it here and see why the server-side marshalling system is unable to deal with arrays of FieldConstraint.

           

          Here are my answers to your additional questions:

           

          I was wondering if Errai can give a more detailed and precise information on the exact class it has problem to marshall.

           

          We did improve the error messages relating to the cases you've had trouble with in the past. This is a new issue. I'll improve this error message in the same way (by adding the class and field name where the unmarshallable thing was encountered).

           

          Also, it will be very helpful if you know how I can dig into errai to find out the exact offfending class with the Errai vesrsion I am currently using. Thanks.

           

          The exact offending type in this case is [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstraint; (one-dimensional array of FieldConstraint).

           

          BTW, I remember the error message I had before normally is sth like "no marshalling definition available for ..". So Errai has changed the error message or this is actually a different problem?

           

          Right, this is indeed a different problem from the ones you've encountered in the past. I've checked the git blame annotations on DefaultDefinitionMarshaller.java:286 (the line that produced the error message). It hasn't changed since June 2012.

           

          -Jonathan

          • 2. Re: java.lang.RuntimeException: no mapping definition for:[...]
            Jervis Liu Apprentice

            The error message we need to focus on is the one from the root cause on the server side:

             

            Caused by: java.lang.RuntimeException: no mapping definition for: [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstraint;

                    at org.jboss.errai.marshalling.server.marshallers.DefaultDefinitionMarshaller.marshall(DefaultDefinitionMarshaller.java:286)

             

            This says that the server-side marshaller couldn't figure out how to marshal an array of FieldConstraint. That's somewhat surprising, since the server marshalling system should be able to create an array marshaller of any number of dimensions on demand.

             

            Can you point me at the project on GitHub? I will try compiling it here and see why the server-side marshalling system is unable to deal with arrays of FieldConstraint.

            TBH, I am not sure if you want to try this out by yourself. It can be hard for you to try it out. Anyway, here is what you need to do (the shortest version ;-)):

            1. checkout https://github.com/droolsjbpm/guvnor

            2. build Guvnor: mvn clean install -DskipTests

            3. cd guvnor-ng/guvnor-showcase/guvnor-webapp directory. Run command: mvn gwt:run

            4. on the login page, use username/password: admin/admin

            5. On the left-hand navigation panel, click uf-playground -> mortgages -> Resources -> Bankruptcy history.gre.drl. You should be able to see the error message from server console.

             

             

            We did improve the error messages relating to the cases you've had trouble with in the past. This is a new issue. I'll improve this error message in the same way (by adding the class and field name where the unmarshallable thing was encountered).

             

            Also, it will be very helpful if you know how I can dig into errai to find out the exact offfending class with the Errai vesrsion I am currently using. Thanks.

             

            The exact offending type in this case is [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstraint; (one-dimensional array of FieldConstraint).

            org.drools.guvnor.models.commons.shared.rule.FieldConstraint is an interface, it has several concrete implementations. So the root problem is one of its implementation (or an attribute in the implementation class) can not be marshalled.

             

            BTW, I remember the error message I had before normally is sth like "no marshalling definition available for ..". So Errai has changed the error message or this is actually a different problem?

             

            Right, this is indeed a different problem from the ones you've encountered in the past. I've checked the git blame annotations on DefaultDefinitionMarshaller.java:286 (the line that produced the error message). It hasn't changed since June 2012.

            If you already know the offending line and you know how to fix it (for example make it print out the concrete implementation class name instead of interface name), probably it is easier for you to fix in errai and let me try the snapshot version of errai in our project to check if the fix actually works,

             

            Thanks,

            Jervis

            • 3. Re: java.lang.RuntimeException: no mapping definition for:[...]
              Jonathan Fuerth Master

              Hi Jervis,

               

              I got Guvnor to build (tip of the master branch, commit e3c1363: is that correct?) but I encountered a different exception when visiting the Bankruptcy History page in Dev Mode:

               

              [ERROR] org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint
              [ERROR]           at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:132)
              [ERROR]           at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)
              [ERROR]           at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:512)
              [ERROR]           at org.jboss.errai.bus.client.framework.DeliveryPlan.deliver(DeliveryPlan.java:43)
              [ERROR]           at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:632)
              [ERROR]           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)
              [ERROR]           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:93)
              [ERROR]           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:107)
              [ERROR]           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:117)
              [ERROR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              [ERROR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
              [ERROR]           at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:221)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              [ERROR]           at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              [ERROR]           at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              [ERROR]           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
              [ERROR]           at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
              [ERROR]           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              [ERROR]           at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
              [ERROR]           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              [ERROR]           at org.mortbay.jetty.Server.handle(Server.java:324)
              [ERROR]           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              [ERROR]           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
              [ERROR]           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
              [ERROR]           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              [ERROR]           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              [ERROR]           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              [ERROR]           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
              [ERROR] Caused by: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field org.drools.guvnor.models.guided.dtable.shared.model.legacy.GuidedDecisionTable.packageName
              [ERROR] ---- Debugging information ----
              [ERROR] field               : packageName
              [ERROR] class               : org.drools.guvnor.models.guided.dtable.shared.model.legacy.GuidedDecisionTable
              [ERROR] required-type       : org.drools.guvnor.models.guided.dtable.shared.model.legacy.GuidedDecisionTable
              [ERROR] converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
              [ERROR] path                : /decision-table/packageName
              [ERROR] version             : null
              [ERROR] -------------------------------
              [ERROR]           at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.determineType(AbstractReflectionConverter.java:453)
              [ERROR]           at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:294)
              [ERROR]           at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234)
              [ERROR]           at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
              [ERROR]           at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
              [ERROR]           at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
              [ERROR]           at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
              [ERROR]           at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
              [ERROR]           at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
              [ERROR]           at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1058)
              [ERROR]           at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1042)
              [ERROR]           at com.thoughtworks.xstream.XStream.fromXML(XStream.java:913)
              [ERROR]           at com.thoughtworks.xstream.XStream.fromXML(XStream.java:904)
              [ERROR]           at org.drools.guvnor.models.guided.dtable.backend.GuidedDTXMLPersistence.unmarshal(GuidedDTXMLPersistence.java:112)
              [ERROR]           at org.drools.guvnor.models.guided.dtable.backend.GuidedDecisionTableConverter.convert(GuidedDecisionTableConverter.java:21)
              [ERROR]           at org.drools.compiler.kie.builder.impl.KieBuilderImpl.copySourceToTarget(KieBuilderImpl.java:247)
              [ERROR]           at org.drools.compiler.kie.builder.impl.KieBuilderImpl.addKBaseFilesToTrg(KieBuilderImpl.java:234)
              [ERROR]           at org.drools.compiler.kie.builder.impl.KieBuilderImpl.addKBasesFilesToTrg(KieBuilderImpl.java:218)
              [ERROR]           at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:148)
              [ERROR]           at org.kie.guvnor.builder.Builder.build(Builder.java:107)
              [ERROR]           at org.kie.guvnor.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:95)
              [ERROR]           at org.kie.guvnor.builder.BuildServiceImpl.build(BuildServiceImpl.java:72)
              [ERROR]           at org.kie.guvnor.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUProjectDataModelOracleCache.makeProjectDefinition(LRUProjectDataModelOracleCache.java:88)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUProjectDataModelOracleCache.assertProjectDataModelOracle(LRUProjectDataModelOracleCache.java:74)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUProjectDataModelOracleCache$Proxy$_$$_WeldClientProxy.assertProjectDataModelOracle(LRUProjectDataModelOracleCache$Proxy$_$$_WeldClientProxy.java)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUDataModelOracleCache.makePackageDataModelOracle(LRUDataModelOracleCache.java:111)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUDataModelOracleCache.assertPackageDataModelOracle(LRUDataModelOracleCache.java:99)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.cache.LRUDataModelOracleCache$Proxy$_$$_WeldClientProxy.assertPackageDataModelOracle(LRUDataModelOracleCache$Proxy$_$$_WeldClientProxy.java)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.DataModelServiceImpl.getDataModel(DataModelServiceImpl.java:65)
              [ERROR]           at org.kie.guvnor.datamodel.backend.server.DataModelServiceImpl$Proxy$_$$_WeldClientProxy.getDataModel(DataModelServiceImpl$Proxy$_$$_WeldClientProxy.java)
              [ERROR]           at org.kie.guvnor.guided.rule.backend.server.GuidedRuleEditorServiceImpl.loadContent(GuidedRuleEditorServiceImpl.java:193)
              [ERROR]           at org.kie.guvnor.guided.rule.backend.server.GuidedRuleEditorServiceImpl$Proxy$_$$_WeldClientProxy.loadContent(GuidedRuleEditorServiceImpl$Proxy$_$$_WeldClientProxy.java)
              [ERROR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [ERROR]           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              [ERROR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              [ERROR]           at java.lang.reflect.Method.invoke(Method.java:597)
              [ERROR]           at org.jboss.errai.bus.server.io.ConversationalEndpointCallback.callback(ConversationalEndpointCallback.java:114)
              [ERROR]           ... 30 more
              [ERROR] *** Message delivery failure ***
              [ERROR] Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@4b2036d3
              [ERROR] Message: CommandType=loadContent:org.uberfire.backend.vfs.Path:, ErrorTo=org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC.loadContent:org.uberfire.backend.vfs.Path::Errors:120, ReplyTo=org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC.loadContent:org.uberfire.backend.vfs.Path::RespondTo:120, ToSubject=org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC, MethodParms=[PathImpl{uri='default://master@uf-playground/mortgages/src/main/resources/Bankruptcy%20history.gre.drl', fileName='Bankruptcy history.gre.drl', attrs={lastModifiedTime=org.kie.commons.java.nio.base.FileTimeImpl@2fef7d2d, isDirectory=false, isRegularFile=true, creationTime=org.kie.commons.java.nio.base.FileTimeImpl@14032df1, size=278}}]
              [ERROR] errorMessage: Error calling remote service: org.kie.guvnor.guided.rule.service.GuidedRuleEditorService:RPC
              [ERROR] exception: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: error invoking endpoint
              [ERROR] disconnect: false
              [ERROR] org.jboss.errai.marshalling.client.api.exceptions.MarshallingException: class is not available to the marshaller framework: com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException
              [ERROR]           at org.jboss.errai.marshalling.server.MappingContextSingleton$4.getMarshaller(MappingContextSingleton.java:283)
              [ERROR]           at org.jboss.errai.marshalling.client.api.AbstractMarshallingSession.getMarshallerInstance(AbstractMarshallingSession.java:67)
              [ERROR]           at org.jboss.errai.marshalling.client.util.MarshallUtil.getMarshaller(MarshallUtil.java:125)
              [ERROR]           at org.jboss.errai.marshalling.client.marshallers.ErraiProtocolEnvelopeMarshaller.marshall(ErraiProtocolEnvelopeMarshaller.java:97)
              [ERROR]           at org.jboss.errai.marshalling.client.protocols.ErraiProtocol.encodePayload(ErraiProtocol.java:40)
              [ERROR]           at org.jboss.errai.marshalling.server.protocol.ErraiProtocolServer.encodePayloadToByteArrayInputStream(ErraiProtocolServer.java:31)
              [ERROR]           at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(BufferHelper.java:70)
              [ERROR]           at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueueImpl.java:186)
              [ERROR]           at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDelivery(ServerMessageBusImpl.java:739)
              [ERROR]           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:728)
              [ERROR]           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:675)
              [ERROR]           at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:228)
              [ERROR]           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.sendNowWith(DefaultMessageBuilder.java:78)
              [ERROR]           at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:107)
              [ERROR]           at org.jboss.errai.bus.client.util.ErrorHelper.sendClientError(ErrorHelper.java:77)
              [ERROR]           at org.jboss.errai.bus.client.util.ErrorHelper.handleMessageDeliveryFailure(ErrorHelper.java:170)
              [ERROR]           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:53)
              [ERROR]           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:93)
              [ERROR]           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:107)
              [ERROR]           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:117)
              [ERROR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
              [ERROR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
              [ERROR]           at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:221)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
              [ERROR]           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
              [ERROR]           at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              [ERROR]           at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              [ERROR]           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
              [ERROR]           at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
              [ERROR]           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              [ERROR]           at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
              [ERROR]           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              [ERROR]           at org.mortbay.jetty.Server.handle(Server.java:324)
              [ERROR]           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
              [ERROR]           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
              [ERROR]           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
              [ERROR]           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
              [ERROR]           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
              [ERROR]           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
              [ERROR]           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
              

               

              What should I do to work around this, so I can get to the Errai marshalling problem?

               

              -Jonathan

              • 4. Re: java.lang.RuntimeException: no mapping definition for:[...]
                Jervis Liu Apprentice

                Hi Jonathan, thanks for looking into this problem. Guvnor is a bit broken right now. I will give you a shout once I get it fixed. Thanks.

                 

                Cheers,

                Jervis

                • 5. Re: java.lang.RuntimeException: no mapping definition for:[...]
                  Jervis Liu Apprentice

                  Guvnor example is fixed. You should be able to reproduce "no mapping definition for: [Lorg.drools.guvnor.models.commons.shared.rule.FieldConstraint;" error now with the latest master.

                   

                  Thanks,

                  Jervis

                  • 6. Re: java.lang.RuntimeException: no mapping definition for:[...]
                    Christian Sadilek Master

                    Hi Jervis,

                     

                    This was caused by a tricky bug that is fixed now in the latest 2.3.0-SNAPSHOTs. The bad news is that there's no reliable workaround for 2.2.0.Final, but 2.3.0.Final is scheduled to be released in 2 weeks from now. So, you won't have to stay on SNAPSHOTs for long.

                     

                    Cheers,

                    Christian

                    • 7. Re: java.lang.RuntimeException: no mapping definition for:[...]
                      Jervis Liu Apprentice

                      Hi Christian, thanks a lot for the fix!

                       

                      Cheers,

                      Jervis