cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to do bean instance creation

jaikrishna
Champ on-the-rise
Champ on-the-rise
I am getting the following error :


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [activiti.cfg.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/activiti/image/ProcessDiagramGenerator

I dont know how to resolve this . I am not finding the right jar file containing the above class ..
26 REPLIES 26

vasile_dirla
Star Contributor
Star Contributor
Ok, now you know how to debug.
having the debugger started you could start investigate around this line in the stacktrace:
<code>
  java.lang.NullPointerException
at org.activiti.designer.test.ProcessTestMyProcess.startProcess(ProcessTestMyProcess.java:31)
</code>

put a breakpoint into the ProcessTestMyProcess on line 31. and see what's null. (and then you could start finding why is it null.)

note: I don't know what's wrong in your setup, but I think is more useful to learn you catch a fish than give you a fish.

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,
RepositoryService repositoryService = activitiRule.getRepositoryService();
  RuntimeService runtimeService = activitiRule.getRuntimeService();

In  both of these statements I am getting the value of respositoryservice and runtimeservice as null . What might be the reason for that ?
Is that anything to do with the sql exception I am getting ? Please help me .. I am confused

jaikrishna
Champ on-the-rise
Champ on-the-rise
Please help me .. I am new to activiti .. I dont know why I am getting as null even though I have all the required jar files .
Please guide me ..

trademak
Star Contributor
Star Contributor
Please share the unit test you are writing with the activitiRule.getRepositoryService call that results in null. Then we can have a better idea what's going wrong.

Best regards,

jaikrishna
Champ on-the-rise
Champ on-the-rise
I have attached the junit test file ..Please help me ..

vasile_dirla
Star Contributor
Star Contributor
Hi,
would be great if you will provide a zip file with all the files involved. (the pom file, activiti.cfg.xml, bpmn .etc..)
since you cannot upload a zip file here, just change the extension to txt before uploading it)

jaikrishna
Champ on-the-rise
Champ on-the-rise
It is working now .. Thanks a lot .. I removed Ibatis jar ..It worked