Announcement Announcement Module
Collapse
No announcement yet.
Problem in creating connection Object with singleconnectionfactory102 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem in creating connection Object with singleconnectionfactory102

    Hi I am a new to SpringJMS and i am using Singleconnectionfactory in my search application which is using JNDI Factory and queue objects and i am using context loader for loading my application context only once.

    I am using temporary queue for receiving message and Its working fine when i am running first time by creating new factory and connection objects. But while trying second time it is connecting to the closed connection object which is created previously.

    Log Details in first attempt:
    JMSSender object created successfully com.spring.jms.JMSSender@78767876
    Jan 30 08:57:48:682 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: factory object created successfully org.springframework.jms.connection.SingleConnectio nFactory102@5be25be2
    Jan 30 08:57:51:421 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: qConnection object created successfully com.ibm.ejs.jms.JMSQueueConnectionHandle@33c533c5
    managed connection = com.ibm.ejs.jms.JMSManagedQueueConnection@2a2c2a2c
    physical connection = com.ibm.mq.jms.MQQueueConnection@30d130d1
    closed = false
    invalid = false
    restricted methods enabled = false
    open session handles = []
    temporary queues = []
    Jan 30 08:57:53:081 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: Sess object created successfully com.ibm.ejs.jms.JMSQueueSessionHandle@79a279a2
    managed session = com.ibm.ejs.jms.JMSManagedQueueSession@e800e80
    state = ACTIVE
    restricted methods enabled = false
    open children = []
    Jan 30 08:58:03:538 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: getDefaultDestination in sendMessage():queue://CMSTDW61/ST.ROUTE.CLIENT.LOOKUP?targetClient=1
    Jan 30 08:58:03:554 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: replyQueue in sendMessage():queue://CMSTDW61/AMQ.479872EF027C2320?persistence=1
    Jan 30 08:58:03:554 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: replyQueue in receiveMessage():queue://CMSTDW61/AMQ.479872EF027C2320?persistence=1
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: msg in receiveMessage():
    JMS Message class: jms_text
    JMSType: null
    JMSDeliveryMode: 1
    JMSExpiration: 0
    JMSPriority: 4
    JMSMessageID: ID:414d5120434d53544457363120202020ef72984720237d0 2
    JMSTimestamp: 1201701478930
    JMSCorrelationID:null
    JMSDestination: null
    JMSReplyTo: queue://CMSTDW61/AMQ.479872EF027C2320?targetClient=1
    JMSRedelivered: false
    JMS_IBM_PutDate:20080130
    JMSXAppID:MBCICH ST1A
    JMS_IBM_Format:MQSTR
    JMS_IBM_PutApplType:1
    JMS_IBM_MsgType:1
    JMSXUserID:ST9MGIM
    JMS_IBM_PutTime:13575893
    JMSXDeliveryCount:1
    03135600* SUCCESSFUL PROCESSING HAS BEEN COMPLETED FOR THIS REQUEST * 0250M1000000
    Another 31,256 character(s) omitted
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: ReplyTo queue is NOT empty
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: ReceivedText in receiveMessage():03135600* SUCCESSFUL PROCESSING HAS BEEN COMPLETED FOR THIS REQUEST * 0250M100000007183D0000543BT MORTGAGE INVESTORS JMSSender object created successfully com.spring.jms.JMSSender@78767876
    Jan 30 08:57:48:682 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: factory object created successfully org.springframework.jms.connection.SingleConnectio nFactory102@5be25be2
    Jan 30 08:57:51:421 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: qConnection object created successfully com.ibm.ejs.jms.JMSQueueConnectionHandle@33c533c5
    managed connection = com.ibm.ejs.jms.JMSManagedQueueConnection@2a2c2a2c
    physical connection = com.ibm.mq.jms.MQQueueConnection@30d130d1
    closed = false
    invalid = false
    restricted methods enabled = false
    open session handles = []
    temporary queues = []
    Jan 30 08:57:53:081 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: Sess object created successfully com.ibm.ejs.jms.JMSQueueSessionHandle@79a279a2
    managed session = com.ibm.ejs.jms.JMSManagedQueueSession@e800e80
    state = ACTIVE
    restricted methods enabled = false
    open children = []
    Jan 30 08:58:03:538 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: getDefaultDestination in sendMessage():queue://CMSTDW61/ST.ROUTE.CLIENT.LOOKUP?targetClient=1
    Jan 30 08:58:03:554 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: replyQueue in sendMessage():queue://CMSTDW61/AMQ.479872EF027C2320?persistence=1
    Jan 30 08:58:03:554 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: replyQueue in receiveMessage():queue://CMSTDW61/AMQ.479872EF027C2320?persistence=1
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: msg in receiveMessage():
    JMS Message class: jms_text
    JMSType: null
    JMSDeliveryMode: 1
    JMSExpiration: 0
    JMSPriority: 4
    JMSMessageID: ID:414d5120434d53544457363120202020ef72984720237d0 2
    JMSTimestamp: 1201701478930
    JMSCorrelationID:null
    JMSDestination: null
    JMSReplyTo: queue://CMSTDW61/AMQ.479872EF027C2320?targetClient=1
    JMSRedelivered: false
    JMS_IBM_PutDate:20080130
    JMSXAppID:MBCICH ST1A
    JMS_IBM_Format:MQSTR
    JMS_IBM_PutApplType:1
    JMS_IBM_MsgType:1
    JMSXUserID:ST9MGIM
    JMS_IBM_PutTime:13575893
    JMSXDeliveryCount:1
    03135600* SUCCESSFUL PROCESSING HAS BEEN COMPLETED FOR THIS REQUEST * 0250M1000000
    Another 31,256 character(s) omitted
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: ReplyTo queue is NOT empty
    Jan 30 08:58:06:544 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: ReceivedText in receiveMessage():03135600* SUCCESSFUL PROCESSING HAS BEEN COMPLETED FOR THIS REQUEST * 0250M100000007183D0000543BT MORTGAGE INVESTORS



    In Second Time:
    JMSSender object created successfully com.spring.jms.JMSSender@66d08550
    Jan 30 09:24:20:336 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: factory object created successfully org.springframework.jms.connection.SingleConnectio nFactory102@115a855f
    Jan 30 09:24:20:336 NTWMISINC1176/172.23.201.78 st0 sti0 INFO: qConnection object created successfully com.ibm.ejs.jms.JMSQueueConnectionHandle@6a9c0549
    managed connection = null
    physical connection = null
    closed = true
    invalid = false
    restricted methods enabled = false
    open session handles = []
    temporary queues = []
    Exception while sending the Input JMS Message
    javax.jms.IllegalStateException: Connection closed
    at com.ibm.ejs.jms.JMSConnectionHandle.checkOpen(JMSC onnectionHandle.java:652)
    at com.ibm.ejs.jms.JMSQueueConnectionHandle.createQue ueSession(JMSQueueConnectionHandle.java:168)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java(Compiled Code))
    at java.lang.reflect.Method.invoke(Method.java(Compil ed Code))
    at org.springframework.jms.connection.SingleConnectio nFactory$SharedConnectionInvocationHandler.invoke( SingleConnectionFactory.java:423)
    at $Proxy0.createQueueSession(Unknown Source)
    at com.spring.jms.MessageService.sendMessage(MessageS ervice.java:78)
    at CMSS.ChaseMellonCalls.MainframeCalls.MainframeTran slator.MainframeTranslator.makeRequest(MainframeTr anslator.java:160)
    at CMSS.FreshStart.Parsers.ewm.EWMCompanyNameInq002Pa rser.translate(EWMCompanyNameInq002Parser.java:73)
    at CMSS.utils.mq.ChaseMellonRequest.EWMChaseMellonReq uest.translate(EWMChaseMellonRequest.java:159)
    at CMSS.utils.mq.ChaseMellonRequest.EWMChaseMellonReq uest.makeRequest(EWMChaseMellonRequest.java:69)
    at com.cmss.infohandlers.ewm.EWMShareholderInfoHandle r.companyNameSearch002(EWMShareholderInfoHandler.j ava:893)
    at com.cmss.infohandlers.ewm.EWMShareholderInfoHandle r.paramSearch(EWMShareholderInfoHandler.java:318)
    at com.cmss.infohandlers.ewm.EWMShareholderInfoHandle r.getRedirect(EWMShareholderInfoHandler.java:261)
    at com.cmss.infohandlers.ewm.EWMBaseInfoHandler.redir ectURL(EWMBaseInfoHandler.java:84)
    at com.cmss.servlet.EWMRedirect.getRedirect(EWMRedire ct.java:174)
    at com.cmss.servlet.EWMRedirect.returnRedirect(EWMRed irect.java:414)
    at com.cmss.servlet.EWMServlet.redirect(EWMServlet.ja va:205)
    at com.cmss.servlet.EWMServlet.performTask(EWMServlet .java:67)
    at com.cmss.servlet.EWMServlet.doGet(EWMServlet.java: 55)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1212)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:629)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:80)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:1657)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:77)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:421)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:367)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java:94)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$ SSLReadCompletedCallback.complete(SSLReadServiceCo ntext.java:1528)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java:548)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java:601)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java:934)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java:1021)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1332)


    Thanks ......

  • #2
    Problem in creating connection Object with singleconnectionfactory102

    Hi,

    Is there any resolution to this issue? I'm having the same problem.

    Thanks,

    Jonny

    Comment


    • #3
      did u find a solution to this? i am facing exactly the same problem.

      Comment

      Working...
      X