logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[jira] Resolved: (AMQ-689) Endpoint failed to process message: NullPointerE: msg#00176

java.activemq.devel

Subject: [jira] Resolved: (AMQ-689) Endpoint failed to process message: NullPointerException

[ https://issues.apache.org/activemq/browse/AMQ-689?page=all ]

james strachan resolved AMQ-689:
--------------------------------

Fix Version: 4.1
Resolution: Fixed

thanks for spotting this one

> Endpoint failed to process message: NullPointerException
> --------------------------------------------------------
>
> Key: AMQ-689
> URL: https://issues.apache.org/activemq/browse/AMQ-689
> Project: ActiveMQ
> Type: Bug

> Versions: 4.0 RC2
> Environment: Windows XP SP2, Eclipse, Tomcat 5.5.15, Spring 1.2.6, Hibernate
> 3.1.2, Jencks 1.1.3, ActiveMQ 4.0 RC2 and SNAPSHOT (Apr 6th 2006)
> Reporter: Rodrigo S. de Castro
> Fix For: 4.1

>
>
> I have redelivery configured, but when it fails in all attempts (through a
> RuntimeException), I get the following message:
> 11:00:54,775 DEBUG [ServerSessionImpl:0] Endpoint failed to process message.
> java.lang.NullPointerException
> at
> org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:218)
> at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:723)
> at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:163)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
> 11:00:54,775 INFO [ServerSessionImpl:0] Endpoint failed to process message.
> Reason: java.lang.NullPointerException
> 11:00:54,775 DEBUG [ServerSessionImpl:0] run loop end
> 11:00:54,775 DEBUG [ServerSessionImpl:0] Endpoint did not release properly:
> org.apache.activemq.ra.InvalidMessageEndpointException
> org.apache.activemq.ra.InvalidMessageEndpointException
> at
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointDead.release(MessageEndpointProxy.java:156)
> at
> org.apache.activemq.ra.MessageEndpointProxy.release(MessageEndpointProxy.java:68)
> at
> org.apache.activemq.ra.ServerSessionImpl.close(ServerSessionImpl.java:250)
> at
> org.apache.activemq.ra.ServerSessionPoolImpl.removeFromPool(ServerSessionPoolImpl.java:180)
> at
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:177)
> at
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
> at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
> 11:00:54,775 DEBUG [ServerSessionImpl:0] Run finished
> 11:00:54,775 DEBUG [ServerSessionImpl:0] Work completed:
> javax.resource.spi.work.WorkEvent[source=Work :ServerSessionImpl:0]
> 11:00:54,790 DEBUG [ServerSessionPoolImpl] ServerSession requested.
> The code that throws this NPE is ServerSessionImpl, whose excerpt I send
> below. There are more reports of this
> try {
> endpoint.afterDelivery();
> } catch (Throwable e) {
> throw new RuntimeException("Endpoint after delivery
> notification failure", e);
> } finally {
> if( session.getTransactionContext().isInLocalTransaction() )
> { <<<<--------------------------- NPE
> if( !useRAManagedTx ) {
> // Sanitiy Check: If the local transaction has not
> been commited..
> // Commit it now.
> log.warn("Local transaction had not been commited.
> Commiting now.");
> }
> try {
> session.commit();
> } catch (JMSException e) {
> log.info("Commit failed:", e);
> }
> }
> }

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation