Forum Discussion

MuthuSOAPUI's avatar
MuthuSOAPUI
Occasional Contributor
15 years ago

SOAP UI 3.5 + Hermes JMS 1.14- Could not create InitialContext

Hi everyone,

getting below error in SOAPUI log file when i try to send message to Hermes jms from SOAPUI

Tue Apr 13 09:52:05 GMT+05:30 2010:ERROR:javax.jms.JMSException: Could not create InitialContext: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
java.io.StreamCorruptedException: invalid type code: 31
  javax.jms.JMSException: Could not create InitialContext: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
  java.io.StreamCorruptedException: invalid type code: 31
  at hermes.JNDIContextFactory.createContext(JNDIContextFactory.java:286)
  at hermes.JNDIConnectionFactory.createConnection(JNDIConnectionFactory.java:80)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.createConnection(JMSConnectionHolder.java:85)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.(JMSConnectionHolder.java:65)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:96)
  at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
Tue Apr 13 09:52:05 GMT+05:30 2010:ERROR:javax.jms.JMSException: Could not create InitialContext: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
java.io.StreamCorruptedException: invalid type code: 31
  javax.jms.JMSException: Could not create InitialContext: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
  java.io.StreamCorruptedException: invalid type code: 31
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.JMSConnectionHolder.(JMSConnectionHolder.java:77)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestSendReceiveTransport.execute(HermesJmsRequestSendReceiveTransport.java:36)
  at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.sendRequest(HermesJmsRequestTransport.java:96)
  at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)


Could you please help on this ??

I have added all weblogic jar files in HERMES_LIB folders and SOAPUI lib folders as well

4 Replies

  • MuthuSOAPUI's avatar
    MuthuSOAPUI
    Occasional Contributor
    Hi SOAPUI Team,

    Please help me on this to resolve this problem ?
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    I suggest you to check put this forum thread http://www.eviware.com/forums/index.php?topic=3435.0 , since I think it's a similar topic

    BTW you dont have to add any jar file in SoapUI ( %soapui%/bin/ext is the place for externall jars )

    And for Hermes just add weblogic.jar into classpath in hermes.bat file not in lib folder.

    Hope that helps

    Regards
    Nebojsa
    eviware.com
  • hi im facing the same problem can you help me please

    LOGS


    javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
    java.io.StreamCorruptedException: invalid type code: 31]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:85)
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:41)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:765)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:665)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:465)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:372)
    at weblogic.jndi.Environment.getContext(Environment.java:307)
    at weblogic.jndi.Environment.getContext(Environment.java:277)
    at weblogic.jndi.Environment.createInitialContext(Environment.java:200)
    at weblogic.jndi.Environment.getInitialContext(Environment.java:184)
    at weblogic.jndi.Environment.getInitialContext(Environment.java:162)
    at sharad.JMSQueueClassPauseQueue.main(JMSQueueClassPauseQueue.java:72)



    Regard's
    Sharad