ari-ban / test2

0 stars 0 forks source link

getClientID throws an exception #12

Closed arinban closed 6 years ago

arinban commented 18 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
arinban commented 6 years ago

@arinban Commented

arinban commented 6 years ago

@arinban Commented @arinban Commented

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Reported by binod

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Was assigned to binod

arinban commented 7 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented This issue was imported from java.net JIRA GENERICJMSRA-12

arinban commented 6 years ago

Closing this as this issue is migrated to https://github.com/ari-ban/test1/issues/12