directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRSEDA-20) NPE is thrown when ProtocolEvent is not passed fast enough
Date Fri, 05 Nov 2004 03:29:33 GMT
     [ http://nagoya.apache.org/jira/browse/DIRSEDA-20?page=history ]
     
Trustin Lee closed DIRSEDA-20:
------------------------------

    Resolution: Fixed

I added ProtocolProvider property to InetServiceEntry, so ProtocolProvider is accessible via
InetServiceDatabase which is accessible from all XXXManagers.

> NPE is thrown when ProtocolEvent is not passed fast enough
> ----------------------------------------------------------
>
>          Key: DIRSEDA-20
>          URL: http://nagoya.apache.org/jira/browse/DIRSEDA-20
>      Project: Seda Framework
>         Type: Bug
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee

>
> Current test case occationally throws NPE:
> java.lang.reflect.InvocationTargetException
> 	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:585)
> 	at org.apache.seda.event.AbstractSubscriber.inform(AbstractSubscriber.java:116)
> 	at org.apache.seda.decoder.DefaultDecoderManager.inform(DefaultDecoderManager.java:102)
> 	at org.apache.seda.event.DefaultEventRouter.publish(DefaultEventRouter.java:229)
> 	at org.apache.seda.event.DefaultEventRouter.publish(DefaultEventRouter.java:184)
> 	at org.apache.seda.listener.TCPListenerManager.run(TCPListenerManager.java:357)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> 	at org.apache.seda.decoder.DefaultDecoderManager.createDecoder(DefaultDecoderManager.java:164)
> 	at org.apache.seda.decoder.DefaultDecoderManager.inform(DefaultDecoderManager.java:181)
> 	... 10 more
> java.lang.reflect.InvocationTargetException
> 	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:585)
> 	at org.apache.seda.event.AbstractSubscriber.inform(AbstractSubscriber.java:116)
> 	at org.apache.seda.encoder.DefaultEncoderManager.inform(DefaultEncoderManager.java:89)
> 	at org.apache.seda.event.DefaultEventRouter.publish(DefaultEventRouter.java:229)
> 	at org.apache.seda.event.DefaultEventRouter.publish(DefaultEventRouter.java:184)
> 	at org.apache.seda.listener.TCPListenerManager.run(TCPListenerManager.java:357)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> 	at org.apache.seda.encoder.DefaultEncoderManager.createEncoder(DefaultEncoderManager.java:139)
> 	at org.apache.seda.encoder.DefaultEncoderManager.inform(DefaultEncoderManager.java:156)
> 	... 10 more
> It seems that NPE thrown when AddProtoclEvent is not passed soon enough.  Do we need
any synchronization method here?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message