YaCy-Bugtracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000693YaCy[All Projects] Generalpublic2016-10-02 22:182016-10-05 14:58
Reporterkroo 
Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
StatusnewResolutionopen 
ETAnone 
PlatformLinuxOSDebianOS Version8
Product Version 
Target VersionFixed in Version 
Summary0000693: NullPointerException
DescriptionW 2016/09/24 22:23:11 ConcurrentLog java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
    at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
Caused by: java.lang.NullPointerException
    at net.yacy.peers.Dispatcher.enqueueContainersToBuffer(Dispatcher.java:291)
    at net.yacy.peers.Dispatcher.selectContainersEnqueueToBuffer(Dispatcher.java:323)
    at net.yacy.search.Switchboard.dhtTransferJob(Switchboard.java:3658)
    ... 5 more
W 2016/09/24 22:23:11 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
    at net.yacy.peers.Dispatcher.enqueueContainersToBuffer(Dispatcher.java:291)
    at net.yacy.peers.Dispatcher.selectContainersEnqueueToBuffer(Dispatcher.java:323)
    at net.yacy.search.Switchboard.dhtTransferJob(Switchboard.java:3658)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
    at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
W 2016/09/24 22:23:11 ConcurrentLog java.lang.NullPointerException
java.lang.NullPointerException
    at net.yacy.peers.Dispatcher.enqueueContainersToBuffer(Dispatcher.java:291)
    at net.yacy.peers.Dispatcher.selectContainersEnqueueToBuffer(Dispatcher.java:323)
    at net.yacy.search.Switchboard.dhtTransferJob(Switchboard.java:3658)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
    at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
E 2016/09/24 22:23:11 BUSYTHREAD Runtime Error in serverInstantThread.job, thread 'BusyThread net.yacy.search.Switchboard.dhtTransferJob': null; target exception: null
java.lang.NullPointerException
    at net.yacy.peers.Dispatcher.enqueueContainersToBuffer(Dispatcher.java:291)
    at net.yacy.peers.Dispatcher.selectContainersEnqueueToBuffer(Dispatcher.java:323)
    at net.yacy.search.Switchboard.dhtTransferJob(Switchboard.java:3658)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.yacy.kelondro.workflow.InstantBusyThread.job(InstantBusyThread.java:105)
    at net.yacy.kelondro.workflow.AbstractBusyThread.run(AbstractBusyThread.java:215)
Steps To ReproduceNo idea, just found it in the logs and from earlier experience with java developers wanted to know about NPE;s
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001324)
luc (reporter)
2016-10-05 14:58

This is a concurrency issue that may occur when switching network or shutting down your peer.
A way to reproduce the error for sure :
 - run YaCy in debug mode from your favourite IDE
 - set a breakpoint in net.yacy.peers.Dispatcher at line 281 (https://github.com/yacy/yacy_search_server/blob/Release_1.90/source/net/yacy/peers/Dispatcher.java#L281 [^])
 - wait for a Thread (dhtTransferJob) to stop at the breakpoint
 - while the thread is blocked, launch switch network or shutdown YaCy from the web UI : this will execute Dispatcher.close() method and will set transmissionBuffer to null
 - Resume execution from the blocked Thread : you should see the NullPointerException stack trace in your console and logs

- Issue History
Date Modified Username Field Change
2016-10-02 22:18 kroo New Issue
2016-10-05 14:58 luc Note Added: 0001324


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker