0 Replies Latest reply on Jan 23, 2019 9:39 AM by 3623657

    The Bug 20927934   in relation to the Stax parsing implementation for weblogic 12

    3623657

      I have encountred the same issue in regards to this bug https://support.oracle.com/knowledge/More%20Applications%20and%20Technologies/2003152_1.html

      The reason I want to change the stax parsing implementation is the already existing bug in parsing between weblogic 10 which uses weblogic.xml.stax.XMLStreamInputFactory and the weblogic 12 which uses com.ctc.wstx.stax.WstxInputFactory as a stax parsing. This com.ctc.wstx.stax.WstxInputFactory truncate the lengthy element.

       

      I tried to change the parser implementation from the admin console via Services , XML Registeries which is being reflected in inte the config.xml after restarting the

       

      javax.xml.stream.XMLInputFactory.newInstance() returned this class instance com.ctc.wstx.stax.WstxInputFactory

       

      I tried with JVM paramterer  -Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory which ended up with the know bug 20927934 

       

      If somebody reads the stacktrace, there is no clue about the parser implementation, see below if you can see any clue of the relation in regards to xml parsing. Best solution now is to bring the

      jar files from weblogic 10 into the application classpath and explicilty add the implementation in the system property in java code. If we look at the weblogic 12, we have all the classes or jar files related to the weblogic.xml.stax.XMLStreamInputFactory  but still weblogic is not flexible enough to allow a switch back to the one which is used in weblogic 10. Again OLD is GOLD

      this weblogic.xml.stax.XMLStreamInputFactory has been proven working for many years why switching to the open source one?

       

       

       

      1. java.lang.AssertionError: Cannot export non clusterable object with jndiName:weblogic.jndi.internal.ServerNamingNode@2d7ae30c:weblogic.rmi
      2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.jndi.internal.RemoteNamingService
      3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.connector.common.ConnectorServiceActivator errors were found
      4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.connector.common.ConnectorServiceActivator

      A MultiException has 4 exceptions.  They are:
      1. java.lang.AssertionError: Cannot export non clusterable object with jndiName:weblogic.jndi.internal.ServerNamingNode@2d7ae30c:weblogic.rmi
      2. java.lang.IllegalStateException: Unable to perform operation: post construct on weblogic.jndi.internal.RemoteNamingService
      3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of weblogic.connector.common.ConnectorServiceActivator errors were found
      4. java.lang.IllegalStateException: Unable to perform operation: resolve on weblogic.connector.common.ConnectorServiceActivator

      at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:89)
      at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:249)
      at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:232)
      at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
      at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2020)
      at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
      at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
      at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
      at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)
      at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
      at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
      at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
      at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
      at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
      Caused By: java.lang.AssertionError: Cannot export non clusterable object with jndiName:weblogic.jndi.internal.ServerNamingNode@2d7ae30c:weblogic.rmi
      at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:354)
      at weblogic.jndi.internal.ServerNamingNode.getContext(ServerNamingNode.java:132)
      at weblogic.jndi.internal.BasicNamingNode.createSubcontext(BasicNamingNode.java:1753)
      at weblogic.jndi.internal.BasicNamingNode.createSubcontext(BasicNamingNode.java:1759)
      at weblogic.jndi.internal.RemoteNamingService.bindStartupNames(RemoteNamingService.java:81)
      at weblogic.jndi.internal.RemoteNamingService.start(RemoteNamingService.java:53)
      at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1262)
      at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:332)
      at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
      at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:232)
      at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
      at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2020)
      at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:693)
      at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:78)
      at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:232)
      at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
      at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2020)
      at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
      at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
      at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
      at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:666)
      at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
      at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
      at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
      at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
      at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:640)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:406)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

       

      Regards,

      Alan Mehio

      Sweden