Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003986 [Resin] minor always 04-08-10 05:32 02-08-11 09:30
Reporter mros2stf View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.14 Product Version 4.0.6
  Product Build
Summary 0003986: Attach handler null pointer exception when stopping Resin 4.0.6
Description Whenever I stop Resin, I receive the following error message. With or without SSL.

Resin Professional 4.0.6 (built Tue, 06 Apr 2010 11:43:19 PDT)
Copyright(c) 1998-2010 Caucho Technology. All rights reserved.

  1010835.license -- 2 Resin servers Intercontinental Hotel Groups (IHG)

Starting Resin Professional on Thu, 08 Apr 2010 07:45:59 -0400 (EDT)

OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005
Exception in thread "Attach handler" java.lang.NullPointerException
        at java.io.File.<init>(File.java:262)
        at com.ibm.tools.attach.javaSE.IPC.getTargetDirectoryPath(IPC.java:627)
        at com.ibm.tools.attach.javaSE.IPC.getNotificationSyncFile(IPC.java:511)
        at com.ibm.tools.attach.javaSE.AttachHandler.waitForNotification(AttachHandler.java:232)
        at com.ibm.tools.attach.javaSE.AttachHandler.run(AttachHandler.java:163)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004527)
mros2stf
04-12-10 11:51

I believe the issue is that watch-dog manager is not creating his log file watchdog-manager.log.
 
(0004533)
mros2stf
04-14-10 07:04

Installed latest 4.0.6 build, and problem still exists.

Resin Professional 4.0.6 (built Tue, 13 Apr 2010 08:56:43 PDT)
Copyright(c) 1998-2010 Caucho Technology. All rights reserved.

  1010835.license -- 2 Resin servers Intercontinental Hotel Groups (IHG)

Starting Resin Professional on Wed, 14 Apr 2010 10:00:00 -0400 (EDT)

OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005
Exception in thread "Attach handler" java.lang.NullPointerException
        at java.io.File.<init>(File.java:262)
        at com.ibm.tools.attach.javaSE.IPC.getTargetDirectoryPath(IPC.java:627)
        at com.ibm.tools.attach.javaSE.IPC.getNotificationSyncFile(IPC.java:511)
        at com.ibm.tools.attach.javaSE.AttachHandler.waitForNotification(AttachHandler.java:232)
        at com.ibm.tools.attach.javaSE.AttachHandler.run(AttachHandler.java:163)
 
(0004534)
mros2stf
04-14-10 12:44

Attach API
I'm sure this has to do with watchdog-manager.log not being created.

    The Attach API is a Sun Microsystems extension that provides a mechanism to attach to a JavaTM virtual machine. A tool written in the Java Language, uses this API to attach to a target virtual machine and load its tool agent into that virtual machine. For example, a management console might have a management agent which it uses to obtain management information from instrumented objects in a virtual machine. If the management console is required to manage an application that is running in a virtual machine that does not include the management agent, then this API can be used to attach to the target virtual machine and load the agent.
 
(0004720)
mros2stf
08-16-10 10:48

This also occurs in 4.0.9.
Processes running:
root 19528 1 0 Aug14 ? 00:00:18 /usr/lib/jvm/java-1.6.0-ibm-1.6.
www-data 19562 19528 0 Aug14 ? 00:01:05 /usr/lib/jvm/java-1.6.0-ibm-1.6.

then the directory structure in /tmp/.com_ibm_tools_attach. you can clearly see the pid 19528.
adczlnxsahp1:/tmp/.com_ibm_tools_attach # ls
17305 19528 _attachlock _master _notifier

adczlnxsahp1:/tmp/.com_ibm_tools_attach/19528 # cat attachInfo
version=0.1
userId=root
processId=19528
vmId=19528
displayName=com.caucho.boot.WatchdogManager -J-Dcom.ibm.oti.vm.bootstrap.library.path=/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre/lib/s390x/default:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre/lib/s390x -J-Dsun.boot.library.path=/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre/lib/s390x/default:/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre/lib/s390x -J-Djava.library.path=/usr/local/resin/libexec64 -J-Djava.home=/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre -J-Djava.ext.dirs=/usr/lib/jvm/java-1.6.0-ibm-1.6.0.7.0/jre/lib/ext -J-Duser.dir=/var/log/resin -J-Djava.runtime.version=pxz6460sr7-20091215_02 (SR7) -J-Djava.library.path=/usr/local/resin/libexec64 -J-Dsun.java.command=/usr/local/resin/lib/resin.jar -conf /etc/resin/resin.xml -log-directory /var/log/resin -root-directory /var/www -server sahp1 start -J-Dsun.java.launcher=SUN_STANDARD -J-Dsun.java.launcher.pid=19492 -conf /etc/resin/resin.xml -log-directory /var/log/resin -root-directory /var/www -server sahp1 start --log-directory /var/log/resin
notifier=_notifier
replyFile=/tmp/.com_ibm_tools_attach/19528/replyInfo
attachNotificationSync=/tmp/.com_ibm_tools_attach/19528/attachNotificationSync


There is however, no replyInfo file in the directory. This could be the problem.

adczlnxsahp1:/tmp/.com_ibm_tools_attach/19528 # ls
attachInfo attachNotificationSync
 
(0004738)
mros2stf
09-08-10 08:51

It also happens in 4.0.10

Resin Professional 4.0.10 (built Tue, 24 Aug 2010 10:51:07 PDT)
Copyright(c) 1998-2010 Caucho Technology. All rights reserved.

  1010835.license -- 2 Resin servers Intercontinental Hotel Groups (IHG)

Starting Resin Professional on Tue, 07 Sep 2010 15:54:16 -0400 (EDT)

OpenSSL support compiled for OpenSSL 0.9.8a 11 Oct 2005
Exception in thread "Attach handler" java.lang.NullPointerException
        at java.io.File.<init>(File.java:262)
        at com.ibm.tools.attach.javaSE.IPC.getTargetDirectoryPath(IPC.java:627)
        at com.ibm.tools.attach.javaSE.IPC.getNotificationSyncFile(IPC.java:511)
        at com.ibm.tools.attach.javaSE.AttachHandler.waitForNotification(AttachHandler.java:232)
        at com.ibm.tools.attach.javaSE.AttachHandler.run(AttachHandler.java:163)
 
(0005026)
mros2stf
02-08-11 06:22

Seems to be corrected in 4.0.14.
 

- Issue History
Date Modified Username Field Change
04-08-10 05:32 mros2stf New Issue
04-12-10 11:51 mros2stf Note Added: 0004527
04-14-10 07:04 mros2stf Note Added: 0004533
04-14-10 12:44 mros2stf Note Added: 0004534
08-16-10 10:48 mros2stf Note Added: 0004720
09-08-10 08:50 mros2stf Issue Monitored: mros2stf
09-08-10 08:51 mros2stf Note Added: 0004738
02-08-11 06:22 mros2stf Note Added: 0005026
02-08-11 09:30 ferg Assigned To  => ferg
02-08-11 09:30 ferg Status new => closed
02-08-11 09:30 ferg Resolution open => fixed
02-08-11 09:30 ferg Fixed in Version  => 4.0.14


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