Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1484

NoClassDefFoundError in kie-server's XStream marshaller with the first put solver command on a started container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.18.0.Final, 7.20.0.Final
    • None
    • Hide
      • run a container
      • exec put solver command
      • get error

      Workaround Identified:
      -stop and start the same container

      • exec put solver command within 1 or 2 seconds
      • it works
      Show
      run a container exec put solver command get error Workaround Identified: -stop and start the same container exec put solver command within 1 or 2 seconds it works
    • NEW
    • NEW

      There is a problem with the "first" execution of a put solver command, in detail when I run it I get errors as if it were missing some dependency in the pom.
      I also found that if I do a "stop and start" of the previous container and within a few seconds I launch the same put solver command instead works, and also subsequent calls with new solvers work.

          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378) 
          	at java.lang.Thread.run(Thread.java:748) 
          Caused by: java.lang.NoClassDefFoundError: org/gjt/xpp/XmlStartTag 
          	at java.lang.Class.getDeclaredFields0(Native Method) 
          	at java.lang.Class.privateGetDeclaredFields(Class.java:2583) 
          	at java.lang.Class.getDeclaredFields(Class.java:1916) 
          	at com.thoughtworks.xstream.mapper.AnnotationMapper.processTypes(AnnotationMapper.java:205) 
          	at com.thoughtworks.xstream.mapper.AnnotationMapper.processAnnotations(AnnotationMapper.java:165) 
          	at com.thoughtworks.xstream.XStream.processAnnotations(XStream.java:2320) 
          	at com.thoughtworks.xstream.XStream.processAnnotations(XStream.java:2331) 
          	at org.kie.server.api.marshalling.xstream.XStreamMarshaller.configureMarshaller(XStreamMarshaller.java:205) 
          	at org.kie.server.api.marshalling.xstream.XStreamMarshaller.<init>(XStreamMarshaller.java:110) 
          	at org.kie.server.api.marshalling.BaseMarshallerBuilder.build(BaseMarshallerBuilder.java:37) 
          	at org.kie.server.api.marshalling.MarshallerFactory.getMarshaller(MarshallerFactory.java:52) 
          	at org.kie.server.services.impl.KieContainerInstanceImpl.getMarshaller(KieContainerInstanceImpl.java:184) 
          	at org.kie.server.services.impl.marshal.MarshallerHelper.unmarshal(MarshallerHelper.java:102) 
          	at org.kie.server.services.impl.marshal.MarshallerHelper.unmarshal(MarshallerHelper.java:87) 
          	at org.kie.server.remote.rest.optaplanner.SolverResource.createSolver(SolverResource.java:114) 
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
          	at java.lang.reflect.Method.invoke(Method.java:498) 
          	at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:509) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:399) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:363) 
          	at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:365) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:337) 
          	at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:310) 
          	at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:443) 
          	... 53 more 
      
      

        1. get_error.log
          3 kB
          Gianluca Ricciardulli

              Unassigned Unassigned
              gricciardulli@indracompany.com Gianluca Ricciardulli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: