NullPointerException in broker logs

I have been seeing a problem in MQ 4.2 where an exception is received by the client and a NullPointerException is in the broker's log file:
Client Exception:
30 oct. 2008 13:15:40 com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
[java] ATTENTION: [I500]: Caught JVM Exception: java.io.EOFException
[java] [2008-10-30 13:15:40,827] ERROR [iMQReadChannel-0] - Exception Callback triggered. Exception: com.sun.messaging.jms.JMSException: [C4002]: Read packet failed. - cause: java.io.EOFException - (JMSReadConnector.java:201)
Broker Exception:
[30/oct./2008:13:15:39 CET] ERROR Internal Error: Received unexpected exception processing connection closing connection:
java.lang.NullPointerException
at com.sun.messaging.jmq.jmsserver.persist.file.MessageInfo.parseMessage(MessageInfo.java:613)
at com.sun.messaging.jmq.jmsserver.persist.file.MessageInfo.getMessage(MessageInfo.java:286)
at com.sun.messaging.jmq.jmsserver.persist.file.DstMsgStore.getMessage(DstMsgStore.java:757)
at com.sun.messaging.jmq.jmsserver.persist.file.MsgStore.getMessage(MsgStore.java:324)
at com.sun.messaging.jmq.jmsserver.persist.file.FileStore.getMessage(FileStore.java:848)
at com.sun.messaging.jmq.jmsserver.core.PacketReference.recoverPacket(PacketReference.java:878)
at com.sun.messaging.jmq.jmsserver.core.PacketReference.getPacket(PacketReference.java:861)
at com.sun.messaging.jmq.jmsserver.core.Consumer.getAndFillNextPacket(Consumer.java:891)
at com.sun.messaging.jmq.jmsserver.core.Session.fillNextPacket(Session.java:680)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.fillNextPacket(IMQIPConnection.java:2046)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.writeData(IMQIPConnection.java:1685)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:653)
at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
at java.lang.Thread.run(Thread.java:619)
Has anyone seen this before and know how to prevent it happening?
The messages are fairly large XML TextMessages (e.g. 20 MB each). The queue had around 120 messages in it at the start of processing and had worked down to around 20 when the exception occurred. I have occassionally been seeing messages being left in queues as Unacknowledged but not processed by a client. Because of the message sizes I have the message flows set quite low so the clients don't need too much memory.
Thanks in advance for any suggestions.

Still having the problem of messages being unacknowledged but not being processed by the client.
I've added a call to session.recover() in the code, but now getting the following exception:
java.io.FileNotFoundException: /opt/kj/sunopenjms/mq/var/instances/imqbroker/fs370/message/QAggregation_Queue/100 (No such file or directory)
[31/oct./2008:21:36:35 CET] ERROR [B4107]: Failed to load message 1023-141.33.168.88(a9:a2:4a:99:62:2a)-50299-1225482533983 from store:
java.io.FileNotFoundException: /opt/kj/sunopenjms/mq/var/instances/imqbroker/fs370/message/QAggregation_Queue/100 (No such file or directory)
[31/oct./2008:21:36:35 CET] ERROR [B3144]: Unable to read message 1023-141.33.168.88(a9:a2:4a:99:62:2a)-50299-1225482533983:
com.sun.messaging.jmq.jmsserver.util.BrokerException: Failed to load message 1023-141.33.168.88(a9:a2:4a:99:62:2a)-50299-1225482533983 from store
at com.sun.messaging.jmq.jmsserver.persist.file.MsgStore.getMessage(MsgStore.java:328)
at com.sun.messaging.jmq.jmsserver.persist.file.FileStore.getMessage(FileStore.java:848)
at com.sun.messaging.jmq.jmsserver.core.PacketReference.recoverPacket(PacketReference.java:878)
at com.sun.messaging.jmq.jmsserver.core.PacketReference.getPacket(PacketReference.java:861)
at com.sun.messaging.jmq.jmsserver.core.Consumer.getAndFillNextPacket(Consumer.java:891)
at com.sun.messaging.jmq.jmsserver.core.Session.fillNextPacket(Session.java:680)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.fillNextPacket(IMQIPConnection.java:2046)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.writeData(IMQIPConnection.java:1685)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:653)
at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /opt/kj/sunopenjms/mq/var/instances/imqbroker/fs370/message/QAggregation_Queue/100 (No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at com.sun.messaging.jmq.jmsserver.persist.file.RandomAccessStore.loadData(RandomAccessStore.java:311)
at com.sun.messaging.jmq.jmsserver.persist.file.MessageInfo.getMessage(MessageInfo.java:285)
at com.sun.messaging.jmq.jmsserver.persist.file.DstMsgStore.getMessage(DstMsgStore.java:757)
at com.sun.messaging.jmq.jmsserver.persist.file.MsgStore.getMessage(MsgStore.java:324)
... 11 more

Similar Messages

  • Data Broker Logs

    Hi,
    Where can i see the DG Broker logs? Oracle Docs says its here
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/troubleshooting.htm#i1009720
    $ORACLE_HOME/rdbms/log/drc*.log
    but i don't see anything in that folder.
    While i was trying to configure my DG Broker manually. I keep getting the following errors while trying to show configuration or show database target db.
    Warning: ORA-16610: command "Broker automatic health check" in progress
    Warning: ORA-16607: one or more databases have failed
    Error: ORA-16662: network timeout when contacting a database
    What exactly is going on and how to get this error resolved? I am trying to do this to setup FFS but i am getting stuck here. Really appreciate any help in this regard.

    Hello;
    If I remember correctly you are running 11.1.0.6.0. I see Uwe has answered the log question.
    You should consider removing you setup and starting over using this note :
    How to Safely Remove a Data Guard Broker Configuration [ID 261336.1]
    My quick setup is :
    On both Primary and Standby sites, change the initialization parameter in the spfile to enable the Data guard broker.
    SQL> Alter system set dg_broker_start=True scope=both;
    System altered.
    /home/oracle:PRIMARY >dgmgrl
    DGMGRL> connect sys/password@PRIMARY
    Connected.
    DGMGRL>
    DGMGRL> create configuration 'broker1' as
    primary database is 'PRIMARY'
    connect identifier is 'PRIMARY';
    Configuration "broker1" created with primary database "PRIMARY"
    DGMGRL>
    (‘primary’ in Connect identifier is the service name through which the broker is connected to the PRIMARY database)
    Add Standby Database to the above configuration.
    DGMGRL> add database 'STANDBY' as
    connect identifier is 'STANDBY'
    maintained as physical;
    Database "STANDBY" added
    The next step is to ENABLE the configuration ‘broker1’.
    DGMGRL> enable configuration;
    Enabled.
    DGMGRL>
    DGMGRL> show configuration
    DGMGRL> enable configuration;
    Enabled.
    DGMGRL> show configuration
    Configuration - broker1
      Protection Mode: MaxPerformance
      Databases:
        PRIMARY - Primary database
        STANDBY - Physical standby database
    Fast-Start Failover: DISABLED
    Configuration Status:
    SUCCESSFor this error :
    Warning: ORA-16610: command 'Broker automatic health check' in progress
    Make sure that the /etc/hosts files have entries of all other servers, with name and IP address.
    I'm think ORA-16607 and ORA-16662 might be caused by the first error.
    I hope this helps.
    Best Regards
    mseberg

  • Bursting engine fails with NullPointerException in xdo.log file

    Hi all,
      Hi have developed a BI Publisher report but when trying to deliver it using the bursting concurrent program it fails wirh next error:
    Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..
    If I look at the xdo.log file I can see next error:
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[null], [content-type]=[text/plain;charset=UTF-8], [index]=[0], [disposition]=[inline]
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [122713_102535782][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] java.lang.NullPointerException
        at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
        at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539)
        at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:354)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:283)
        at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(SMTPDeliveryRequestHandler.java:604)
        at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(AbstractDeliveryRequest.java:1270)
        at oracle.apps.xdo.batch.DeliveryHelper.submitRequests(DeliveryHelper.java:626)
        at oracle.apps.xdo.batch.bursting.DocumentDelivery.submitCoreDeliveryRequests(DocumentDelivery.java:147)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(BurstingProcessorEngine.java:3268)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2136)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2077)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1999)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1135)
        at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
        at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
        at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    I don´t know what to do, SMTP server parameters are rigth, bursting control file is also OK, original report with XML output ends OK with a pdf output.
    Any ideas?
    Best Regards
    Javier

    Hi all,
      Hi have developed a BI Publisher report but when trying to deliver it using the bursting concurrent program it fails wirh next error:
    Error!! Could not deliver the output for Delivery channel:null . Please check the Log for error details..
    If I look at the xdo.log file I can see next error:
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Adding an attachment ...[filename]=[null], [content-type]=[text/plain;charset=UTF-8], [index]=[0], [disposition]=[inline]
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character set for MIME headers : UTF-8
    [122713_102535779][oracle.apps.xdo.delivery.smtp.Attachment][STATEMENT] addAttachment(): Character encoding for MIME headers : B
    [122713_102535782][oracle.apps.xdo.batch.DeliveryHelper][EXCEPTION] java.lang.NullPointerException
        at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
        at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:539)
        at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:373)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:354)
        at oracle.apps.xdo.delivery.smtp.Attachment.addAttachment(Attachment.java:283)
        at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(SMTPDeliveryRequestHandler.java:604)
        at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(AbstractDeliveryRequest.java:1270)
        at oracle.apps.xdo.batch.DeliveryHelper.submitRequests(DeliveryHelper.java:626)
        at oracle.apps.xdo.batch.bursting.DocumentDelivery.submitCoreDeliveryRequests(DocumentDelivery.java:147)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(BurstingProcessorEngine.java:3268)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(BurstingProcessorEngine.java:2136)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(BurstingProcessorEngine.java:2077)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(BurstingProcessorEngine.java:1999)
        at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(BurstingProcessorEngine.java:1135)
        at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
        at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
        at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    I don´t know what to do, SMTP server parameters are rigth, bursting control file is also OK, original report with XML output ends OK with a pdf output.
    Any ideas?
    Best Regards
    Javier

  • Re: RDP not working - RDP Broker logging

    If I set the logging level to ALL, there is an exception
    AM FEINSTEN: thr#14 SSH exception
    com.jcraft.jsch.JSchException: timeout: socket is not established
            at com.jcraft.jsch.Util.createSocket(Util.java:386)
            at com.jcraft.jsch.Session.connect(Session.java:182)
            at com.sun.vda.service.vbox.SshServer.openChannel(Unknown Source)
            at com.sun.vda.service.vbox.SshServer.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.SshServer.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.Storage.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.ZfsStorage.getStorageDiskSpace(Unknown Source)
            at com.sun.vda.service.vbox.StorageCache$Retriever.run(Unknown Source)
    21.07.2009 13:27:33 com.sun.vda.service.vbox.StorageCache$Retriever run
    AM FEINSTEN: thr#14 Exception during cache data retrieval
    com.sun.vda.service.api.ServiceException: An internal error occurred.
            at com.sun.vda.service.vbox.SshServer.handleJSchException(Unknown Source)
            at com.sun.vda.service.vbox.SshServer.openChannel(Unknown Source)
            at com.sun.vda.service.vbox.SshServer.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.SshServer.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.Storage.executeCommand(Unknown Source)
            at com.sun.vda.service.vbox.ZfsStorage.getStorageDiskSpace(Unknown Source)
            at com.sun.vda.service.vbox.StorageCache$Retriever.run(Unknown Source)
    Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established
            at com.jcraft.jsch.Util.createSocket(Util.java:386)
            at com.jcraft.jsch.Session.connect(Session.java:182)
            ... 6 moreIs there somethin wrong?

    Hi,
    The error tells there is a connection loss between the storage and VDI.
    1. can you try ssh from VDI server to the storage server?
    2. What version of VDI you're using. 3.0 or 3.0 + patch 1?
    3. What is the storage being used here?
    Regards,
    --Chirag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Java.lang.NullPointerException in webstarterappII application.log

    Hi, all,
    When I try WebStarter Application II (WSA II), I find many java.lang.NullPointerException in application.log, like this:
    03/10/20 06:41:42 webstarterappII: Version: 1.0 LOGGING: DocServlet:service(), request to show document
    03/10/20 06:41:42 webstarterappII: Servlet error
    java.lang.NullPointerException
    at view.DocServlet.getRequestContext(DocServlet.java:133)
    at view.DocServlet.service(DocServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    03/10/20 06:41:43 webstarterappII: Version: 1.0 LOGGING: DocServlet:service(), request to show document
    Anyone know the reason and how to avoid this error?
    Thanks.

    It means that you were not authenticated (such that, did not have a valid http session instance) - before trying to service the request.
    authenticate first via the application, then try and access the DocServlet.

  • BUG: rebuild gets NullPointerException when log pane is minimized

    Hi,
    on the last distribution of JDeveloper Studio Edition Version 11.1.1.1.0
    Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    ADF Business Components     11.1.1.54.7
    CVS Version (External)     (CVS) 1.11.22 (client/server)
    Java(TM) Platform     1.6.0_11
    Oracle IDE     11.1.1.1.33.54.07
    Versioning Support     11.1.1.1.33.54.07
    Linux 2.6.18-128.1.16.el5 #1 SMP Tue Jun 30 06:10:28 EDT 2009 i686 i686 i386 GNU/Linux
    if you minimize log panel, then right click on a project and choose rebuild, you get follow exception:
    Performing action Rebuild Core.jpr[ from oracle.ide.navigator.ProjectNavigatorWindow ]
    Uncaught exception
    java.lang.NullPointerException
    o.ii.log.TabbedPage$TabbedPageImpl$CurrentPageComponentListener.componentResized(TabbedPage.java:1318)
    o.i.log.DefaultLogPage.forceResizeNotification(DefaultLogPage.java:622)
    o.i.log.DefaultLogPage.clearAll(DefaultLogPage.java:605)
    o.j.compiler.CompilerPage.mas$clearAll(CompilerPage.java:83)
    o.j.compiler.CompilerPage$4.run(CompilerPage.java:1250)
    o.j.compiler.CompilerPage.clearAll(CompilerPage.java:1257)
    o.j.compiler.JCompiler$8.run(JCompiler.java:1157)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEvent(EventQueue.java:597)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    a workaround is maintain log oppened when you will do a rebuild.
    best regards
    Clóvis
    Edited by: clovisw on 13/07/2009 18:38

    I've got it!! That exception occurs when audit is activated on service but it isn't on soa-infra. Setting Audit level to Development through enterprise manager console, problem goes out

  • Fastest way to create a broker instance in GlassFish V3?

    Hello,
    is there an easy way to launch OpenMQ in GlassFish V3 so that the broker creates the configuration file
    glassfish-v3\glassfish\domains\domain1\config\init.conf\imq\instances\imqbroker\props\config.properties
    Edit: the first thing I noticed in the console log output of GlassFish was a message that said creation of the server.log is not possible:
    java.io.IOException: Couldn't get lock for C:\Program Files\sges-v3\glassfish\do
    mains\domain1\logs\server.log
            at java.util.logging.FileHandler.openFiles(Unknown Source)
            at java.util.logging.FileHandler.<init>(Unknown Source)
            at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(
    GFLauncherLogger.java:85)
            at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:14
    8)
            at com.sun.enterprise.admin.cli.StartDomainCommand.createLauncher(StartD
    omainCommand.java:239)
            at com.sun.enterprise.admin.cli.StartDomainCommand.runCommandNotEmbedded
    (StartDomainCommand.java:122)
            at com.sun.enterprise.admin.cli.StartDomainCommand.executeCommand(StartD
    omainCommand.java:117)
            at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:257)
            at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
    ava:229)
            at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:167)
    12.12.2009 10:33:59 com.sun.enterprise.admin.launcher.GFLauncherLogger info
    INFO: JVM invocation command line:
    C:\Program Files\Java\jdk1.6.0_07\bin\java.exeThis is GlassFish V3 bundled with the NetBeans 6.8 final release, installed in the default location on Windows Vista.
    I will test on Windows XP and Ubuntu to see if this is caused by security settings (UAC). Result: works fine there, so it seems to be a Vista / UAC problem.
    I tried to deploy imqums.war, which gives this error message (Tested on Vista):
    C:\Program Files\sges-v3\glassfish\domains\domain1\applications\imqums\examples\csharp\ReceiveSOAPMsg.exe
    (Edit: this was easy to fix by removing the examples from the WAR file - but invoking UMS operations did not have the desired side effect of creating a configuration file)
    Many thanks in advance
    Edited by: mjustin_de on Dec 12, 2009 1:26 AM
    Edited by: mjustin_de on Dec 12, 2009 1:32 AM
    Edited by: mjustin_de on Dec 12, 2009 1:37 AM
    Edited by: mjustin_de on Dec 12, 2009 9:03 AM

    Hi,
    You've obviously been having problems and have been investigating possible solutions, but as a result I'm finding your mail a bit confusing.
    You ask
    is there an easy way to launch OpenMQ in GlassFish V3 so that the broker creates the configuration file
    glassfish-v3\glassfish\domains\domain1\config\init.conf\imq\instances\imqbroker\props\config.propertiesThis file gets created when the broker starts. Are you getting an error on broker startup?
    Note that in Glassfish V3 the embedded MQ broker isn't started automatically when the Glassfish instance starts. Instead, the embedded MQ broker is started lazily when you first try to connect to it. You'll see a message in the server log when the embedded broker starts.
    the first thing I noticed in the console log output of GlassFish was a message that said creation of the server.log is not possible:
    java.io.IOException: Couldn't get lock for C:\Program Files\sges-v3\glassfish\domains\domain1\logs\server.logThat's the Glassfish server log. Were you able to start the Glassfish instance OK? If you're having trouble starting Glassfish itself, or have general questions about Glassfish on Vista, I would suggest asking in the Glassfish user forum: [http://forums.java.net/jive/forum.jspa?forumID=56&start=0|http://forums.java.net/jive/forum.jspa?forumID=56&start=0]
    This is GlassFish V3 bundled with the NetBeans 6.8 final release, installed in the default location on Windows Vista.
    I will test on Windows XP and Ubuntu to see if this is caused by security settings (UAC).
    Result: works fine there, so it seems to be a Vista / UAC problem.I can well imagine that UAC introduces a few challenges! (For what it's worth, I don't have a Vista machine to hand, but I installed NetBeans 6.8 and the bundled Glassfish V3 on Windows 7 (which also has UAC); this creates runtime artefacts such as the server and broker logs under the user's home directory, presumably to avoid UAC issues.)
    If any other readers of this forum have experience with NetBeans + Glassfish + Vista please join in.
    I tried to deploy imqums.war, which gives this error message (Tested on Vista):
    C:\Program Files\sges-v3\glassfish\domains\domain1\applications\imqums\examples\csharp\ReceiveSOAPMsg.exe
    (Edit: this was easy to fix by removing the examples from the WAR file - but invoking UMS operations did not have the desired side effect of
    creating a configuration file)Was that the complete message? Where was this written? To the console? To the server log?
    Nigel

  • Standby Log corruption -- in Recover phase

    Hi All,
    I am trying to set up RAC to RAC dataguard between 2 databases in different data centers.
    I am able to ship archivelogs from primary to DR. The logs are not getting applied.
    In the standby alert log -- I see the following errors (several of these CORRUPTION DETECTED Errors)
    CORRUPTION DETECTED: In redo blocks starting at block 4097count 2048 for thread 4 sequence 15019
    RFS[1185]: Possible network disconnect with primary database *Deleted Oracle managed file
    +FR1/drdb/archivelog/2012_07_02/thread_4_seq_15019.578.787560321*
    RFS[1186]: Possible network disconnect with primary database Mon Jul 02 06:45:36 2012
    RFS[1189]: Assigned to RFS process 5016
    RFS[1189]: Opened log for thread 2 sequence 12872 dbid 832151255 branch
    782279895
    *CORRUPTION DETECTED: In redo blocks starting at block 1count 2048 for thread 2 sequence 12872 Deleted Oracle managed file
    +FR1/drdb/archivelog/2012_07_02/thread_2_seq_12872.578.787560337*
    Mon Jul 02 06:45:38 2012
    another thing is -- I have another application, where there is dataguard from RAC to single instance. For this I dont see any problem..
    can anybody throw some light on this problem?
    Thanks in advance..
    Krishna
    Edited by: user10697869 on Jul 2, 2012 4:02 AM

    Right now, I dont have any corruption.
    INST_ID PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    1 ARCH CLOSING 1 31 10240 1775
    1 ARCH CLOSING 3 32 8192 1243
    1 ARCH CONNECTED 0 0 0 0
    1 ARCH CLOSING 2 29 4096 1063
    1 ARCH CLOSING 4 31 4096 719
    1 RFS IDLE 0 0 0 0
    2 ARCH CLOSING 3 34 6144 1046
    2 ARCH CONNECTED 0 0 0 0
    2 ARCH CLOSING 1 22 6144 911
    2 ARCH CLOSING 3 35 10240 1556
    2 ARCH CLOSING 4 23 1 1946
    INST_ID PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
    2 RFS IDLE 0 0 0 0
    2 RFS IDLE 0 0 0 0
    2 RFS IDLE 0 0 0 0
    2 RFS IDLE 0 0 0 0
    2 RFS IDLE 0 0 0 0
    2 MRP0 WAIT_FOR_LOG 3 11753 0 0
    MRP0 is running -- but primary node say.. it cannot create archivelog..
    this is from broker log.
    Redo transport problem detected: redo transport for database drdb has the following error:
    ORA-00270: error creating archive log
    07/03/2012 01:45:28
    Redo transport problem detected: redo transport for database drdb has the following error:
    ORA-00270: error creating archive log
    07/03/2012 01:46:28
    Redo transport problem detected: redo transport for database drdb has the following error:
    ORA-00270: error creating archive log
    i dont understand why there is an error in creating archivelog..
    I am printing my output of gv$logfile for both primary and standby..
    Is there any thing wrong in this config??
    "INST_ID"     "GROUP#"     "STATUS"     "TYPE"     "MEMBER"     "IS_RECOVERY_DEST_FILE"
    1     12     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_12.257.783544139"     "NO"
    1     10     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_10.257.784552287"     "NO"
    1     29     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_29.264.787264987"     "NO"
    1     11     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_11.258.784552299"     "NO"
    1     12     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_12.259.784552311"     "NO"
    1     13     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_13.260.784552323"     "NO"
    1     14     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_14.261.784552335"     "NO"
    1     15     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_15.262.784552347"     "NO"
    1     16     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_16.263.784552363"     "NO"
    1     17     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_17.264.784552377"     "NO"
    1     18     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_18.265.784552391"     "NO"
    1     19     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_19.266.784552403"     "NO"
    1     20     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_20.267.784552413"     "NO"
    1     21     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_21.268.784552423"     "NO"
    1     22     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_22.269.784552433"     "NO"
    1     23     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_23.270.784552445"     "NO"
    1     10     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_10.284.783543933"     "NO"
    1     24     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_24.271.784552453"     "NO"
    1     11     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_11.285.783543979"     "NO"
    1     13     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_13.286.783544253"     "NO"
    1     14     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_14.287.783544347"     "NO"
    1     15     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_15.288.783544531"     "NO"
    1     16     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_16.289.783544655"     "NO"
    1     17     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_17.290.783544659"     "NO"
    1     18     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_18.291.783544685"     "NO"
    1     19     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_19.292.783544691"     "NO"
    1     20     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_20.293.783544697"     "NO"
    1     21     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_21.294.783544701"     "NO"
    1     22     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_22.295.783544717"     "NO"
    1     23     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_23.296.783544721"     "NO"
    1     24     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_24.297.783544727"     "NO"
    1     25     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_25.298.783544731"     "NO"
    1     25     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_25.272.784552459"     "NO"
    1     29     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_29.4913.787264989"     "NO"
    1     30     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_30.320.787264993"     "NO"
    1     30     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_30.4912.787264995"     "NO"
    1     31     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_31.319.787264997"     "NO"
    1     31     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_31.4911.787264999"     "NO"
    1     32     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_32.318.787265001"     "NO"
    1     32     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_32.4910.787265003"     "NO"
    1     33     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_33.317.787265005"     "NO"
    1     33     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_33.4909.787265007"     "NO"
    1     34     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_34.316.787265009"     "NO"
    1     34     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_34.4908.787265011"     "NO"
    1     35     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_35.315.787265013"     "NO"
    1     35     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_35.4905.787265015"     "NO"
    1     36     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_36.314.787265019"     "NO"
    1     36     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_36.4904.787265021"     "NO"
    1     37     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_37.313.787265023"     "NO"
    1     37     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_37.4903.787265027"     "NO"
    1     38     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_38.312.787265029"     "NO"
    1     38     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_38.4902.787265031"     "NO"
    1     39     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_39.263.787265033"     "NO"
    1     39     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_39.4901.787265035"     "NO"
    1     40     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_40.278.787265037"     "NO"
    1     40     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_40.4899.787265039"     "NO"
    1     41     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_41.279.787265041"     "NO"
    1     41     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_41.4898.787265043"     "NO"
    1     42     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_42.277.787265047"     "NO"
    1     42     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_42.4897.787265049"     "NO"
    1     43     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_43.276.787265051"     "NO"
    1     43     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_43.4896.787265053"     "NO"
    1     44     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_44.275.787265055"     "NO"
    1     44     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_44.4894.787265057"     "NO"
    1     45     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_45.282.787265259"     "NO"
    1     45     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_45.4893.787265261"     "NO"
    1     47     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_47.324.787265263"     "NO"
    1     47     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_47.4892.787265265"     "NO"
    1     48     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_48.325.787265267"     "NO"
    1     48     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_48.4891.787265269"     "NO"
    1     46     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_46.326.787265279"     "NO"
    1     46     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_46.4890.787265281"     "NO"
    3     12     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_12.257.783544139"     "NO"
    3     10     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_10.257.784552287"     "NO"
    3     29     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_29.264.787264987"     "NO"
    3     11     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_11.258.784552299"     "NO"
    3     12     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_12.259.784552311"     "NO"
    3     13     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_13.260.784552323"     "NO"
    3     14     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_14.261.784552335"     "NO"
    3     15     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_15.262.784552347"     "NO"
    3     16     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_16.263.784552363"     "NO"
    3     17     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_17.264.784552377"     "NO"
    3     18     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_18.265.784552391"     "NO"
    3     19     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_19.266.784552403"     "NO"
    3     20     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_20.267.784552413"     "NO"
    3     21     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_21.268.784552423"     "NO"
    3     22     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_22.269.784552433"     "NO"
    3     23     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_23.270.784552445"     "NO"
    3     10     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_10.284.783543933"     "NO"
    3     24     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_24.271.784552453"     "NO"
    3     11     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_11.285.783543979"     "NO"
    3     13     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_13.286.783544253"     "NO"
    3     14     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_14.287.783544347"     "NO"
    3     15     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_15.288.783544531"     "NO"
    3     16     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_16.289.783544655"     "NO"
    3     17     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_17.290.783544659"     "NO"
    3     18     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_18.291.783544685"     "NO"
    3     19     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_19.292.783544691"     "NO"
    3     20     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_20.293.783544697"     "NO"
    3     21     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_21.294.783544701"     "NO"
    3     22     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_22.295.783544717"     "NO"
    3     23     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_23.296.783544721"     "NO"
    3     24     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_24.297.783544727"     "NO"
    3     25     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_25.298.783544731"     "NO"
    3     25     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_25.272.784552459"     "NO"
    3     29     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_29.4913.787264989"     "NO"
    3     30     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_30.320.787264993"     "NO"
    3     30     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_30.4912.787264995"     "NO"
    3     31     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_31.319.787264997"     "NO"
    3     31     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_31.4911.787264999"     "NO"
    3     32     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_32.318.787265001"     "NO"
    3     32     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_32.4910.787265003"     "NO"
    3     33     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_33.317.787265005"     "NO"
    3     33     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_33.4909.787265007"     "NO"
    3     34     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_34.316.787265009"     "NO"
    3     34     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_34.4908.787265011"     "NO"
    3     35     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_35.315.787265013"     "NO"
    3     35     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_35.4905.787265015"     "NO"
    3     36     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_36.314.787265019"     "NO"
    3     36     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_36.4904.787265021"     "NO"
    3     37     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_37.313.787265023"     "NO"
    3     37     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_37.4903.787265027"     "NO"
    3     38     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_38.312.787265029"     "NO"
    3     38     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_38.4902.787265031"     "NO"
    3     39     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_39.263.787265033"     "NO"
    3     39     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_39.4901.787265035"     "NO"
    3     40     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_40.278.787265037"     "NO"
    3     40     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_40.4899.787265039"     "NO"
    3     41     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_41.279.787265041"     "NO"
    3     41     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_41.4898.787265043"     "NO"
    3     42     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_42.277.787265047"     "NO"
    3     42     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_42.4897.787265049"     "NO"
    3     43     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_43.276.787265051"     "NO"
    3     43     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_43.4896.787265053"     "NO"
    3     44     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_44.275.787265055"     "NO"
    3     44     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_44.4894.787265057"     "NO"
    3     45     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_45.282.787265259"     "NO"
    3     45     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_45.4893.787265261"     "NO"
    3     47     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_47.324.787265263"     "NO"
    3     47     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_47.4892.787265265"     "NO"
    3     48     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_48.325.787265267"     "NO"
    3     48     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_48.4891.787265269"     "NO"
    3     46     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_46.326.787265279"     "NO"
    3     46     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_46.4890.787265281"     "NO"
    2     12     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_12.257.783544139"     "NO"
    2     10     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_10.257.784552287"     "NO"
    2     29     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_29.264.787264987"     "NO"
    2     11     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_11.258.784552299"     "NO"
    2     12     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_12.259.784552311"     "NO"
    2     13     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_13.260.784552323"     "NO"
    2     14     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_14.261.784552335"     "NO"
    2     15     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_15.262.784552347"     "NO"
    2     16     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_16.263.784552363"     "NO"
    2     17     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_17.264.784552377"     "NO"
    2     18     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_18.265.784552391"     "NO"
    2     19     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_19.266.784552403"     "NO"
    2     20     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_20.267.784552413"     "NO"
    2     21     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_21.268.784552423"     "NO"
    2     22     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_22.269.784552433"     "NO"
    2     23     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_23.270.784552445"     "NO"
    2     10     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_10.284.783543933"     "NO"
    2     24     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_24.271.784552453"     "NO"
    2     11     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_11.285.783543979"     "NO"
    2     13     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_13.286.783544253"     "NO"
    2     14     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_14.287.783544347"     "NO"
    2     15     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_15.288.783544531"     "NO"
    2     16     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_16.289.783544655"     "NO"
    2     17     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_17.290.783544659"     "NO"
    2     18     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_18.291.783544685"     "NO"
    2     19     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_19.292.783544691"     "NO"
    2     20     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_20.293.783544697"     "NO"
    2     21     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_21.294.783544701"     "NO"
    2     22     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_22.295.783544717"     "NO"
    2     23     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_23.296.783544721"     "NO"
    2     24     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_24.297.783544727"     "NO"
    2     25     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_25.298.783544731"     "NO"
    2     25     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_25.272.784552459"     "NO"
    2     29     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_29.4913.787264989"     "NO"
    2     30     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_30.320.787264993"     "NO"
    2     30     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_30.4912.787264995"     "NO"
    2     31     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_31.319.787264997"     "NO"
    2     31     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_31.4911.787264999"     "NO"
    2     32     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_32.318.787265001"     "NO"
    2     32     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_32.4910.787265003"     "NO"
    2     33     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_33.317.787265005"     "NO"
    2     33     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_33.4909.787265007"     "NO"
    2     34     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_34.316.787265009"     "NO"
    2     34     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_34.4908.787265011"     "NO"
    2     35     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_35.315.787265013"     "NO"
    2     35     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_35.4905.787265015"     "NO"
    2     36     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_36.314.787265019"     "NO"
    2     36     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_36.4904.787265021"     "NO"
    2     37     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_37.313.787265023"     "NO"
    2     37     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_37.4903.787265027"     "NO"
    2     38     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_38.312.787265029"     "NO"
    2     38     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_38.4902.787265031"     "NO"
    2     39     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_39.263.787265033"     "NO"
    2     39     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_39.4901.787265035"     "NO"
    2     40     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_40.278.787265037"     "NO"
    2     40     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_40.4899.787265039"     "NO"
    2     41     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_41.279.787265041"     "NO"
    2     41     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_41.4898.787265043"     "NO"
    2     42     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_42.277.787265047"     "NO"
    2     42     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_42.4897.787265049"     "NO"
    2     43     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_43.276.787265051"     "NO"
    2     43     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_43.4896.787265053"     "NO"
    2     44     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_44.275.787265055"     "NO"
    2     44     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_44.4894.787265057"     "NO"
    2     45     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_45.282.787265259"     "NO"
    2     45     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_45.4893.787265261"     "NO"
    2     47     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_47.324.787265263"     "NO"
    2     47     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_47.4892.787265265"     "NO"
    2     48     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_48.325.787265267"     "NO"
    2     48     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_48.4891.787265269"     "NO"
    2     46     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_46.326.787265279"     "NO"
    2     46     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_46.4890.787265281"     "NO"
    4     12     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_12.257.783544139"     "NO"
    4     10     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_10.257.784552287"     "NO"
    4     29     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_29.264.787264987"     "NO"
    4     11     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_11.258.784552299"     "NO"
    4     12     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_12.259.784552311"     "NO"
    4     13     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_13.260.784552323"     "NO"
    4     14     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_14.261.784552335"     "NO"
    4     15     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_15.262.784552347"     "NO"
    4     16     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_16.263.784552363"     "NO"
    4     17     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_17.264.784552377"     "NO"
    4     18     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_18.265.784552391"     "NO"
    4     19     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_19.266.784552403"     "NO"
    4     20     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_20.267.784552413"     "NO"
    4     21     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_21.268.784552423"     "NO"
    4     22     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_22.269.784552433"     "NO"
    4     23     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_23.270.784552445"     "NO"
    4     10     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_10.284.783543933"     "NO"
    4     24     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_24.271.784552453"     "NO"
    4     11     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_11.285.783543979"     "NO"
    4     13     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_13.286.783544253"     "NO"
    4     14     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_14.287.783544347"     "NO"
    4     15     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_15.288.783544531"     "NO"
    4     16     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_16.289.783544655"     "NO"
    4     17     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_17.290.783544659"     "NO"
    4     18     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_18.291.783544685"     "NO"
    4     19     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_19.292.783544691"     "NO"
    4     20     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_20.293.783544697"     "NO"
    4     21     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_21.294.783544701"     "NO"
    4     22     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_22.295.783544717"     "NO"
    4     23     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_23.296.783544721"     "NO"
    4     24     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_24.297.783544727"     "NO"
    4     25     ""     "ONLINE"     "+DG1/primdb/onlinelog/group_25.298.783544731"     "NO"
    4     25     ""     "ONLINE"     "+REDO/primdb/onlinelog/group_25.272.784552459"     "NO"
    4     29     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_29.4913.787264989"     "NO"
    4     30     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_30.320.787264993"     "NO"
    4     30     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_30.4912.787264995"     "NO"
    4     31     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_31.319.787264997"     "NO"
    4     31     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_31.4911.787264999"     "NO"
    4     32     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_32.318.787265001"     "NO"
    4     32     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_32.4910.787265003"     "NO"
    4     33     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_33.317.787265005"     "NO"
    4     33     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_33.4909.787265007"     "NO"
    4     34     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_34.316.787265009"     "NO"
    4     34     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_34.4908.787265011"     "NO"
    4     35     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_35.315.787265013"     "NO"
    4     35     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_35.4905.787265015"     "NO"
    4     36     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_36.314.787265019"     "NO"
    4     36     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_36.4904.787265021"     "NO"
    4     37     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_37.313.787265023"     "NO"
    4     37     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_37.4903.787265027"     "NO"
    4     38     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_38.312.787265029"     "NO"
    4     38     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_38.4902.787265031"     "NO"
    4     39     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_39.263.787265033"     "NO"
    4     39     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_39.4901.787265035"     "NO"
    4     40     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_40.278.787265037"     "NO"
    4     40     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_40.4899.787265039"     "NO"
    4     41     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_41.279.787265041"     "NO"
    4     41     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_41.4898.787265043"     "NO"
    4     42     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_42.277.787265047"     "NO"
    4     42     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_42.4897.787265049"     "NO"
    4     43     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_43.276.787265051"     "NO"
    4     43     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_43.4896.787265053"     "NO"
    4     44     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_44.275.787265055"     "NO"
    4     44     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_44.4894.787265057"     "NO"
    4     45     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_45.282.787265259"     "NO"
    4     45     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_45.4893.787265261"     "NO"
    4     47     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_47.324.787265263"     "NO"
    4     47     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_47.4892.787265265"     "NO"
    4     48     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_48.325.787265267"     "NO"
    4     48     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_48.4891.787265269"     "NO"
    4     46     ""     "STANDBY"     "+DG1/primdb/onlinelog/group_46.326.787265279"     "NO"
    4     46     ""     "STANDBY"     "+FR1/primdb/onlinelog/group_46.4890.787265281"     "NO"

  • NPE in stopWeblogic.cmd with Server Logging Bridge

    I'm migrating an EAR that depends on JDK logging to WLS 10.3.3. To activate the JDK logging in my domain logs I followed [url http://download.oracle.com/docs/cd/E14571_01/web.1111/e13739/logging_services.htm#WLLOG199]the instructions given in the WLS manual. The logging part works as expected now. However, my stopWeblogic.cmd fails with the following NPE:
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://DT04748:7001 with userid weblogic ...
    WLST detected that the RuntimeMBeanServer is not enabled. This
    might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    Please ensure that this MBeanServer is enabled. Online WLST cannot
    function without this MBeanServer.
    This Exception occurred at Thu Jan 06 13:20:24 CET 2011.
    java.lang.NullPointerException
            at weblogic.logging.ServerLoggingHandler.publish(ServerLoggingHandler.java:24)
            at java.util.logging.Logger.log(Logger.java:481)
            at java.util.logging.Logger.doLog(Logger.java:503)
            at java.util.logging.Logger.logp(Logger.java:619)
            at com.sun.jmx.remote.util.ClassLogger.finer(ClassLogger.java:130)
            at com.sun.jmx.remote.util.ClassLogger.trace(ClassLogger.java:88)
            at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:333)
            at weblogic.management.remote.common.WLSRMIConnector.doConnect(WLSRMIConnector.java:150)
            at weblogic.management.remote.common.WLSRMIConnector.access$100(WLSRMIConnector.java:27)
            at weblogic.management.remote.common.WLSRMIConnector$2.run(WLSRMIConnector.java:138)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            at weblogic.security.Security.runAs(Security.java:61)
            at weblogic.management.remote.common.WLSRMIConnector.connect(WLSRMIConnector.java:136)
            at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
            at weblogic.management.scripting.WLSTHelper.lookupMBeanServerConnection(WLSTHelper.java:678)
            at weblogic.management.scripting.WLSTHelper.initRuntimeServerConnection(WLSTHelper.java:398)
            at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
            at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
            at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
            at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.python.core.PyReflectedFunction.__call__(Unknown Source)
            at org.python.core.PyMethod.__call__(Unknown Source)
            at org.python.core.PyObject.__call__(Unknown Source)
            at org.python.core.PyObject.invoke(Unknown Source)
            at org.python.pycode._pyx4.connect$1(<iostream>:16)
            at org.python.pycode._pyx4.call_function(<iostream>)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyFunction.__call__(Unknown Source)
            at org.python.pycode._pyx15.f$0(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py:6)
            at org.python.pycode._pyx15.call_function(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyCode.call(Unknown Source)
            at org.python.core.Py.runCode(Unknown Source)
            at org.python.util.PythonInterpreter.execfile(Unknown Source)
            at weblogic.management.scripting.WLST.main(WLST.java:131)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.WLST.main(WLST.java:29)
    Problem invoking WLST - Traceback (innermost last):
      File "D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py", line 6, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    Use dumpStack() to view the full stacktrace
    Done
    Stopping Derby Server...
    Steps to reproduce
    1. Create a logging.properties file with the following contents:
    # Specify the handlers to create in the root logger
    handlers = weblogic.logging.ServerLoggingHandler
    # Register handlers for my.app and their child loggers
    my.app.handlers = java.util.logging.ConsoleHandler, weblogic.logging.ServerLoggingHandler
    # Do not send the my.app log messages to the root handler
    my.app.useParentHandlers = false
    # Set the default logging level for the root logger
    .level = ALL
    # Set the default logging level for new ConsoleHandler instances
    java.util.logging.ConsoleHandler.level = INFO
    # Set the default logging level for new FileHandler instances
    weblogic.logging.ServerLoggingHandler.level = ALL2. Add the following directive in the setDomainEnv.cmd:
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.util.logging.config.file=path/to/logging.properties3. Start-stop the domain and the above NPE occurs while WLS keeps running. Remove the directive from step 2 and the start-stop sequence goes back to normal.
    Environment
    Oracle JDK:
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)OS: Windows XP Pro SP3
    Your help would be very much appreciated! Please let me know if you need any additional info.
    Thanks,
    Bas

    Hi Sandeep,
    Thanks a lot for your quick reply! You were right, the logging directive was used both client and server side. I moved
    -Djava.util.logging.config.file=path/to/logging.propertiesfrom setDomainEnv.cmd to startWeblogic.cmd and WLS can be stopped correctly now.
    Regards,
    Bas

  • Unexplained NullPointerException on reloading a page

    Hi,
    I'm using JDeveloper 10g (10.1.3.3.0) and ADF Faces.
    I have a jspx page and whenever I navigate to it using a navigation case (or use F5 to refresh the page after navigating to it), I get a JBO-29000 error and NullPointerException in the log. I turned on debug output and the full stack trace was shown:
    09/12/14 15:20:44 [1754] java.lang.NullPointerException
         at oracle.adf.model.binding.DCInvokeActionDef$DCInvokeAction.getActionBinding(DCInvokeActionDef.java:172)
         at oracle.adf.model.binding.DCInvokeActionDef$DCInvokeAction.refresh(DCInvokeActionDef.java:137)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2521)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:534)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:98)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$1.execute(Lifecycle.java:297)
         at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$1.before(ADFPhaseListener.java:426)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    14-Dec-2009 15:20:44 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    14-Dec-2009 15:20:44 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessageCan anyone say what's causing this? The only solution seems to be to put my entire application into one page (and conditionally turn on/off certain parts of the page using the 'rendered' attribute).
    Edited by: japher on Dec 14, 2009 3:42 PM

    Just did some debugging against the ADF 10g source code. Found that the problem was related to some actionbinding called 'Create6'. I checked the page def and found this definition:
        <invokeAction Binds="Create6" id="invokeCreate6" Refresh="renderModel"
                      RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>No idea why this is included in the page def, it's certainly not used in the application (I didn't develop this app, just here to make changes). After removing this binding completely, the problem is solved! :D
    Edit: I've just noticed that the second exception shown in the log is nothing to do with the first, that's a different problem entirely. I've now edited the log in the first post for clarity.

  • Unexpected Broker Internal Error : [transaction failed]:

    Currently running glassfish v2.1 with jms broker mode set as LOCAL and remote client message listeners fail to get messages and the following is logged by imqbroker:
    [23/Jun/2009:21:45:38 BST] WARNING [B3100]: Unexpected Broker Internal Error : [transaction failed]:
    com.sun.messaging.jmq.jmsserver.util.BrokerException: Unexpected Broker Exception: [received message with Unknown Transaction ID -1: ignoring message]
    at com.sun.messaging.jmq.jmsserver.data.TransactionList.addMessage(TransactionList.java:587)
    at com.sun.messaging.jmq.jmsserver.data.TransactionList.addMessage(TransactionList.java:571)
    at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.routeMessage(DataHandler.java:448)
    at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.handle(DataHandler.java:244)
    at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.handle(DataHandler.java:97)
    at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644)
    at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
    at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
    at java.lang.Thread.run(Thread.java:595)
    [23/Jun/2009:21:45:38 BST] WARNING [B2011]: Storing of JMS message from IMQConn[AUTHENTICATED,[email protected]:46541,jms:39771] failed:
    com.sun.messaging.jmq.jmsserver.util.BrokerException: transaction failed: Unexpected Broker Exception: [received message with Unknown Transaction ID -1: ignoring message]
    [23/Jun/2009:21:45:38 BST] WARNING [B2189]: Unknown transaction -1(-1), broker will not notify the client. Ignore ROLLBACK_TRANSACTION(48)
    Packet: ROLLBACK_TRANSACTION(48):587-10.201.1.142(99:9a:41:23:bb:b7)-46541-1245789938570
    Magic/Version: 469754818/301 Size: 112 Type: ROLLBACK_TRANSACTION(48)
    Expiration: 0 Timestamp: 1245789938570
    Source IP: 10.201.1.142(99:9a:41:23:bb:b7) Port: 46541 Sequence: 587
    Property Offset: 76 Property Size: 36
    Encryption: 0 Priority: 5
    Flags: consumerID: 0
    TransactionID: 0
    MessageID: 587-10.201.1.142(99:9a:41:23:bb:b7)-46541-1245789938570
    Properties: {JMQTransactionID=-1}
    Message Body: 0 bytes
    Internal Buffers (useDirect=false):
    Fixed Header Buffer:java.nio.HeapByteBuffer[pos=0 lim=72 cap=72]
    Any ideas? Clustering is turned off.

    message broker log
    # 1245801254899 Do not modify this line
    [24/Jun/2009:00:54:14 BST]
    ================================================================================
    Open Message Queue 4.3
    Sun Microsystems, Inc.
    Version: 4.3 (Build 7-g)
    Compile: Fri Nov 7 18:14:54 PST 2008
    Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. Use is
    subject to license terms.
    ================================================================================
    Java Runtime: 1.5.0_12 Sun Microsystems Inc. /usr/lib/jdk1.5.0_12/jre
    [24/Jun/2009:00:54:14 BST] IMQ_HOME=/opt/our-server/glassfish/imq
    [24/Jun/2009:00:54:14 BST] IMQ_VARHOME=/opt/our-server/glassfish/domains/domain1/imq
    [24/Jun/2009:00:54:14 BST] Linux 2.6.16 i386 medusa.eng.dolby.net (4 cpu) root
    [24/Jun/2009:00:54:14 BST] Java Heap Size: max=193920k, current=193920k
    [24/Jun/2009:00:54:14 BST] Arguments: -javahome /usr/lib/jdk1.5.0_12/jre/.. -Dimq.cluster.nowaitForMasterBroker=true -varhome /opt/our-server/glassfish/domains/domain1/imq -startRmiRegistry -rmiRegistryPort 7776 -Dimq.imqcmd.user=admin -passfile /tmp/asmq23784.tmp -save -name imqbroker -port 7676 -bgnd -silent
    [24/Jun/2009:00:58:35 BST] [B1065]: Accepting: [email protected]:51368->jms:35424. Count: service=12 broker=13
    [24/Jun/2009:00:59:06 BST] WARNING [B3100]: Unexpected Broker Internal Error : [transaction failed]:
    com.sun.messaging.jmq.jmsserver.util.BrokerException: Unexpected Broker Exception: [received message with Unknown Transaction ID -1: ignoring message]
         at com.sun.messaging.jmq.jmsserver.data.TransactionList.addMessage(TransactionList.java:587)
         at com.sun.messaging.jmq.jmsserver.data.TransactionList.addMessage(TransactionList.java:571)
         at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.routeMessage(DataHandler.java:448)
         at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.handle(DataHandler.java:244)
         at com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.handle(DataHandler.java:97)
         at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181)
         at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489)
         at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644)
         at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
         at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
         at java.lang.Thread.run(Thread.java:595)
    [24/Jun/2009:00:59:06 BST] WARNING [B2011]: Storing of JMS message from IMQConn[AUTHENTICATED,[email protected]:54965,jms:35424] failed:
    com.sun.messaging.jmq.jmsserver.util.BrokerException: transaction failed: Unexpected Broker Exception: [received message with Unknown Transaction ID -1: ignoring message]
    [24/Jun/2009:00:59:06 BST] WARNING [B2189]: Unknown transaction -1(-1), broker will not notify the client. Ignore ROLLBACK_TRANSACTION(48)
         Packet: ROLLBACK_TRANSACTION(48):113-10.201.1.142(b3:b1:70:67:8e:45)-54965-1245801546716
    Magic/Version: 469754818/301     Size: 112     Type: ROLLBACK_TRANSACTION(48)
    Expiration: 0          Timestamp: 1245801546716
    Source IP: 10.201.1.142(b3:b1:70:67:8e:45) Port: 54965     Sequence: 113
    Property Offset: 76               Property Size: 36
    Encryption: 0     Priority: 5
    Flags:                consumerID: 0
    TransactionID: 0
    MessageID: 113-10.201.1.142(b3:b1:70:67:8e:45)-54965-1245801546716
    Properties: {JMQTransactionID=-1}
    Message Body: 0 bytes
    Internal Buffers (useDirect=false):
    Fixed Header Buffer:java.nio.HeapByteBuffer[pos=0 lim=72 cap=72]
    [24/Jun/2009:01:09:52 BST] [B1066]: Closing: [email protected]:3031->jms:35424 because "java.net.SocketException: Connection reset". Count: service=0 broker=11
    [24/Jun/2009:01:09:52 BST] [B1066]: Closing: [email protected]:3033->jms:35424 because "java.net.SocketException: Connection reset". Count: service=0 broker=10
    [24/Jun/2009:01:09:54 BST] [B1066]: Closing: [email protected]:2930->jms:35424 because "java.net.SocketException: Connection reset". Count: service=0 broker=9
    [24/Jun/2009:01:11:52 BST] [B1130]: Destroying auto-created destination workorderStatusTopic [Topic] inactive for 120 seconds
    [24/Jun/2009:01:11:52 BST] [B1159]: Destination workorderStatusTopic [Topic] has been destroyed
    [24/Jun/2009:01:11:52 BST] [B1130]: Destroying auto-created destination wfProfileStatusTopic [Topic] inactive for 120 seconds
    [24/Jun/2009:01:11:52 BST] [B1159]: Destination wfProfileStatusTopic [Topic] has been destroyed
    [24/Jun/2009:01:11:52 BST] [B1130]: Destroying auto-created destination sysMonitorTopic [Topic] inactive for 120 seconds
    [24/Jun/2009:01:11:52 BST] [B1159]: Destination sysMonitorTopic [Topic] has been destroyed
    [24/Jun/2009:01:11:52 BST] [B1130]: Destroying auto-created destination reportStatusTopic [Topic] inactive for 120 seconds
    [24/Jun/2009:01:11:52 BST] [B1159]: Destination reportStatusTopic [Topic] has been destroyed
    [24/Jun/2009:01:14:22 BST] [B1066]: Closing: [email protected]:37062->jms:35424 because "[B0059]: Client closed the connection". Count: service=0 broker=8
    [24/Jun/2009:01:14:22 BST] [B1066]: Closing: [email protected]:55527->jms:35424 because "[B0059]: Client closed the connection". Count: service=0 broker=7
    [24/Jun/2009:01:19:22 BST] [B1066]: Closing: [email protected]:36246->jms:35424 because "[B0059]: Client closed the connection". Count: service=0 broker=6
    [24/Jun/2009:01:19:22 BST] [B1066]: Closing: [email protected]:54965->jms:35424 because "[B0059]: Client closed the connection". Count: service=0 broker=5
    [24/Jun/2009:01:19:22 BST] [B1065]: Accepting: [email protected]:59844->jms:35424. Count: service=5 broker=6
    glassfish server log snippets
    [#|2009-06-24T00:59:13.547+0100|FINER|sun-appserver2.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=14;_ThreadName=p: thread-pool-1; w: 8;ClassName=com.sun.messaging.jms.ra.SessionAdapter;MethodName=constructor();com.sun.messaging.jms.ra.ConnectionAdapter@171e8ba;BrokerAddress=localhost:7676(35424), ConnectionID=1429085906906648832, ReconnectEnabled: false, IsConnectedToHABroker: false;ConnectionID=1429085906906648832, SessionID=1429085906980997632;_RequestID=a8911f36-6814-472b-9d49-a7bac8f6b2d8;|ENTRY com.sun.messaging.jms.ra.ConnectionAdapter@171e8ba BrokerAddress=localhost:7676(35424), ConnectionID=1429085906906648832, ReconnectEnabled: false, IsConnectedToHABroker: false ConnectionID=1429085906906648832, SessionID=1429085906980997632|#]
    [#|2009-06-24T00:59:13.598+0100|FINER|sun-appserver2.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=14;_ThreadName=p: thread-pool-1; w: 8;ClassName=com.sun.messaging.jms.ra.SessionAdapter;MethodName=constructor();com.sun.messaging.jms.ra.ConnectionAdapter@171e8ba;BrokerAddress=localhost:7676(35424), ConnectionID=1429085906906648832, ReconnectEnabled: false, IsConnectedToHABroker: false;ConnectionID=1429085906906648832, SessionID=1429085906981010432;_RequestID=a8911f36-6814-472b-9d49-a7bac8f6b2d8;|ENTRY com.sun.messaging.jms.ra.ConnectionAdapter@171e8ba BrokerAddress=localhost:7676(35424), ConnectionID=1429085906906648832, ReconnectEnabled: false, IsConnectedToHABroker: false ConnectionID=1429085906906648832, SessionID=1429085906981010432|#]
    .............

  • Broker not delivering messages

    Hi,
    I have a system which has been working fine for a year and is now causing some issues. It is running OpenMQ 4.2 with Java 1.6 (1.6.0_11-b03) on Solaris (SunOS 5.10 Generic_138888-07 sun4v sparc SUNW,Sun-Blade-T6340). No changes have been made to the configuration or the system recently.
    The issue is:
    1- A producer sends a bunch of messages (around 100) in a queue
    2- A consumer listening to the same queue picks up say 96 of the messages and leaves 4 of them in the queue (4 random messages, not in sequence or first or last)
    When I try to read these messages left on the queue using a separate script (different JVM than main software) which just connects to the queue and dumps its content on the screen, the call to consumer.receive() does not return any message. Yet listing the queue content (with "imqcmd list") actually shows the 4 messages in the queue and the consumer attached to it :/
    When I restart the broker then the 4 messages are delivered correctly and processed by the application.
    The broker log (set to default INFO) doesn't show any error or unusual trace, my application logs either.
    This problem happened the first time after the broker had been running for 3 months in a row so we though it would probably not happen again if we restart it every month. Yet it now happened again after only 20 days since the last restart of the broker.
    Another side problem: when I tried to dump the JVM content using "kill -3" I could not find it in the broker log (set using -Dimq.log.file.filename=broker.log on the command line starting the broker), any idea of how I should proceed?
    Thank you very much for any help you could provide
    Mickael

    I agree with TravelEntity.
    The issue is:
    1- The producer (only one) sends a bunch of messages (around 100) in a queue
    2- The consumer (only one) listening to the same queue picks up say 96 of the messages and leaves 4 of them in the queue (4 random messages, not in sequence or first or last)The basic behaviour here is that the moment this consumer is created (and the connection started) the broker will send all 100 messages to the consumer (assuming you're not using a message selector), where they will be cached in the client until they are delivered to the client application. Whilst they remain in the client they will be unavailable to other consumers. When the first consumer closes, any unconsumed messages will be returned to the broker and become available for delivery to other consumers. The number of messages that are "pre-fetched" to a consumer is defined by the consumerFlowLimit of the connection or destination (see MQ admin guide for details). The default is 1000.
    So this appears to explain why when you created a second consumer, it didn't receive any messages despite there being four messages left on the queue.
    However I don't understand what you mean by "leave 4 random messages in the queue". How were you doing that? Messages are consumed from the queue in order - unless you use a message selector.
    3- The producer sends another bunch of messages in the same queue
    4- The consumer picks up say 98 of the messages and leaves 2 of them in the queue
    5- mqlist then shows 6 messages in the queue, consumer.receive() returns null if tried from the main client or from a separate queue dump tool What is mqlist? It's not a MQ tool.
    You can use the MQ command imqcmd to report on how many messages are being cached on the client in this way: in the following sample of its usage, "Count" is the total number of messages on the queue, and "UnAck" tells you how many of those messages are being cached on the client.
    C:\mq\bin>imqcmd list dst 
       Name     Type    State      Producers        Consumers                  Msgs
                                Total  Wildcard  Total  Wildcard  Count  Remote  UnAck  Avg Size
    INPUT.Q     Queue  RUNNING  0      -         1      -         9268   0       4709   1237.2805
    mq.sys.dmq  Queue  RUNNING  0      -         0      -         0      0       0      0.0

  • Broker does not reconnect after db restart

    Hi,
    we have a enhanced cluster with two brokers running on solaris 10. the ha store is a oracle 10 db. after a db downtime of 10 minutes the cluster could not reconnect to the ha store. we have in the broker logs the following SQLExceptions. it was impossible to use any imqcmd. we had to terminate the two brokers. after starting them everything was running fine, no more exceptions. why do the brokers not reconnect after a db downtime?
    regards
    ricky
    com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4062]: Error storing information associated with Transaction 691059032992373504 : data may be lost if the
    broker exits before the transaction completed
    at com.sun.messaging.jmq.jmsserver.data.TransactionList.addTransactionID(TransactionList.java:414)
    at com.sun.messaging.jmq.jmsserver.data.TransactionList.addTransactionID(TransactionList.java:368)
    at com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doStart(TransactionHandler.java:1986)
    at com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.handle(TransactionHandler.java:520)
    at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489)
    at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644)
    at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
    at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4019]: Failed to persist transaction 691059032992373504
    at com.sun.messaging.jmq.jmsserver.persist.jdbc.TransactionDAOImpl.insert(TransactionDAOImpl.java:418)
    at com.sun.messaging.jmq.jmsserver.persist.jdbc.TransactionDAOImpl.insert(TransactionDAOImpl.java:329)
    at com.sun.messaging.jmq.jmsserver.persist.jdbc.JDBCStore.storeTransaction(JDBCStore.java:1423)
    at com.sun.messaging.jmq.jmsserver.data.TransactionList.addTransactionID(TransactionList.java:411)
    ... 9 more
    Caused by: java.sql.SQLException: [INSERT INTO MQTXN41Cavai1mq01 ( ID, TYPE, STATE, AUTO_ROLLBACK, XID, TXN_STATE, TXN_HOME_BROKER, TXN_BROKERS, STORE_SESSION_ID,
    EXPIRED_TS, ACCESSED_TS) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )]: Closed Connection
    at com.sun.messaging.jmq.jmsserver.persist.jdbc.DBManager.wrapSQLException(DBManager.java:863)
    at com.sun.messaging.jmq.jmsserver.persist.jdbc.TransactionDAOImpl.insert(TransactionDAOImpl.java:413)
    ... 12 more

    Hi Tom,
    near the end of the pasted exception it says: Closed Connection.
    i think this is the cause of the failure. this is expected because the oracle data store is down. The problem is, that after the db was back online. the broker continued to throw the same exception. i expect, that the broker throws away the closed connections and reopens new ones to continue his work.
    regards
    ricky

  • Adf Logging

    hi experts,
    Using jdev11.1.1..50-adfbc.
    i go through duncan's blog for logging.
    i tried those as he said. but this npe keep on throwing. while hitting search button. i restart entire system / jdev.. i dont know what's going on.
    http://img716.imageshack.us/img716/5412/48693347.png
    i mess'd up any other steps.

    john,
    this waht only i captured in snap.
    Performing action null[ from oracle.adf.logging.dt.analyzer.ui.LogAnalyzerView ]
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.QueryCriteriaPanel.getEndTime(QueryCriteriaPanel.java:548)
      o.adf.logging.dt.analyzer.ui.QueryCriteriaPanel.getSearchCriteria(QueryCriteriaPanel.java:454)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getEndTime(ADFRequestQueryCriteriaPanel.java:351)
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getSearchCriteria(ADFRequestQueryCriteriaPanel.java:275)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getEndTime(ADFRequestQueryCriteriaPanel.java:351)
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getSearchCriteria(ADFRequestQueryCriteriaPanel.java:275)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getEndTime(ADFRequestQueryCriteriaPanel.java:351)
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getSearchCriteria(ADFRequestQueryCriteriaPanel.java:275)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getEndTime(ADFRequestQueryCriteriaPanel.java:351)
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getSearchCriteria(ADFRequestQueryCriteriaPanel.java:275)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Exception while performing action null
    java.lang.NullPointerException
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getEndTime(ADFRequestQueryCriteriaPanel.java:351)
      o.adf.logging.dt.analyzer.ui.ADFRequestQueryCriteriaPanel.getSearchCriteria(ADFRequestQueryCriteriaPanel.java:275)
      o.adf.logging.dt.analyzer.ui.QueryPanel.getSearchCriteria(QueryPanel.java:175)
      o.adf.logging.dt.analyzer.ui.QueryPanel.handleEvent(QueryPanel.java:151)
      o.i.controller.IdeAction.performAction(IdeAction.java:529)
      o.i.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
      o.i.controller.IdeAction.actionPerformed(IdeAction.java:501)
      jx.s.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      jx.s.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      jx.s.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      jx.s.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      jx.s.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      j.a.Component.processMouseEvent(Component.java:6289)
      jx.s.JComponent.processMouseEvent(JComponent.java:3267)
      j.a.Component.processEvent(Component.java:6054)
      j.a.Container.processEvent(Container.java:2041)
      j.a.Component.dispatchEventImpl(Component.java:4652)
      j.a.Container.dispatchEventImpl(Container.java:2099)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      j.a.LightweightDispatcher.processMouseEvent(Container.java:4238)
      j.a.LightweightDispatcher.dispatchEvent(Container.java:4168)
      j.a.Container.dispatchEventImpl(Container.java:2085)
      j.a.Window.dispatchEventImpl(Window.java:2478)
      j.a.Component.dispatchEvent(Component.java:4482)
      j.a.EventQueue.dispatchEventImpl(EventQueue.java:644)
      j.a.EventQueue.access$000(EventQueue.java:85)
      j.a.EventQueue$1.run(EventQueue.java:603)
      j.a.EventQueue$1.run(EventQueue.java:601)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      j.a.EventQueue$2.run(EventQueue.java:617)
      j.a.EventQueue$2.run(EventQueue.java:615)
      j.security.AccessController.doPrivileged(Native Method)
      j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      j.a.EventQueue.dispatchEvent(EventQueue.java:614)
      j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      j.a.EventDispatchThread.run(EventDispatchThread.java:122)i choose sendfeedback while hitting next time means
    Failed to log feedback because of exception: oracle.ideimpl.feedback2.client.FeedbackException: Exception creating LegacyFeedbackWriterFCPAUTO: Already logged bug [NPE in o.adf.logging.dt.analyzer.ui.QueryCriteriaPanel:548]this waht thrown.
    sorry for editing in late.
    Edited by: ADF7 on Mar 23, 2012 12:07 AM

  • Very high cpu utilization with mq broker

    Hi all,
    I see a very high cpu utilization (400% on 8 cpu server) when I connect consumers to OpenQ. It increase close to 100% for every consumer I add. Slowly, the consumer comes to a halt, as the producers are sending messages at a good rate too.
    Environment Setup
    Glassfish version 2.1
    com.sun.messaging.jmq Version Information Product Compatibility Version: 4.3 Protocol Version: 4.3 Target JMS API Version: 1.1
    Cluster set up using persistent storage. snippet from broker log.
    Java Runtime: 1.6.0_14 Sun Microsystems Inc. /home/user/foundation/jdk-1.6/jre [06/Apr/2011:12:48:44 EDT] IMQ_HOME=/home/user/foundation/sges/imq [06/Apr/2011:12:48:44 EDT] IMQ_VARHOME=/home/user/foundation/installation/node-agent-server1/server1/imq [06/Apr/2011:12:48:44 EDT] Linux 2.6.18-164.10.1.el5xen i386 server1 (8 cpu) user [06/Apr/2011:12:48:44 EDT] Java Heap Size: max=394432k, current=193920k [06/Apr/2011:12:48:44 EDT] Arguments: -javahome /home/user/foundation/jdk-1.6 -Dimq.autocreate.queue=false -Dimq.autocreate.topic=false -Dimq.cluster.masterbroker=mq://server1:37676/ -Dimq.cluster.brokerlist=mq://server1:37676/,mq://server2:37676/ -Dimq.cluster.nowaitForMasterBroker=true -varhome /home/user/foundation/installation/node-agent-server1/server1/imq -startRmiRegistry -rmiRegistryPort 37776 -Dimq.imqcmd.user=admin -passfile /tmp/asmq5711749746025968663.tmp -save -name clusterservercom -port 37676 -bgnd -silent [06/Apr/2011:12:48:44 EDT] [B1004]: Starting the portmapper service using tcp [ 37676, 50, * ] with min threads 1 and max threads of 1 [06/Apr/2011:12:48:45 EDT] [B1060]: Loading persistent data...
    I followed step in http://middlewaremagic.com/weblogic/?p=4884 to narrow it down to Threads that was causing high cpu. Both were around 94%.
    Following is the stack for those threads.
    "Thread-jms[224]" prio=10 tid=0xd635f400 nid=0x5665 runnable [0xd18fe000] java.lang.Thread.State: RUNNABLE at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xf3d35730> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    "Thread-jms[214]" prio=10 tid=0xd56c8000 nid=0x566c waiting for monitor entry [0xd2838000] java.lang.Thread.State: BLOCKED (on object monitor) at com.sun.messaging.jmq.jmsserver.data.TransactionInformation.isConsumedMessage(TransactionList.java:2544) - locked <0xdbeeb538> (a com.sun.messaging.jmq.jmsserver.data.TransactionInformation) at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xe4c9abf0> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    "Thread-jms[213]" prio=10 tid=0xd65be800 nid=0x5670 runnable [0xd1a28000] java.lang.Thread.State: RUNNABLE at com.sun.messaging.jmq.jmsserver.data.TransactionList.isConsumedInTransaction(TransactionList.java:697) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:918) - locked <0xe4c4bad8> (a java.util.Collections$SynchronizedMap) at com.sun.messaging.jmq.jmsserver.core.Session.detatchConsumer(Session.java:810) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.destroyConsumer(ConsumerHandler.java:577) at com.sun.messaging.jmq.jmsserver.data.handlers.ConsumerHandler.handle(ConsumerHandler.java:422) at com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:181) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1489) at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:644) at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170) at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493) at java.lang.Thread.run(Thread.java:619) Locked ownable synchronizers: - None
    Any ideas will be appreciated.
    --

    Thanks ak, for the response.
    Yes, the messages are consumed in transactions. I set imq.txn.reapLimit=200 in Start Arguments in jvm configuration.
    I verified that it is being set in the log.txt file for the broker:
    -Dimq.autocreate.queue=false -Dimq.autocreate.topic=false -Dimq.txn.reapLimit=250
    It did not make any difference. Do I need to set this property somewhere else ?
    As far as upgrading MQ is concerned, I am using glassfish 2.1. And I think MQ 4.3 is packaged with it. Can you suggest a safe way to upgrade to OpenMQ 4.5 in a running environment. I can bring down the cluster temporarily. Can I just change the jar file somwhere to use MQ4.5 ?
    Here is the snippet of the consumer code :
    I create Connection in @postConstruct and close it in @preDestroy, so that I don't have to do it everytime.
    private ResultMessage[] doRetrieve(String username, String password, String jndiDestination, String filter, int maxMessages, long timeout, RetrieveType type)
    throws InvalidCredentialsException, InvalidFilterException, ConsumerException {
    // Resources
    Session session = null;
    try {
    if (log.isTraceEnabled()) log.trace("Creating transacted session with JMS broker.");
    session = connection.createSession(true, Session.SESSION_TRANSACTED);
    // Locate bound destination and create consumer
    if (log.isTraceEnabled()) log.trace("Searching for named destination: " + jndiDestination);
    Destination destination = (Destination) ic.lookup(jndiDestination);
    if (log.isTraceEnabled()) log.trace("Creating consumer for named destination " + jndiDestination);
    MessageConsumer consumer = (filter == null || filter.trim().length() == 0) ? session.createConsumer(destination) : session.createConsumer(destination, filter);
    if (log.isTraceEnabled()) log.trace("Starting JMS connection.");
    connection.start();
    // Consume messages
    if (log.isDebugEnabled()) log.trace("Creating retrieval containers.");
    List<ResultMessage> processedMessages = new ArrayList<ResultMessage>(maxMessages);
    BytesMessage jmsMessage = null;
    for (int i = 0 ; i < maxMessages ; i++) {
    // Attempt message retrieve
    if (log.isTraceEnabled()) log.trace("Attempting retrieval: " + i);
    switch (type) {
    case BLOCKING :
    jmsMessage = (BytesMessage) consumer.receive();
    break;
    case IMMEDIATE :
    jmsMessage = (BytesMessage) consumer.receiveNoWait();
    break;
    case TIMED :
    jmsMessage = (BytesMessage) consumer.receive(timeout);
    break;
    // Process retrieved message
    if (jmsMessage != null) {
    if (log.isTraceEnabled()) log.trace("Message retrieved\n" + jmsMessage);
    // Extract message
    if (log.isTraceEnabled()) log.trace("Extracting result message container from JMS message.");
    byte[] extracted = new byte[(int) jmsMessage.getBodyLength()];
    jmsMessage.readBytes(extracted);
    // Decompress message
    if (jmsMessage.propertyExists(COMPRESSED_HEADER) && jmsMessage.getBooleanProperty(COMPRESSED_HEADER)) {
    if (log.isTraceEnabled()) log.trace("Decompressing message.");
    extracted = decompress(extracted);
    // Done processing message
    if (log.isTraceEnabled()) log.trace("Message added to retrieval container.");
    String signature = jmsMessage.getStringProperty(DIGITAL_SIGNATURE);
    processedMessages.add(new ResultMessage(extracted, signature));
    } else
    if (log.isTraceEnabled()) log.trace("No message was available.");
    // Package return container
    if (log.isTraceEnabled()) log.trace("Packing retrieved messages to return.");
    ResultMessage[] collectorMessages = new ResultMessage[processedMessages.size()];
    for (int i = 0 ; i < collectorMessages.length ; i++)
    collectorMessages[i] = processedMessages.get(i);
    if (log.isTraceEnabled()) log.trace("Returning " + collectorMessages.length + " messages.");
    return collectorMessages;
    } catch (NamingException ex) {
    sessionContext.setRollbackOnly();
    log.error("Unable to locate named queue: " + jndiDestination, ex);
    throw new ConsumerException("Unable to locate named queue: " + jndiDestination, ex);
    } catch (InvalidSelectorException ex) {
    sessionContext.setRollbackOnly();
    log.error("Invalid filter: " + filter, ex);
    throw new InvalidFilterException("Invalid filter: " + filter, ex);
    } catch (IOException ex) {
    sessionContext.setRollbackOnly();
    log.error("Message decompression failed.", ex);
    throw new ConsumerException("Message decompression failed.", ex);
    } catch (GeneralSecurityException ex) {
    sessionContext.setRollbackOnly();
    log.error("Message decryption failed.", ex);
    throw new ConsumerException("Message decryption failed.", ex);
    } catch (JMSException ex) {
    sessionContext.setRollbackOnly();
    log.error("Unable to consumer messages.", ex);
    throw new ConsumerException("Unable to consume messages.", ex);
    } catch (Throwable ex) {
    sessionContext.setRollbackOnly();
    log.error("Unexpected error.", ex);
    throw new ConsumerException("Unexpected error.", ex);
    } finally {
    try {
    if (session != null) session.close();
    } catch (JMSException ex) {
    log.error("Unexpected error.", ex);
    Thanks for your help.
    Edited by: vineet on Apr 7, 2011 10:06 AM

Maybe you are looking for

  • Calling ringtones from the application

    Hi guys. I am searching about to getting ring tones of iPhone for application. In other words, user can choose ringtone from iPhone Ringtone list. In order to do that, what do I need to use what class ? Do you have an example related this issue ? Ple

  • DIR through CV01n -not visible in easy DMS

    Dear all, 1)I have created DIR through CV01n . But its not visible in public/private folder in the easy DMS. but when i do search the same DIR,  it is visible in search folder.when i am trying to move same DIR to public folder or any folder system ha

  • Using MDT boot image in SCCM 2012

    Hi, I want to import MDT boot image in SCCM 2012. Please let me know if this is possible. I have integrated all the driver in it and want to use from SCCM. Any suggestion on this? Regards, Shishir Kushawaha "If this thread answered your question, ple

  • Card info on file, but won't let me purchase in app crystals for game.

    So I have already purchased something from the market and cc is on file but when I play this game heros of chaos and try to by crystals it confirms password sakes me if I'm sure I click yes but purchase won't go through, any thoughts?

  • Oracle Communicator installer exit with error 1904

    When i launch the Oracle communicator setup to install on Windows, i obtain the message in a popup window : "Error 1904. Module C:\Program Files\Oracle\Oracle Communicator\GIPSTron.dll failed to register. HRESULT -2147024770." If i choose to ignore t