{"action":"closed","issue":{"url":"https://api.github.com/repos/ballerinalang/connector-jms/issues/2","repository_url":"https://api.github.com/repos/ballerinalang/connector-jms","labels_url":"https://api.github.com/repos/ballerinalang/connector-jms/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ballerinalang/connector-jms/issues/2/comments","events_url":"https://api.github.com/repos/ballerinalang/connector-jms/issues/2/events","html_url":"https://github.com/ballerinalang/connector-jms/issues/2","id":266063607,"number":2,"title":"Java stacktrace printed on console","user":{"login":"SupunS","id":7834839,"avatar_url":"https://avatars3.githubusercontent.com/u/7834839?v=4","gravatar_id":"","url":"https://api.github.com/users/SupunS","html_url":"https://github.com/SupunS","followers_url":"https://api.github.com/users/SupunS/followers","following_url":"https://api.github.com/users/SupunS/following{/other_user}","gists_url":"https://api.github.com/users/SupunS/gists{/gist_id}","starred_url":"https://api.github.com/users/SupunS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupunS/subscriptions","organizations_url":"https://api.github.com/users/SupunS/orgs","repos_url":"https://api.github.com/users/SupunS/repos","events_url":"https://api.github.com/users/SupunS/events{/privacy}","received_events_url":"https://api.github.com/users/SupunS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-17T09:58:33Z","updated_at":"2017-10-17T09:59:04Z","closed_at":"2017-10-17T09:59:04Z","author_association":"NONE","body":"Scenario tested: receiving an object message via JMS (broker: ActiveMQ v5.15.1)\r\n\r\nActiveMQ v5.15.1 requires org.apache.activemq.SERIALIZABLE_PACKAGES environment variable to be set on Ballerina side [1].\r\n\r\nIf the user misses to do that, he will end up seeing a Java stacktrace as below:\r\n```\r\nERROR | ID:dilini-Latitude-E6540-52700-1507616784837-1:587:1:1 Exception while processing message: ID:dilini-Latitude-E6540-34118-1507614970539-0:0:1:1:1\r\njava.lang.RuntimeException: An error occurred while listening to messages\r\n\tat org.wso2.carbon.transport.jms.receiver.JMSMessageListener.onMessage(JMSMessageListener.java:74)\r\n\tat org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1404)\r\n\tat org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)\r\n\tat org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)\r\n\tat org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)\r\n\tat org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.wso2.carbon.transport.jms.exception.JMSConnectorException: Error while getting the message from jms provider.\r\n\tat org.wso2.carbon.transport.jms.receiver.JMSMessageHandler.handle(JMSMessageHandler.java:111)\r\n\tat org.wso2.carbon.transport.jms.receiver.JMSMessageListener.onMessage(JMSMessageListener.java:72)\r\n\t... 8 more\r\nCaused by: org.wso2.carbon.transport.jms.exception.JMSConnectorException: Error while changing the jms message to carbon message\r\n\tat org.wso2.carbon.transport.jms.utils.JMSUtils.createJMSCarbonMessage(JMSUtils.java:171)\r\n\tat org.wso2.carbon.transport.jms.receiver.JMSMessageHandler.handle(JMSMessageHandler.java:78)\r\n\t... 9 more\r\nCaused by: javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class org.ballerinalang.sample.jms.client.Person! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.\r\n\tat org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)\r\n\tat org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:213)\r\n\tat org.wso2.carbon.transport.jms.utils.JMSUtils.createJMSCarbonMessage(JMSUtils.java:124)\r\n\t... 10 more\r\nCaused by: java.lang.ClassNotFoundException: Forbidden class org.ballerinalang.sample.jms.client.Person! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.\r\n\tat org.apache.activemq.util.ClassLoadingAwareObjectInputStream.checkSecurity(ClassLoadingAwareObjectInputStream.java:112)\r\n\tat org.apache.activemq.util.ClassLoadingAwareObjectInputStream.resolveClass(ClassLoadingAwareObjectInputStream.java:57)\r\n\tat java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)\r\n\tat java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)\r\n\tat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)\r\n\tat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)\r\n\tat java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)\r\n\tat org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:211)\r\n\t... 11 more\r\n```\r\n[1] http://activemq.apache.org/objectmessage.html"}}
{"actor":{"display_login":"SupunS"}}