[GLASSFISH-20467] RuntimeException not logged on setMessageListener Created: 05/May/13  Updated: 07/May/13  Resolved: 07/May/13

Status: Resolved
Project: glassfish
Component/s: jms
Affects Version/s: 4.0_b86_RC2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Bruno Borges Assignee: David Zhao
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GLASSFISH-20481 GlassFish does not log exceptions thr... Resolved

 Description   

The following RuntimeException is not being logged by GlassFish (had to try/catch RuntimeException):

javax.jms.JMSRuntimeException: [C4306]: This method may not be called in a Java EE web or EJB container
	at com.sun.messaging.jmq.jmsclient.JMSConsumerImpl.setMessageListener(JMSConsumerImpl.java:261)
	at org.glassfish.javaee7wsjms.SampleWebSocket.onOpen(SampleWebSocket.java:55)

This issue might appear at other places.



 Comments   
Comment by Bruno Borges [ 05/May/13 ]

See GLASSFISH-20371 for the discussion around this.

Comment by David Zhao [ 06/May/13 ]

The implementation class is in MQ. So it is better to file an issue for MQ to trace it.

Comment by Bruno Borges [ 06/May/13 ]

Issue created for MQ as MQ-297

Comment by Nigel Deakin [ 07/May/13 ]

I logged GLASSFISH-20481 before I saw this one. That issue explains how this is an issue with the WebSocket container. I will therefore close this issue as a duplicate of that one.

Generated at Sat Dec 03 18:23:58 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.