Dilanka Muthukumarana

Greenhorn
+ Follow
since Mar 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dilanka Muthukumarana

I am trying to open image using java program which file name has more than once spaces. direct windows command is working fine, but when I execute via java program it is not opening.

direct command :


via java:(This is not working)



But if file name has one space, it is fine and opening properly

Please any ideas on this and appreciate your kind help.
Hi Guys, Thanks for the comments and suggestions.

My server box all together has 32 GB ram and multiple WAS nodes running , each node has 2 GB of RAM as per now. But I have seen some posts, if the memory goes high server will
automatically get restart but no restarting at all. also this is not happening every time. sometimes this error has 30 min and automatically recovered. after restart of node MQs are working fine.
Dear All,

I am experiencing MQ connection time out problem and seems it is because of out of memory issue according to the log. please give some clues on this. below is the exception.


[10/14/15 11:10:47:817 GMT+08:00] 000010e5 ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource qcf/qcfMORetry. The exception is: com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ1107: A problem with this connection has occurred. An error has occurred with the WebSphere MQ JMS connection. Use the linked exception to determine the cause of this error.:com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2202' ('MQRC_CONNECTION_QUIESCING').
[10/14/15 11:10:47:882 GMT+08:00] 000010e5 SibMessage W [:] CWSJY0003W: JMSCC3034: The exception is ignored as no exception listener is registered: '
Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with this connection has occurred. An error has occurred with the WebSphere MQ JMS connection. Use the linked exception to determine the cause of this error.
Class : class com.ibm.msg.client.jms.DetailedJMSException
Stack : com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:608)
: com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:236)
: com.ibm.msg.client.wmq.internal.WMQSession.disconnect(WMQSession.java:758)
: com.ibm.msg.client.wmq.internal.WMQSession.close(WMQSession.java:718)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.close(JmsSessionImpl.java:498)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.close(JmsConnectionImpl.java:295)
: com.ibm.mq.jms.MQConnection.close(MQConnection.java:98)
: com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:1147)
: com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:2054)
: com.ibm.ejs.j2c.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:748)
: com.ibm.ejs.j2c.FreePool.getFreeConnection(FreePool.java:896)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2879)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2529)
: com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1499)
: com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:1011)
: com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:85)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.retryReceiveMsg(MessageQueueAdapter.java:234)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.sendReceiveMessage(MessageQueueAdapter.java:186)
: com.aviva.aol.integration.spi.TransactionProcessIntegrationImpl.jmsSendReceiveMessage(TransactionProcessIntegrationImpl.java:274)
: com.aviva.aol.tr.manager.FundIntegrationImpl.getFundCurrentHoldingListSwitching(FundIntegrationImpl.java:1961)
: com.aviva.aol.tr.manager.TransactionManagerImpl.getFundCurrentHoldingListSwitchingByAccountId(TransactionManagerImpl.java:887)
: com.aviva.aol.tr.action.TransactionSwitchPendingEditPrepareAction.doAction(TransactionSwitchPendingEditPrepareAction.java:193)
: com.aviva.framework.struts.CommonAction.execute(CommonAction.java:515)
: org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
: com.aviva.framework.struts.StoryBoardRequestProcessor.processActionPerform(StoryBoardRequestProcessor.java:45)
: org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
: com.aviva.framework.struts.StoryBoardRequestProcessor.process(StoryBoardRequestProcessor.java:104)
: org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
: org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
: com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
: com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:46)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XFrameXSSFilter.doFilter(XFrameXSSFilter.java:40)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XSSFilter.doFilter(XSSFilter.java:24)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
: com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
: com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
: com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
: com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
: com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
: com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
: com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
: com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
: com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
: com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
: com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
: com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
: com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
: com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
Caused by [1] --> Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN').
Class : class com.ibm.mq.MQException
Stack : com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:223)
: com.ibm.msg.client.wmq.internal.WMQSession.disconnect(WMQSession.java:758)
: com.ibm.msg.client.wmq.internal.WMQSession.close(WMQSession.java:718)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.close(JmsSessionImpl.java:498)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.close(JmsConnectionImpl.java:295)
: com.ibm.mq.jms.MQConnection.close(MQConnection.java:98)
: com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:1147)
: com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:2054)
: com.ibm.ejs.j2c.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:748)
: com.ibm.ejs.j2c.FreePool.getFreeConnection(FreePool.java:896)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2879)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2529)
: com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1499)
: com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:1011)
: com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:85)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.retryReceiveMsg(MessageQueueAdapter.java:234)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.sendReceiveMessage(MessageQueueAdapter.java:186)
: com.aviva.aol.integration.spi.TransactionProcessIntegrationImpl.jmsSendReceiveMessage(TransactionProcessIntegrationImpl.java:274)
: com.aviva.aol.tr.manager.FundIntegrationImpl.getFundCurrentHoldingListSwitching(FundIntegrationImpl.java:1961)
: com.aviva.aol.tr.manager.TransactionManagerImpl.getFundCurrentHoldingListSwitchingByAccountId(TransactionManagerImpl.java:887)
: com.aviva.aol.tr.action.TransactionSwitchPendingEditPrepareAction.doAction(TransactionSwitchPendingEditPrepareAction.java:193)
: com.aviva.framework.struts.CommonAction.execute(CommonAction.java:515)
: org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
: com.aviva.framework.struts.StoryBoardRequestProcessor.processActionPerform(StoryBoardRequestProcessor.java:45)
: org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
: com.aviva.framework.struts.StoryBoardRequestProcessor.process(StoryBoardRequestProcessor.java:104)
: org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
: org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
: com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
: com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:46)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XFrameXSSFilter.doFilter(XFrameXSSFilter.java:40)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XSSFilter.doFilter(XSSFilter.java:24)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
: com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
: com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
: com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
: com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
: com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
: com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
: com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
: com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
: com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
: com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
: com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
: com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
: com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
: com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
Caused by [2] --> Message : com.ibm.mq.jmqi.JmqiException: CC=2;RC=2009
Class : class com.ibm.mq.jmqi.JmqiException
Stack : com.ibm.mq.jmqi.remote.internal.RemoteHconn.enterCall(RemoteHconn.java:475)
: com.ibm.mq.jmqi.remote.internal.RemoteHconn.enterCall(RemoteHconn.java:397)
: com.ibm.mq.jmqi.remote.internal.RemoteHconn.enterCall(RemoteHconn.java:372)
: com.ibm.mq.jmqi.remote.internal.RemoteFAP.MQDISC(RemoteFAP.java:2604)
: com.ibm.msg.client.wmq.internal.WMQSession.disconnect(WMQSession.java:746)
: com.ibm.msg.client.wmq.internal.WMQSession.close(WMQSession.java:718)
: com.ibm.msg.client.jms.internal.JmsSessionImpl.close(JmsSessionImpl.java:498)
: com.ibm.msg.client.jms.internal.JmsConnectionImpl.close(JmsConnectionImpl.java:295)
: com.ibm.mq.jms.MQConnection.close(MQConnection.java:98)
: com.ibm.ejs.jms.JMSManagedConnection.destroy(JMSManagedConnection.java:1147)
: com.ibm.ejs.j2c.MCWrapper.destroy(MCWrapper.java:2054)
: com.ibm.ejs.j2c.FreePool.cleanupAndDestroyMCWrapper(FreePool.java:748)
: com.ibm.ejs.j2c.FreePool.getFreeConnection(FreePool.java:896)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2879)
: com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2529)
: com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1499)
: com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:1011)
: com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle.createQueueConnection(JMSQueueConnectionFactoryHandle.java:85)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.retryReceiveMsg(MessageQueueAdapter.java:234)
: com.aviva.aol.messaging.adapter.MessageQueueAdapter.sendReceiveMessage(MessageQueueAdapter.java:186)
: com.aviva.aol.integration.spi.TransactionProcessIntegrationImpl.jmsSendReceiveMessage(TransactionProcessIntegrationImpl.java:274)
: com.aviva.aol.tr.manager.FundIntegrationImpl.getFundCurrentHoldingListSwitching(FundIntegrationImpl.java:1961)
: com.aviva.aol.tr.manager.TransactionManagerImpl.getFundCurrentHoldingListSwitchingByAccountId(TransactionManagerImpl.java:887)
: com.aviva.aol.tr.action.TransactionSwitchPendingEditPrepareAction.doAction(TransactionSwitchPendingEditPrepareAction.java:193)
: com.aviva.framework.struts.CommonAction.execute(CommonAction.java:515)
: org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
: com.aviva.framework.struts.StoryBoardRequestProcessor.processActionPerform(StoryBoardRequestProcessor.java:45)
: org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
: com.aviva.framework.struts.StoryBoardRequestProcessor.process(StoryBoardRequestProcessor.java:104)
: org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
: org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
: javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
: com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
: com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
: com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:46)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XFrameXSSFilter.doFilter(XFrameXSSFilter.java:40)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.aviva.aol.common.servlet.XSSFilter.doFilter(XSSFilter.java:24)
: com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
: com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
: com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
: com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
: com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
: com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
: com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
: com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
: com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
: com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
: com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
: com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
: com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
: com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
: com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
: com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
: com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
: com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
: com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
Caused by [3] --> Message : com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195
Class : class com.ibm.mq.jmqi.JmqiException
Stack : com.ibm.mq.jmqi.remote.internal.RemoteRcvThread.run(RemoteRcvThread.java:597)
: com.ibm.msg.client.commonservices.workqueue.WorkQueueItem.runTask(WorkQueueItem.java:209)
: com.ibm.msg.client.commonservices.workqueue.SimpleWorkQueueItem.runItem(SimpleWorkQueueItem.java:100)
: com.ibm.msg.client.commonservices.workqueue.WorkQueueItem.run(WorkQueueItem.java:224)
: com.ibm.ws.wmqcsi.workqueue.WorkQueueManagerImpl$WorkQueueRunnable.run(WorkQueueManagerImpl.java:550)
: java.lang.Thread.run(Thread.java:769)
Caused by [4] --> Message : java.lang.OutOfMemoryError
Class : class java.lang.OutOfMemoryError
Stack : com.ibm.mq.jmqi.remote.internal.system.RemoteCommsBufferItem.<init>(RemoteCommsBufferItem.java:84)
: com.ibm.mq.jmqi.remote.internal.system.RemoteCommsBufferPool.allocBuffer(RemoteCommsBufferPool.java:107)
: com.ibm.mq.jmqi.remote.internal.RemoteRcvThread.receiveOneTSH(RemoteRcvThread.java:709)
: com.ibm.mq.jmqi.remote.internal.RemoteRcvThread.run(RemoteRcvThread.java:151)
: com.ibm.msg.client.commonservices.workqueue.WorkQueueItem.runTask(WorkQueueItem.java:209)
: com.ibm.msg.client.commonservices.workqueue.SimpleWorkQueueItem.runItem(SimpleWorkQueueItem.java:100)
: com.ibm.msg.client.commonservices.workqueue.WorkQueueItem.run(WorkQueueItem.java:224)
: com.ibm.ws.wmqcsi.workqueue.WorkQueueManagerImpl$WorkQueueRunnable.run(WorkQueueManagerImpl.java:550)
: java.lang.Thread.run(Thread.java:769)
'.
No, I am using java 1.6 on Windows 8.1 OS.
Hi Guys,

I am facing problem which is with ms access database connection. below is my code. please help me on this.




below is the exception:

yes.. I used poi-ooxml-schemas-3.8.jar .but its not working. I will try with 3.9 version. Thanks for the quick reply..
10 years ago
Hi All,

I am trying to convert pptx file to images (Slide by Slide). but I am getting below exception. I have put all the jar files downloaded with poi package. but still giving this error. Kindly advice on this matter.

####<Sep 18, 2013 7:12:08 PM SGT> <Notice> <Stdout> <localhost.localdomain> <WC_Spaces1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <11d1def534ea1be0:7cd1496a:1413090cc5d:-8000-000000000[size=12]
000a948> <1379502728572> <BEA-000000> <<Sep 18, 2013 7:12:08 PM SGT> <Error> <oracle.webcenter.webcenterapp.internal.view.webapp> <BEA-000000> <
javax.el.ELException: java.lang.NoClassDefFoundError: org/openxmlformats/schemas/drawingml/x2006/main/CTEffectStyleList
at com.sun.el.parser.AstValue.invoke(AstValue.java:191)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
at oracle.adf.view.rich.component.rich.RichPopup.broadcast(RichPopup.java:692)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
......

Caused By: java.lang.NoClassDefFoundError: org/openxmlformats/schemas/drawingml/x2006/main/CTEffectStyleList
at org.openxmlformats.schemas.drawingml.x2006.main.impl.CTStyleMatrixImpl.getEffectStyleLst(Unknown Source)
at org.apache.poi.xslf.usermodel.XSLFSimpleShape.getShadow(XSLFSimpleShape.java:523)
at org.apache.poi.xslf.usermodel.RenderableShape.render(RenderableShape.java:517)
at org.apache.poi.xslf.usermodel.XSLFSimpleShape.draw(XSLFSimpleShape.java:534)
at org.apache.poi.xslf.usermodel.XSLFSheet.draw(XSLFSheet.java:500)
....

below is the location that getting exception in my code: (Kindly note this is sample code, I copied relevant part only)

FileInputStream is = new FileInputStream(file); // debug point coming to this line
xmlSlideShow = new SlideShow(new FileInputStream(file));
BufferedImage buffImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); // debug point coming to this line

for (int i = 0; i < slideLength; i++) {

xmlSlideShow.getSlides()[i].draw(graphics); // exception occurs on this line.

}


please advice any other way using poi 3.8 version.[/size]
10 years ago

hi guys,

actually I want to know how to access print job in the print spooler or print server. Thing is I want to do as follows:

I want to develop a tool for counting print jobs of the printers in the print servers and get how many number of pages are printed and also get owner machine of print job in the network.

I got JOB_INFO_2 structure in the msdn but I want to do in java. I wrote simple program using java. but it will give only printer name and small things. I want to get what is the machine print job coming from and how many pages in that print job. I have included msdn struct and simple java class that I have written. as per the msdn doc, all the print jobs are associated with all those parameters, but how we access and retrieve them using java. hope you guys help me in this case..
--------------------------------MSDN Struct--------------------------------------------------------------
typedef struct _JOB_INFO_2 {
DWORD JobId;
LPTSTR pPrinterName;
LPTSTR pMachineName;
LPTSTR pUserName;
LPTSTR pDocument;
LPTSTR pNotifyName;
LPTSTR pDatatype;
LPTSTR pPrintProcessor;
LPTSTR pParameters;
LPTSTR pDriverName;
LPDEVMODE pDevMode;
LPTSTR pStatus;
PSECURITY_DESCRIPTOR pSecurityDescriptor;
DWORD Status;
DWORD Priority;
DWORD Position;
DWORD StartTime;
DWORD UntilTime;
DWORD TotalPages;
DWORD Size;
SYSTEMTIME Submitted;
DWORD Time;
DWORD PagesPrinted;
} JOB_INFO_2, *PJOB_INFO_2;

----------------------------END of MSDN Struct-----------------------------------------------------------


package it.dmm.printer;

import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.attribute.Attribute;
import javax.print.attribute.AttributeSet;

public class Printer {

public static void main(String[] args) {

PrintService printer = PrintServiceLookup.lookupDefaultPrintService();

AttributeSet att = printer.getAttributes();

for (Attribute a : att.toArray()) {

String attributeName;
String attributeValue;

attributeName = a.getName();

attributeValue = att.get(a.getClass()).toString();

System.out.println(attributeName + " : " + attributeValue);


}

}

}
results are :
queued-job-count : 0
color-supported : supported
printer-is-accepting-jobs : accepting-jobs
printer-name : Microsoft XPS Document Writer


please help asap for this case..
13 years ago
hi guys,

actually I want to know how to access print job in the print spooler or print server. Thing is I want to do as follows:

I want to develop a tool for counting print jobs of the printers in the print servers and get how many number of pages are printed and also get owner machine of print job in the network.

I got JOB_INFO_2 structure in the msdn but I want to do in java. I wrote simple program using java. but it will give only printer name and small things. I want to get what is the machine print job coming from and how many pages in that print job. I have included msdn struct and simple java class that I have written. as per the msdn doc, all the print jobs are associated with all those parameters, but how we access and retrieve them using java. hope you guys help me in this case..
--------------------------------MSDN Struct--------------------------------------------------------------
typedef struct _JOB_INFO_2 {
DWORD JobId;
LPTSTR pPrinterName;
LPTSTR pMachineName;
LPTSTR pUserName;
LPTSTR pDocument;
LPTSTR pNotifyName;
LPTSTR pDatatype;
LPTSTR pPrintProcessor;
LPTSTR pParameters;
LPTSTR pDriverName;
LPDEVMODE pDevMode;
LPTSTR pStatus;
PSECURITY_DESCRIPTOR pSecurityDescriptor;
DWORD Status;
DWORD Priority;
DWORD Position;
DWORD StartTime;
DWORD UntilTime;
DWORD TotalPages;
DWORD Size;
SYSTEMTIME Submitted;
DWORD Time;
DWORD PagesPrinted;
} JOB_INFO_2, *PJOB_INFO_2;

----------------------------END of MSDN Struct-----------------------------------------------------------


package it.dmm.printer;

import javax.print.PrintService;
import javax.print.PrintServiceLookup;
import javax.print.attribute.Attribute;
import javax.print.attribute.AttributeSet;

public class Printer {

public static void main(String[] args) {

PrintService printer = PrintServiceLookup.lookupDefaultPrintService();

AttributeSet att = printer.getAttributes();

for (Attribute a : att.toArray()) {

String attributeName;
String attributeValue;

attributeName = a.getName();

attributeValue = att.get(a.getClass()).toString();

System.out.println(attributeName + " : " + attributeValue);


}

}

}
results are :
queued-job-count : 0
color-supported : supported
printer-is-accepting-jobs : accepting-jobs
printer-name : Microsoft XPS Document Writer


please help asap for this case..
In WINDOWS Operating system has much more remote commands like [b]psexce.exe[/b]. those all commads we can get fron pstools.
so I want commands like this for LINUX Operating system.

If you all can help me..pleaseee...

I want to send files and execute several LINUX machine simultaneously.

15 years ago
hey all..

I tried to run java code to access shut.bat file to shutdown remote computer.so I use batch commands.but result is the following exception..

"java.io.IOException: CreateProcess: shut.bat 127.0.0.1 Dilanka keepintouch error=2" in this file username is dilanka and password is keepintouch.. this is ma code sample:

I have already included "shut.bat" , psshutdown.exe and shut.class files in the suitable folder..

please help me to run this program.

shut.bat file

psshutdown.exe -k -u %2 -p %3 -t 5 \\%1

shut.java


15 years ago