arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

getClientID throws an exception #19

Open arinban opened 6 years ago

arinban commented 6 years ago

Hi,

I was trying to redo the AS81 bug where webclient/servlet is unable be used as a topic subscriber in cluster mode by replacing with GJMSRA (with poolsize min=max=1) http://....../detail.jsf?cr=6311422

/outbound/ConnectionHandle.java 116 public String getClientID() throws JMSException { 117 checkIfClosed(); 118 if (!inACC()) 119 throw new JMSException("Client ID cannot be set in non-ACC clients"); 120 return this.physicalJMSCon.getClientID();

FIX I believe this should not be there... Copy+Paste syndrome...

Exception

Lookup ConnectionFactory = com.sun.genericra.outbound.ConnectionFactory@1da694 javax.jms.JMSException: Client ID cannot be set in non-ACC clients javax.jms.JMSException: Client ID cannot be set in non-ACC clients at com.sun.genericra.outbound.ConnectionHandle.getClientID(ConnectionHandle.java:119) at org.apache.jsp.mq.mq_jsp._jspService(mq_jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336

Code (JSP) TopicSubscriber subscriber = null; Topic topic = null; try { InitialContext ic = new InitialContext(); Object o = ic.lookup("jms/gjmsraTopicFactory"); out.println("Lookup ConnectionFactory = "+o); fact = (TopicConnectionFactory) o; conn = fact.createTopicConnection(); out.println("Connection clientid = "+ conn.getClientID()); <---

commenting this and i get my code working...

Environment

Operating System: All Platform: Sun

Affected Versions

[current]

arinban commented 6 years ago

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/12 Raised By:@glassfishrobot Created at:Fri Dec 30 00:29:23 IST 2005 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Fri Dec 30 00:29:23 IST 2005 Reported by binod

arinban commented 6 years ago

@glassfishrobot Commented on Fri Dec 30 00:29:23 IST 2005 Was assigned to binod

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:01:30 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-12