6 Replies Latest reply on Apr 4, 2007 12:34 PM by Joe Nguyen

    Could not find data type to lookup by marshaller

    Joe Nguyen Newbie

      I have a cluster with two nodes hosted by Jboss 4.0.3SP1. All run well, but I keep getting these msgs in the log. Even when I started the cluster with just one node, I still got these msgs. I don't know why it tried to load from remote server. When I set the priority value to TRACE, I did not see this message "Remotely loaded marshaller". That meant the server could not even load it from the server.

      From the log, I could see the server tried to find the Marshaller first which meant it attempted to marshall data before sending it out.
      Could some one give me a suggestion?

      2007-04-03 10:53:26,874 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:27,232 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:27,299 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:27,299 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:27,661 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:27,730 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:27,731 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:29,382 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:29,455 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:29,455 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:29,511 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:29,643 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:29,644 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:29,721 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:29,783 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:29,783 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:29,859 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:29,948 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:29,948 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:30,087 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:30,161 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:30,161 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:30,830 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:30,884 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:30,885 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:31,165 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:31,231 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:31,231 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:45,014 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:45,162 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:45,162 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:52,473 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:52,591 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:52,592 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:52,642 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
      2007-04-03 10:53:52,704 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
      2007-04-03 10:53:52,704 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
      2007-04-03 10:53:53,180 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class


        • 1. Re: Could not find data type to lookup by marshaller
          Joe Nguyen Newbie

          The MarshallFactory.getMarshaller() was invoked by RemoteClientInvoker.invoke()


          // try by locator (in case marshaller class name specified)
          marshaller = MarshalFactory.getMarshaller(getLocator(), getClassLoader());
          if(marshaller == null)
          {
          // need to have a marshaller, so create a default one
          marshaller = MarshalFactory.getMarshaller(getDataType());
          if(marshaller == null)
          {
          // went as far as possible to find a marshaller, will have to give up
          throw new InvalidMarshallingResource("Can not find a valid marshaller for data type: " + getDataType());
          }
          }
          }
          .............


          Since marshaller was succeeded by MarshalFactory.getMarshaller(getDataType());, my app ran fine. I intended to increase the priority level in the log4j.xml to not printing the message. any suggestion?


          • 2. Re: Could not find data type to lookup by marshaller
            Brian Stansberry Master

            It's not clear from your post what the context of your question is. What is using Remoting and making these calls?

            If you understand what's using Remoting, and your question is just about how Remoting is working, suggest you post on the Remoting forum at http://www.jboss.com/index.html?module=bb&op=viewforum&f=222.

            If it's not clear to you what's using Remoting, try to give more details about when this problem occurs.

            • 3. Re: Could not find data type to lookup by marshaller
              Joe Nguyen Newbie

              This problem occurred right after completing a method of a stateless session bean. At the end of the method, I logged
              LOGGER.debug("Sending Response, Time since store proc called : "
              + (System.currentTimeMillis() - t));

              Here is the log info


              Sending Response, Time since store proc called : 22
              2007-04-03 10:53:26,874 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
              2007-04-03 10:53:26,874 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
              2007-04-03 10:53:27,232 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
              2007-04-03 10:53:27,299 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
              2007-04-03 10:53:27,299 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from locator by both data type and class name but was unsuccessful. Will try to load it from remote server.
              2007-04-03 10:53:27,661 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by unmarshaller class
              2007-04-03 10:53:27,730 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Could not find data type to lookup by marshaller class
              2007-04-03 10:53:27,731 DEBUG [org.jboss.remoting.marshal.MarshalFactory] Tried to find marshaller from lo


              • 4. Re: Could not find data type to lookup by marshaller
                Joe Nguyen Newbie

                These codes had been working fine for months under default configuration, but it began logging these msgs after I grouped them in cluster. Though I fixed it by modifying the log level, the problem is still there. I would like to investigate what trigger the problem.

                • 5. Re: Could not find data type to lookup by marshaller
                  Brian Stansberry Master

                  For a proper answer, suggest you post on the Remoting forum. It looks to me like there's no real issue here, just a case of Remoting logging at too high a level (should be TRACE not DEBUG). In that case, just limiting the log category is fine. (If there were a serious problem, there'd be logging at a higher level than DEBUG and/or you'd be seeing issues in your application.)

                  I believe what happened here is once you enabled clustering, the getLocator() method is returning a different value, and hence MarshalFactory.getMarshaller(getLocator(), getClassLoader()) is returning a different value.