CMDBuild Forum

I can't run Connector4.1.jar / no puedo

Hello,

I'm a spanish user. I can't run the external connector. I've defined the mapping of data with OCS database and when i try:

java -jar Connector4.1 /path_to_cmdbuild/conectorInventory/xmlImportAsset/ ImportAsset

It show:

<<< Starting ExternalConnector (v. 3.1) >>>
*** Begin operation for key: ping ***
Retrieving information from CMDBuild
System failure: 
java.lang.NullPointerException
	at cmdbuild.workflow.sharkimpl.CMDBSharkFacade.processStart(CMDBSharkFacade.java:403)
	at cmdbuild.servlets.remoteapi.action.workflow.WorkflowStartProcess.startProcess(WorkflowStartProcess.java:163)
	at cmdbuild.servlets.remoteapi.action.workflow.WorkflowStartProcess.doShark1(WorkflowStartProcess.java:73)
	at cmdbuild.servlets.remoteapi.action.workflow.WorkflowStartProcess._execute(WorkflowStartProcess.java:56)
	at cmdbuild.servlets.remoteapi.action.workflow.WorkflowStartProcess._execute(WorkflowStartProcess.java:1)
	at cmdbuild.servlets.remoteapi.action.workflow.WorkflowAction.execute(WorkflowAction.java:45)
	at cmdbuild.servlets.remoteapi.CMDBAPIAction.exec(CMDBAPIAction.java:71)
	at cmdbuild.servlets.CMDBRemoteAPI.doPost(CMDBRemoteAPI.java:102)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at cmdbuild.filter.CMDBFilterChain.doFilter(CMDBFilterChain.java:91)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)


I don't understand what i doing wrong.

Excuse my poor english.

Thanks
Regards.

//////////////////////////////

Hola,

tengo un problema cuando utilizo el conector externo a la base de datos. He definido el mapeo de información, pero cuando lanzo la aplicación Connector4.1, me aparece el error anterior. ¿Qué estoy haciendo mal?

Gracias por adelantado.

Saludos.

Hello,
the exception that has been raised seems to suggest that you haven't upload the xpdl in CMDBuild.
I suggest you to control these points:
1) did you create (inside CMDBuild) the class ImportAsset inherited from Activity?
2) did you upload the xpdl for this class? You can do this by logging in administration area and clicking the tab "setting" (or "impostazioni" in the italian version), and then "workflow". In the first select you must choose your class eg. "ImportAsset", and then you can upload the XPDL (you can find one in the release) from your pc. Then you can press the yellow button.
3) Verify that your operation was successful by opening WEB-INF/config.xml.
Between the processes' tags you must find the process ImportAsset with some informations needed by CMDBuild. If not so, go to catalina.out / stdout.log and search for the exception that surerly has been raised.

Best regards,
Lisa

Yes, that was the solution. Thank you.
Regards.

Now, I would ask another question. Why when I delete a CI in CMDBuild 0.9, it doesn't delete on database and it does delete on CMDBuild interface. It work in CMDBuild 0.8, but not on CMDBuild 0.9.

Regards.