Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005468 [Resin] minor always 06-19-13 16:20 07-31-13 15:12
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 7.0.0 Product Version
  Product Build
Summary 0005468: Resin 7 adding @Inject MakaiStore store causes NPE, removing it makes it go away...
Description Sample TODO app fails when I have @Inject Store


@Service("/taskService")
@Export
//@Journal
@Singleton
@Startup
public class TaskService {

    @Inject
    MakaiStore store;


    TaskManager manager = new TaskManager();
    OwnerRepo repo = new OwnerRepo();
    Group group = new Group(repo, "shared");
    boolean replay;
    boolean starting;

    public String addTask(String taskName) {
        if (replay) {
            System.out.println("IN REPLAY MODE during addTask");
        }
        Task task = new Task(taskName);
        manager.addTask(group, task);
        return task.id();
    }
...

If I comment out

2013-06-19 15:30:43,438] WARNING AbstractHttpRequest: io.makai.core.MakaiExecutionException: java.lang.NullPointerException
io.makai.core.MakaiExecutionException: java.lang.NullPointerException
  at com.caucho.ramp.message.QueryRefFuture.get(QueryRefFuture.java:87)
  at com.caucho.ramp.message.AbstractQueryFutureMessage.offerAndGet(AbstractQueryFutureMessage.java:73)
  at com.caucho.kraken.entries.StoreService__MakaiProxy.localLoad(Unknown Source)
  at com.caucho.kraken.entries.StoreEntryImpl.load(StoreEntryImpl.java:337)
  at com.caucho.kraken.cache.CacheImpl.getExtCacheEntry(CacheImpl.java:408)
  at com.caucho.server.session.SessionManager.createSession(SessionManager.java:1370)
  at com.caucho.server.http.AbstractCauchoRequest.createSession(AbstractCauchoRequest.java:688)
  at com.caucho.server.http.AbstractCauchoRequest.getSession(AbstractCauchoRequest.java:630)
  at com.caucho.server.http.AbstractCauchoRequest.finishRequest(AbstractCauchoRequest.java:1042)
  at com.caucho.server.http.HttpServletRequestImpl.finishRequest(HttpServletRequestImpl.java:1740)
  at com.caucho.server.http.AbstractHttpRequest.finishRequest(AbstractHttpRequest.java:1854)
  at com.caucho.server.http.HttpRequest.finishRequest(HttpRequest.java:1487)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:868)
  at com.caucho.network.listen.TcpConnection.dispatchRequest(TcpConnection.java:1352)
  at com.caucho.network.listen.TcpConnection.handleRequest(TcpConnection.java:1305)
  at com.caucho.network.listen.TcpConnection.handleRequestsImpl(TcpConnection.java:1287)
  at com.caucho.network.listen.TcpConnection.handleRequests(TcpConnection.java:1207)
  at com.caucho.network.listen.TcpConnection.handleAcceptTaskImpl(TcpConnection.java:1006)
  at com.caucho.network.listen.TcpConnection.handleAcceptTask(TcpConnection.java:959)
  at com.caucho.network.listen.ConnectionState$16.run(ConnectionState.java:562)
  at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:91)
  at com.caucho.env.actor.SpawnTaskQueue$SpawnWorker.run(SpawnTaskQueue.java:93)
  at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:217)
  at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:158)
Thrown by:
java.lang.NullPointerException
  at com.caucho.mauka.MaukaDatabase.getTree(MaukaDatabase.java:224)
  at com.caucho.mauka.MaukaDatabase.get(MaukaDatabase.java:210)
  at com.caucho.kraken.mauka.MaukaLocalBacking.get(MaukaLocalBacking.java:127)
  at com.caucho.kraken.entries.LocalStoreEntryImpl.loadImpl(LocalStoreEntryImpl.java:243)
  at com.caucho.kraken.entries.StoreActor.localLoad(StoreActor.java:53)
  at com.caucho.ramp.proxy.SkeletonMethodAmpCompletion_N.query(SkeletonMethodAmpCompletion_N.java:179)
  at com.caucho.ramp.message.QueryFutureMessage_N.invokeQuery(QueryFutureMessage_N.java:59)
  at com.caucho.ramp.mailbox.QueryItem.invoke(QueryItem.java:254)
  at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:438)
  at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:402)
  at com.caucho.env.actor.RingActorQueue.deliver(RingActorQueue.java:286)
  at com.caucho.env.actor.RingActorQueueResizing.deliver(RingActorQueueResizing.java:217)
  at com.caucho.env.actor.ActorWorkerSingleThread.runImpl(ActorWorkerSingleThread.java:87)
  at com.caucho.env.actor.ActorWorkerAdapter.runTask(ActorWorkerAdapter.java:84)
  at com.caucho.env.actor.ActorWorkerAdapter.run(ActorWorkerAdapter.java:160)
  at com.caucho.env.thread2.ThrottleExecutor$SpinTask.run(ThrottleExecutor.java:183)
... 2 more

[2013-06-19 15:30:43,518] WARNING AbstractHttpRequest: io.makai.core.MakaiExecutionException: java.lang.NullPointerException
io.makai.core.MakaiExecutionException: java.lang.NullPointerException
  at com.caucho.ramp.message.QueryRefFuture.get(QueryRefFuture.java:87)
  at com.caucho.ramp.message.AbstractQueryFutureMessage.offerAndGet(AbstractQueryFutureMessage.java:73)
  at com.caucho.kraken.entries.StoreService__MakaiProxy.localLoad(Unknown Source)
  at com.caucho.kraken.entries.StoreEntryImpl.load(StoreEntryImpl.java:337)
  at com.caucho.kraken.cache.CacheImpl.getExtCacheEntry(CacheImpl.java:408)
  at com.caucho.server.session.SessionManager.createSession(SessionManager.java:1370)
  at com.caucho.server.http.AbstractCauchoRequest.createSession(AbstractCauchoRequest.java:688)
  at com.caucho.server.http.AbstractCauchoRequest.getSession(AbstractCauchoRequest.java:630)
  at com.caucho.server.http.AbstractCauchoRequest.finishRequest(AbstractCauchoRequest.java:1042)
  at com.caucho.server.http.HttpServletRequestImpl.finishRequest(HttpServletRequestImpl.java:1740)
  at com.caucho.server.http.AbstractHttpRequest.finishRequest(AbstractHttpRequest.java:1854)
  at com.caucho.server.http.HttpRequest.finishRequest(HttpRequest.java:1487)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:868)
  at com.caucho.network.listen.TcpConnection.dispatchRequest(TcpConnection.java:1352)
  at com.caucho.network.listen.TcpConnection.handleRequest(TcpConnection.java:1305)
  at com.caucho.network.listen.TcpConnection.handleRequestsImpl(TcpConnection.java:1287)
  at com.caucho.network.listen.TcpConnection.handleRequests(TcpConnection.java:1207)
  at com.caucho.network.listen.TcpConnection.handleKeepaliveTask(TcpConnection.java:1053)
  at com.caucho.network.listen.ConnectionState$6.run(ConnectionState.java:221)
  at com.caucho.network.listen.ConnectionTask.run(ConnectionTask.java:91)
  at com.caucho.env.actor.SpawnTaskQueue$SpawnWorker.run(SpawnTaskQueue.java:93)
  at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:217)
  at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:158)
Thrown by:
java.lang.NullPointerException
  at com.caucho.mauka.MaukaDatabase.getTree(MaukaDatabase.java:224)
  at com.caucho.mauka.MaukaDatabase.get(MaukaDatabase.java:210)
  at com.caucho.kraken.mauka.MaukaLocalBacking.get(MaukaLocalBacking.java:127)
  at com.caucho.kraken.entries.LocalStoreEntryImpl.loadImpl(LocalStoreEntryImpl.java:243)
  at com.caucho.kraken.entries.StoreActor.localLoad(StoreActor.java:53)
  at com.caucho.ramp.proxy.SkeletonMethodAmpCompletion_N.query(SkeletonMethodAmpCompletion_N.java:179)
  at com.caucho.ramp.message.QueryFutureMessage_N.invokeQuery(QueryFutureMessage_N.java:59)
  at com.caucho.ramp.mailbox.QueryItem.invoke(QueryItem.java:254)
  at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:438)
  at com.caucho.ramp.mailbox.QueueMailbox$MessageConsumer.deliver(QueueMailbox.java:402)
  at com.caucho.env.actor.RingActorQueue.deliver(RingActorQueue.java:286)
  at com.caucho.env.actor.RingActorQueueResizing.deliver(RingActorQueueResizing.java:217)
  at com.caucho.env.actor.ActorWorkerSingleThread.runImpl(ActorWorkerSingleThread.java:87)
  at com.caucho.env.actor.ActorWorkerAdapter.runTask(ActorWorkerAdapter.java:84)
  at com.caucho.env.actor.ActorWorkerAdapter.run(ActorWorkerAdapter.java:160)
  at com.caucho.env.thread2.ThrottleExecutor$SpinTask.run(ThrottleExecutor.java:183)
... 2 more
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0006299)
ferg
07-31-13 15:12

server/7054
 

- Issue History
Date Modified Username Field Change
06-19-13 16:20 rickHigh New Issue
07-31-13 15:12 ferg Note Added: 0006299
07-31-13 15:12 ferg Assigned To  => ferg
07-31-13 15:12 ferg Status new => closed
07-31-13 15:12 ferg Resolution open => fixed
07-31-13 15:12 ferg Fixed in Version  => 7.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker