NullPointerException During Synchronization (SYNC029) (Doc ID 1227473.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Sun Java System Application Server Ent Ed - Version: 8.1 to 8.1 - Release: 8.1 to 8.1
Sun Java System Application Server Ent Ed - Version: 8.2 to 8.2   [Release: 8.2 to 8.2]
Sun GlassFish Enterprise Server - Version: 2.1 and later    [Release: 2.1 and later]
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (32-bit)
Generic Linux
IBM AIX on POWER Systems (32-bit)
IBM AIX on POWER Systems (64-bit)

Symptoms

While starting a server instance explicitly with the Admin Console or asadmin tool, the server instance synchronizes with the central repository, i.e. the domain server.

The synchronization process fails with a SEVERE error exception "java.lang.NullPointerException" in the server instance's server.log.

Note: The server instance does start successfully.

Detailed example of this error message with Sun Java Systems Application Server 8.1 UR2:

[#|2010-09-28T23:03:59.095+1000|SEVERE|sun-appserver-ee8.1_02|javax.ee.enterprise.system.tools.synchronization|_ThreadID=10;|SYNC029: There was an exception during synchronization.
java.lang.NullPointerException

at com.sun.enterprise.util.io.FileLister.getFilesInternal(FileLister.java:58)
at com.sun.enterprise.util.io.FileLister.getFilesInternal(FileLister.java:62)
at com.sun.enterprise.util.io.FileLister.getFilesInternal(FileLister.java:62)
at com.sun.enterprise.util.io.FileLister.getFiles(FileLister.java:33)
at com.sun.enterprise.ee.synchronization.inventory.InventoryMgr.getInventory(InventoryMgr.java:52)
at com.sun.enterprise.ee.synchronization.SynchronizationConfig.getSyncRequests(SynchronizationConfig.java:319)
at com.sun.enterprise.ee.synchronization.JmxSynchronizationDriver.getRequests(JmxSynchronizationDriver.java:285)
at com.sun.enterprise.ee.synchronization.JmxSynchronizationDriver.getAllRequests(JmxSynchronizationDriver.java:251)
at com.sun.enterprise.ee.synchronization.JmxSynchronizationDriver.synchronizeInternal(JmxSynchronizationDriver.java:148)
at com.sun.enterprise.ee.synchronization.JmxSynchronizationDriver.synchronize(JmxSynchronizationDriver.java:106)
at com.sun.enterprise.ee.synchronization.SynchronizationMain.main(SynchronizationMain.java:67)
|#]

Error message in Sun Java Systems Application Server 8.2 patch 14:

[#|2010-10-15T14:55:37.020+0800|SEVERE|sun-appserver-ee8.2|javax.ee.enterprise.system.tools.synchronization|_ThreadID=12;|SYNC029: There was an exception during synchronization.
com.sun.enterprise.ee.synchronization.SynchronizationException: Error while processing response for synch request: ${com.sun.aas.instanceRoot}/applications/
at com.sun.enterprise.ee.synchronization.ResponseProcessCommand.execute(ResponseProcessCommand.java:107)
at com.sun.enterprise.ee.synchronization.JmxRequestMediator.execute(JmxRequestMediator.java:77)
at com.sun.enterprise.ee.synchronization.JmxRequestMediator.run(JmxRequestMediator.java:91)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: /work/as82eep14/nodeagents/clusteragent/c11/applications/j2ee-apps/clusterjsp/clusterjsp_war/HaJsp.jsp (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at com.sun.enterprise.ee.util.zip.Unzipper.writeZipInputStream(Unzipper.java:105)
at com.sun.enterprise.ee.util.zip.Unzipper.writeZipBytes(Unzipper.java:54)
at com.sun.enterprise.ee.synchronization.ResponseProcessCommand.execute(ResponseProcessCommand.java:75)
... 3 more


Error message in GlassFish v2.1.1 patch 8:

[#|2010-10-15T15:50:16.846+0800|WARNING|sun-appserver2.1.1|javax.ee.enterprise.system.tools.synchronization|_ThreadID=12;_ThreadName=main;|SYNC029: There was an exception during synchronization. Please try again and a full synchronization will be initiated. If the problem persists for a server instance, you may backup and remove the cache repository (for example, directories under nodeagents/na1/server1/) and restart the node-agent (ex. asadmin stop-node-agent; start-node-agent --startinstances=false) and the server instance (ex. asadmin start-instance). All necessary configuration for the server instance (server1 in example) will be downloaded from Domain Administration Server by synchronization.
com.sun.enterprise.ee.synchronization.SynchronizationException: com.sun.enterprise.ee.synchronization.SynchronizationException: Error while retrieving file from central repository: ${com.sun.aas.instanceRoot}/applications/
at com.sun.enterprise.ee.synchronization.BaseSynchronizationDriver.synchronizeInternal(BaseSynchronizationDriver.java:293)
at com.sun.enterprise.ee.synchronization.BaseSynchronizationDriver.synchronize(BaseSynchronizationDriver.java:140)
at com.sun.enterprise.ee.synchronization.SynchronizationMain.main(SynchronizationMain.java:126)
Caused by: com.sun.enterprise.ee.synchronization.SynchronizationException: Error while retrieving file from central repository: ${com.sun.aas.instanceRoot}/applications/
at com.sun.enterprise.ee.synchronization.http.HttpGetCommand.execute(HttpGetCommand.java:139)
at com.sun.enterprise.ee.synchronization.BaseRequestMediator.execute(BaseRequestMediator.java:90)
at com.sun.enterprise.ee.synchronization.BaseRequestMediator.run(BaseRequestMediator.java:107)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /work/gfv211hadbp08/nodeagents/vm43.sg.oracle.com/c11/applications/j2ee-apps/clusterjsp/META-INF/sun-application.xml (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at com.sun.enterprise.ee.util.zip.Unzipper.writeFileWithIO(Unzipper.java:220)
at com.sun.enterprise.ee.util.zip.Unzipper.writeZipEntry(Unzipper.java:285)
at com.sun.enterprise.ee.synchronization.http.HttpUnzipper.writeZip(HttpUnzipper.java:109)
at com.sun.enterprise.ee.synchronization.http.HttpGetCommand.execute(HttpGetCommand.java:130)
... 3 more
|#]

Changes

The problem is caused by differences in permissions in the ownership of the physical files in the installation, and the user id of the running processes.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms