You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Alexander Graf <al...@student.htw-berlin.de> on 2011/02/23 17:39:37 UTC

deployment on glassfish

Hi everybody!

I hardly tried to get ofbiz running on glassfish for the last 3 days,  
following the instructions from
https://cwiki.apache.org/confluence/display/OFBTECH/Glassfish+v2.1
. There are some problems with the scripts provided. (redundant slashes in  
paths, char encoding ...)

However I could deploy ofbiz after manually fixing. I added the JVM option

-Dofbiz.home=${com.sun.aas.instanceRoot}/applications/j2ee-apps/ofbiz/apache-ofbiz-10.04

to the glassfish settings. I still get the following exception around 1000  
times a second blowing up the logs:

[#|2011-02-23T17:04:58.966+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=Dispatcher-Thread-48;|2011-02-23  
17:04:58,965 (org.ofbiz.service.job.JobPoller@437de4) [          
JobManager.java:187:ERROR]
---- runtime exception report  
--------------------------------------------------
Error in polling JobSandbox: [java.lang.NullPointerException]. Rolling  
back transaction.
Exception: java.lang.NullPointerException
Message: null
---- stack trace  
---------------------------------------------------------------
java.lang.NullPointerException
org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2129)
org.ofbiz.entity.GenericDelegator.clearCacheLineByCondition(GenericDelegator.java:2120)
org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1276)
org.ofbiz.entity.GenericDelegator.storeByCondition(GenericDelegator.java:1261)
org.ofbiz.service.job.JobManager.poll(JobManager.java:157)
org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------------------------

|#]

[#|2011-02-23T17:04:58.966+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=Dispatcher-Thread-48;|2011-02-23  
17:04:58,966 (org.ofbiz.service.job.JobPoller@437de4) [     
TransactionUtil.java:344:INFO ] [TransactionUtil.rollback] transaction  
rolled back
|#]

[#|2011-02-23T17:04:58.966+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=Dispatcher-Thread-48;|2011-02-23  
17:04:58,966 (org.ofbiz.service.job.JobPoller@437de4) [     
TransactionUtil.java:269:WARN ] [TransactionUtil.commit] Not committing  
transaction, status is No Transaction (6)
|#]

[#|2011-02-23T17:04:58.967+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=Dispatcher-Thread-48;|2011-02-23  
17:04:58,967 (org.ofbiz.service.job.JobPoller@437de4)

Do you have any idea what's wrong here?

Greetings
Alexander