Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » NullPointerException when bootstrapping engine. Unable to login(Problems reading the models in AuditTrail)
NullPointerException when bootstrapping engine. Unable to login [message #871221] Fri, 11 May 2012 13:34 Go to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

The following stacktraces regarding the initialization of a java.io.StringReader were observed during bootstrapping of the engine (mostly upon the login of the first user). As a result, the login screen of the portal can be reached, but no login is possible.

What could be wrong here?

16:07:30 INFO - [main ] EngineService - Bootstrapping engine
16:07:32 INFO - [main ] CacheHelper - No caching service is available.
16:07:32 INFO - [main ] extensions - Initializing static extensions resolver
16:07:32 INFO - [main ] extensions - Initializing Service Provider extensions resolver
16:07:32 INFO - [main ] extensions - Using extensions manager: ag.carnot.workflow.runtime.beans.PartitionAwareExtensionsManager@14786f
16:07:32 WARN - [main ] LogUtils -
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:33)
at ag.carnot.workflow.runtime.beans.ModelPersistorBean.fetchModel(ModelPersistorBean.java:178)
at ag.carnot.workflow.runtime.beans.ModelPersistorBean.getId(ModelPersistorBean.java:169)
at ag.carnot.workflow.runtime.beans.RuntimeOidUtils.getFqId(RuntimeOidUtils.java:70)
at ag.carnot.workflow.runtime.beans.RuntimeOidUtils.getFqId(RuntimeOidUtils.java:58)
at ag.carnot.workflow.runtime.beans.RuntimeModelLoader.registerOids(RuntimeModelLoader.java:91)
at ag.carnot.workflow.runtime.beans.RuntimeModelLoader.loadRuntimeOidRegistry(RuntimeModelLoader.java:62)
at ag.carnot.workflow.runtime.beans.ModelManagerBean$ModelManagerPartition.<init>(ModelManagerBean.java:724)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.getModelManagerPartition(ModelManagerBean.java:288)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.getModelManagerPartition(ModelManagerBean.java:253)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.findActiveModel(ModelManagerBean.java:74)
at ag.carnot.workflow.runtime.spring.AbstractSpringForkingServiceBean$1.execute(AbstractSpringForkingServiceBean.java:93)
at ag.carnot.workflow.runtime.spring.AbstractSpringForkingServiceBean$TxIsolatedActionInvoker.isolate(AbstractSpringForkingServiceBean.java:238)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

or

java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:33)
at ag.carnot.workflow.runtime.beans.ModelPersistorBean.fetchModel(ModelPersistorBean.java:162)
at ag.carnot.workflow.runtime.beans.ModelManagerBean$ModelManagerPartition.<init>(ModelManagerBean.java:717)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.getModelManagerPartition(ModelManagerBean.java:266)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.getModelManagerPartition(ModelManagerBean.java:232)
at ag.carnot.workflow.runtime.beans.ModelManagerBean.findModelParticipant(ModelManagerBean.java:163)
at ag.carnot.workflow.runtime.beans.UserParticipantLink.getParticipant(UserParticipantLink.java:202)
at ag.carnot.workflow.runtime.beans.UserBean$1.execute(UserBean.java:613)
at ag.carnot.workflow.runtime.beans.UserBean$1.execute(UserBean.java:610)
at ag.carnot.base.TransformingIterator.next(TransformingIterator.java:46)
at ag.carnot.base.FilteringIterator.hasNext(FilteringIterator.java:49)
at ag.carnot.base.FilteringIterator.hasNext(FilteringIterator.java:47)
at ag.carnot.workflow.runtime.beans.UserBean.hasRole(UserBean.java:675)
at ag.carnot.security.utils.SecurityUtils.isPasswordExpired(SecurityUtils.java:326)
at ag.carnot.workflow.spi.providers.security.audittrail.AuditTrailLoginService.login(AuditTrailLoginService.java:173)
at ag.carnot.workflow.runtime.beans.interceptors.AbstractLoginInterceptor$LoginAction.execute(AbstractLoginInterceptor.java:367)
at ag.carnot.workflow.ejb.beans.LocalForkingServiceImpl$ForkingServiceActionRunner.execute(LocalForkingServiceImpl.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
Re: NullPointerException when bootstrapping engine. Unable to login [message #871222 is a reply to message #871221] Fri, 11 May 2012 13:46 Go to previous message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 61
Registered: October 2011
Member

Essentially, what this exception is saying is that a process model could not be read from the AuditTrail DB.

A copy of the complete model XML is stored in the STRING_DATA table (CLOB_DATA in later versions). An analysis of these AuditTrail tables confirmed problems that were introduced by operations directly on the database. In one case the table was accidentally truncated and in the other data copied from another system into a test system was not applied correctly.

The problems were caused by manual DB manipulations which can happen in local test systems where the DB is not protected as rigorously as a UAT or production system. The solution was to cleanup the database (either by recreating the schema or installing a backup).
Previous Topic:Find process instances having 2 data and a specific activity in hibernated state
Next Topic:CarnotUserService problem
Goto Forum:
  


Current Time: Fri Oct 24 08:02:48 GMT 2014

Powered by FUDForum. Page generated in 0.02133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software