CMDBuild Forum

Process "ImportAsset" doesn't work anymore

Hello,
I had the process "ImportAsset" running before upgrading to CMDBuild 2.4, but didn't use it for a while.
Now, after upgrading, we would like to import again some data from OCS but it doesn't work anymore.

I manually emptied the tables "Activity", "ImportAsset" and "ImportAsset_historry", but stil the record is not added to CMDBuild.

A new run showed a new process record.
In the process menu i see the record "Activity Name: Inserimento Modifiche and Description: Creazione di un nuovo oggetto (DiskDrives: 1085996)" with status "Open".

The fields look fine:

 "Description: Creazione di un nuove oggetto (DiskDrives Code: 1085996)"
 "actionDetail: Inserimento di un nuovo oggetto: CMDBUILD"
                      Descrizione: DiskDrives: 1085996/dev/sdaD-OASSRVDisk54"

But the process doesn't continue and doesn't add the diskdrive?
Do i mis a step now e.q. taskmanager ??

Below the output of the basic connector and the log files "shark.log" and "cmdbuild.log".

 

D-CMSSRV:/home/ocs/Dsk_Connector # ./Upd_CMDBuild_Disks.sh

log4j:WARN No appenders could be found for logger (connector).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
log4j: Parsing for [root] with value=[WARN, R].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "R".
log4j: Parsing layout options for "R".
log4j: End of parsing for "R".
log4j: Setting property [file] to [/home/ocs/Dsk_Connector/logs/ExternalConnector.log].
log4j: Setting property [maxFileSize] to [100MB].
log4j: Setting property [maxBackupIndex] to [10].
log4j: setFile called: /home/ocs/Dsk_Connector/logs/ExternalConnector.log, true
log4j: setFile ended
log4j: Parsed "R" options.
log4j: Parsing for [connector] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category connector set to INFO
log4j: Handling log4j.additivity.connector=[null]
log4j: Parsing for [servermail] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category servermail set to INFO
log4j: Handling log4j.additivity.servermail=[null]
log4j: Parsing for [inventory] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category inventory set to INFO
log4j: Handling log4j.additivity.inventory=[null]
log4j: Parsing for [ldap] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category ldap set to INFO
log4j: Handling log4j.additivity.ldap=[null]
log4j: Finished configuring.

D-CMSSRV:/home/ocs/Dsk_Connector # cat logs/ExternalConnector.log
>>> Program Started  - version (Basic Connector 1.5.0 - 30/10/2013)<<<
Parsing XML file [/home/ocs/Dsk_Connector/conf/configuration.xml]
Reading the transform file.
Parsing XML file [/home/ocs/Dsk_Connector/conf/cmdbuild-schema.xml]
Total objects to check: 1
Reading card nr. 1 - Code: 1085996
keyNode name is: storagewith id:168
New master card [Code: 1085996]
A new item has been detected [card master is DiskDrives.Code: 1085996]
>>> Program Terminated <<<

D-CMSSRV:/home/ocs/Dsk_Connector # cat logs/log4j.conf
#
#Thu Oct 27 12:56:23 CEST 2016
log4j.logger.connector=INFO
log4j.logger.servermail=INFO
log4j.appender.R.File=/home/ocs/Dsk_Connector/logs/ExternalConnector.log
log4j.rootLogger=WARN, R
log4j.debug=TRUE
log4j.appender.R.MaxFileSize=100MB
log4j.appender.R..layout.ConversionPattern=%-5.5p %d{yyyy-MM-dd HH\:mm\:ss} [%-8c] %m%n
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.MaxBackupIndex=10
log4j.logger.ldap=INFO
log4j.logger.inventory=INFO
log4j.appender.R=org.apache.log4j.RollingFileAppender

D-CMSSRV:/home/ocs/Dsk_Connector #

Shark.log:
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactoryExt' implementation of core SharkObjectFactory API
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API
2016-10-27 12:49:14,138: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API
2016-10-27 12:49:14,609: StandardAssignmentManager -> Working with 'org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin' implementation of UserGroup API
2016-10-27 12:49:14,696: StandardAssignmentManager -> Working with 'org.enhydra.shark.partmappersistence.DODSParticipantMappingAdmin' implementation of ParticipantMapping API
2016-10-27 12:49:14,696: SharkEngineManager -> Working with 'org.enhydra.shark.assignment.StandardAssignmentManager' implementation of Assignment API
2016-10-27 12:49:14,700: Process Cache configured - max. size is 100
2016-10-27 12:49:14,701: Resource Cache configured - max. size is 100
2016-10-27 12:49:14,701: SharkEngineManager -> Working with 'org.enhydra.shark.caching.LRUCacheMgr' implementation of Caching API
2016-10-27 12:49:14,945: DODSPersistentManager -> persisting String variables into BLOB for sizes greater than 4000
2016-10-27 12:49:14,945: SharkEngineManager -> Working with 'org.enhydra.shark.instancepersistence.DODSSelectivePersistenceManager' implementation of InstancePersistence API
2016-10-27 12:49:14,959: DODSGlobalPersistenceManager -> persisting String data into BLOB for sizes greater than 4000
2016-10-27 12:49:14,959: SharkEngineManager -> Working with 'org.enhydra.shark.globalpersistence.DODSGlobalPersistenceManager' implementation of GlobalPersistence API
2016-10-27 12:49:16,702: SharkEngineManager -> Working with 'org.cmdbuild.workflow.CMDBuildEventAuditManager' implementation of EventAudit API
2016-10-27 12:49:16,761: SharkEngineManager -> Working with 'org.enhydra.shark.repositorypersistence.DODSRepositoryPersistenceManager' implementation of RepositoryPersistence API

2016-10-27 12:49:16,765: SharkEngineManager -> Working with 'org.enhydra.shark.scripting.StandardScriptingManager' implementation of Scripting API

2016-10-27 12:49:16,765: SharkEngineManager -> Working without Security API implementation - SecurityManager is not specified.

2016-10-27 12:49:16,917: StandardToolAgentManager -> Working with 'org.enhydra.shark.appmappersistence.DODSApplicationMappingAdmin' implementation of ApplicationMapPersistence API

2016-10-27 12:49:16,918: SharkEngineManager -> Working with 'org.enhydra.shark.toolagent.StandardToolAgentManager' implementation of ToolAgentManager API

2016-10-27 12:49:16,918: SharkEngineManager -> Working without wfEngineInteroperability API implementation - WfEngineInteroperability implementation is not specified.

2016-10-27 12:49:16,936: SharkUtilities -> synchronizing XPDL cache

2016-10-27 12:56:29,266: SharkUtilities -> synchronizing XPDL cache

2016-10-27 12:56:29,491: Process [key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] is created

2016-10-27 12:56:29,546: process 'Process_importasset' started

2016-10-27 12:56:29,546: sending notification for start of process 'Process_importasset'

2016-10-27 12:56:30,320: Process [key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] is starting...

2016-10-27 12:56:30,378: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62301_18401_Package_importasset_Process_importasset_Process_importocs_act1, ba=null, ActDefId=Process_importocs_act1] is created

2016-10-27 12:56:30,383: activity 'Process_importocs_act1' started

2016-10-27 12:56:30,384: activity 'Process_importocs_act1' closed

2016-10-27 12:56:30,384: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62301_18401_Package_importasset_Process_importasset_Process_importocs_act1, ba=null, ActDefId=Process_importocs_act1] is completed.

2016-10-27 12:56:30,400: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62302_18401_Package_importasset_Process_importasset_InserimentoModifiche, ba=null, ActDefId=InserimentoModifiche] is created

2016-10-27 12:56:30,401: activity 'InserimentoModifiche' started

2016-10-27 12:56:30,401: sending notification for activity 'InserimentoModifiche'

2016-10-27 12:56:30,401: sending notification for update of process 'Process_importasset'

2016-10-27 12:56:31,605: activity 'InserimentoModifiche' closed

2016-10-27 12:56:31,605: sending notification for activity 'InserimentoModifiche'

2016-10-27 12:56:31,605: sending notification for update of process 'Process_importasset'

2016-10-27 12:56:31,722: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62302_18401_Package_importasset_Process_importasset_InserimentoModifiche, ba=null, ActDefId=InserimentoModifiche] is completed.

2016-10-27 12:56:31,728: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] is created

2016-10-27 12:56:31,729: activity 'Synchonize' started

2016-10-27 12:56:31,737: Activity[Process Id=18401_Package_importasset_Process_importasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] - E

xecuting script [type=text/java,value=//credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList);]

2016-10-27 12:56:31,758: loading workflow api 'org.cmdbuild.workflow.api.SoapSharkWorkflowApiFactory'

2016-10-27 12:56:31,759: loading class 'org.cmdbuild.workflow.api.SoapSharkWorkflowApiFactory' that should be a 'org.cmdbuild.workflow.api.SharkWorkflowApiFactory'

2016-10-27 12:56:31,904: loading mail api 'org.cmdbuild.common.api.mail.javax.mail.JavaxMailBasedMailApiFactory'

2016-10-27 12:56:31,905: loading class 'org.cmdbuild.common.api.mail.javax.mail.JavaxMailBasedMailApiFactory' that should be a 'org.cmdbuild.common.api.mail.MailApiFactory'

2016-10-27 12:56:32,237: BshToolAgent - application //credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList); terminated incorrectly: Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

2016-10-27 12:56:32,237: cannot execute tool agent - application  terminated incorrectly

Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

        at bsh.BSHMethodInvocation.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at org.enhydra.shark.toolagent.BshToolAgent.invokeApplication(Unknown Source)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invoke(OverriddableDefaultToolAgent.java:202)

        at org.cmdbuild.shark.toolagent.CmdbuildDefaultToolAgent.invoke(CmdbuildDefaultToolAgent.java:70)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invokeApplication(OverriddableDefaultToolAgent.java:87)

        at org.enhydra.shark.toolagent.StandardToolAgentManager.invokeToolAgent(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.invokeApplication(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.run(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler.executeActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.runTool(Unknown Source)

        :

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.enhydra.shark.toolagent.BshToolAgent.invokeApplication(Unknown Source)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invoke(OverriddableDefaultToolAgent.java:202)

        at org.cmdbuild.shark.toolagent.CmdbuildDefaultToolAgent.invoke(CmdbuildDefaultToolAgent.java:70)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invokeApplication(OverriddableDefaultToolAgent.java:87)

        at org.enhydra.shark.toolagent.StandardToolAgentManager.invokeToolAgent(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.invokeApplication(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.run(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler.executeActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.runTool(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.startActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.activate(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.startActivity(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.queueNext(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.run(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.activity_complete(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.finish(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.complete(Unknown Source)

        at org.enhydra.shark.SharkUtilities.changeActivityState(Unknown Source)

        at org.enhydra.shark.WAPIImpl.changeActivityInstanceState(Unknown Source)

        at org.enhydra.shark.ws.WAPIWrapper.changeActivityInstanceState(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        :

        at java.lang.Thread.run(Thread.java:745)

Caused by: Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

        at bsh.BSHMethodInvocation.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        ... 56 more

2016-10-27 12:56:32,271: Activity[Process Id=18401_Package_importasset_Process_importasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] - f

ailed to execute script [type=text/java,value=//credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList);]: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

2016-10-27 12:56:32,271: activity 'Synchonize' closed

2016-10-27 12:56:32,272: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] is terminated.

 

cmdbuild.log:

INFO  2016-10-27 12:53:10 [workflow] getting all active process classes

INFO  2016-10-27 12:53:10 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:53:14 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [workflow] getting process class with name 'Activity'

ERROR 2016-10-27 12:53:14 [jsonrpc ] Error retrieving start activity for process

INFO  2016-10-27 12:53:14 [jsonrpc ] Calling url /widget/readall

INFO  2016-10-27 12:53:15 [jsonrpc ] Calling url /attachments/getattachmentscontext

INFO  2016-10-27 12:53:15 [jsonrpc ] Calling url /schema/modmenu/getassignedmenu

:

INFO  2016-10-27 12:55:09 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] trying to login user inventory with group null

WARN  2016-10-27 12:56:28 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

WARN  2016-10-27 12:56:28 [cmdbuild] cannot apply filter, user is not guest

INFO  2016-10-27 12:56:29 [cmdbuild] trying to login user inventory with group null

WARN  2016-10-27 12:56:29 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:56:29 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:56:29 [workflow] starting process for class 'ImportAsset' with variables '{}'

INFO  2016-10-27 12:56:30 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:30 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:30 [workflow] pushing event 'WorkflowEvent[type=START,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sessi

on '4'

INFO  2016-10-27 12:56:30 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:30 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:30 [workflow] pushing event 'WorkflowEvent[type=UPDATE,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sess

ion '4'

WARN  2016-10-27 12:56:30 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

WARN  2016-10-27 12:56:31 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

INFO  2016-10-27 12:56:31 [workflow] updating activity instance '62302_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'

WARN  2016-10-27 12:56:31 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

WARN  2016-10-27 12:56:31 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:31 [workflow] advancing activity instance '62302_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'

INFO  2016-10-27 12:56:31 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:31 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:31 [workflow] pushing event 'WorkflowEvent[type=UPDATE,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sess

ion '9'

WARN  2016-10-27 12:56:32 [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://proxy.sun.com/}$Proxy173Service has thrown exception, unwinding now

org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message

        at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:218)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:329)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:184)

:

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.wss4j.common.ext.WSSecurityException: The security token could not be authenticated or authorized

        at org.apache.wss4j.dom.validate.UsernameTokenValidator.verifyDigestPassword(UsernameTokenValidator.java:192)

:

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:280)

        ... 56 more

ERROR 2016-10-27 12:56:32 [soap    ] cannot update process for className 'ImportAsset' and cardId '0'

org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)

        at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)

:

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

:

        at org.enhydra.shark.ejb.client.ws.WAPIEJBEndpointPortSoapBindingStub.changeActivityInstanceState(Unknown Source)

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:431)

        ... 87 more

WARN  2016-10-27 12:56:32 [org.apache.cxf.phase.PhaseInterceptorChain] Application {http://proxy.sun.com/}$Proxy173Service#{http://soap.services.cmdbuild.org}updateWorkflow has thrown exceptio

n, unwinding now

org.apache.cxf.interceptor.Fault

        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)

        at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:267)

        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)

:

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.reflect.UndeclaredThrowableException

        at com.sun.proxy.$Proxy173.updateWorkflow(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

        at org.apache.cxf.jaxws.JAXWSMethodInvoker.performInvocation(JAXWSMethodInvoker.java:66)

        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

        ... 64 more

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.cmdbuild.common.utils.NotifierProxy$1.invoke(NotifierProxy.java:102)

        ... 72 more

Caused by: java.lang.RuntimeException: cannot update process for className 'ImportAsset' and cardId '0'

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.forwardException(WorkflowLogicHelper.java:282)

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.updateProcess(WorkflowLogicHelper.java:210)

        at org.cmdbuild.services.soap.PrivateImpl.updateWorkflow(PrivateImpl.java:228)

        ... 77 more

Caused by: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)

        at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:225)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:222)

        at org.cmdbuild.workflow.service.TransactedSharkService$TransactedExecutor.execute(TransactedSharkService.java:24)

        at org.cmdbuild.workflow.service.TransactedSharkService.advanceActivityInstance(TransactedSharkService.java:228)

        at org.cmdbuild.workflow.DefaultWorkflowEngine.advanceActivity(DefaultWorkflowEngine.java:504)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.startProcess(DefaultWorkflowLogic.java:411)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.startProcess(DefaultWorkflowLogic.java:370)

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.updateProcess(WorkflowLogicHelper.java:186)

        ... 78 more

Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

:

 

Previously Eric wrote:

Hello,
I had the process "ImportAsset" running before upgrading to CMDBuild 2.4, but didn't use it for a while.
Now, after upgrading, we would like to import again some data from OCS but it doesn't work anymore.

I manually emptied the tables "Activity", "ImportAsset" and "ImportAsset_historry", but stil the record is not added to CMDBuild.

A new run showed a new process record.
In the process menu i see the record "Activity Name: Inserimento Modifiche and Description: Creazione di un nuovo oggetto (DiskDrives: 1085996)" with status "Open".

The fields look fine:

 "Description: Creazione di un nuove oggetto (DiskDrives Code: 1085996)"
 "actionDetail: Inserimento di un nuovo oggetto: CMDBUILD"
                      Descrizione: DiskDrives: 1085996/dev/sdaD-OASSRVDisk54"

But the process doesn't continue and doesn't add the diskdrive?
Do i mis a step now e.q. taskmanager ??

Below the output of the basic connector and the log files "shark.log" and "cmdbuild.log".

 

D-CMSSRV:/home/ocs/Dsk_Connector # ./Upd_CMDBuild_Disks.sh

log4j:WARN No appenders could be found for logger (connector).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
log4j: Parsing for [root] with value=[WARN, R].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "R".
log4j: Parsing layout options for "R".
log4j: End of parsing for "R".
log4j: Setting property [file] to [/home/ocs/Dsk_Connector/logs/ExternalConnector.log].
log4j: Setting property [maxFileSize] to [100MB].
log4j: Setting property [maxBackupIndex] to [10].
log4j: setFile called: /home/ocs/Dsk_Connector/logs/ExternalConnector.log, true
log4j: setFile ended
log4j: Parsed "R" options.
log4j: Parsing for [connector] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category connector set to INFO
log4j: Handling log4j.additivity.connector=[null]
log4j: Parsing for [servermail] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category servermail set to INFO
log4j: Handling log4j.additivity.servermail=[null]
log4j: Parsing for [inventory] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category inventory set to INFO
log4j: Handling log4j.additivity.inventory=[null]
log4j: Parsing for [ldap] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category ldap set to INFO
log4j: Handling log4j.additivity.ldap=[null]
log4j: Finished configuring.

D-CMSSRV:/home/ocs/Dsk_Connector # cat logs/ExternalConnector.log
>>> Program Started  - version (Basic Connector 1.5.0 - 30/10/2013)<<<
Parsing XML file [/home/ocs/Dsk_Connector/conf/configuration.xml]
Reading the transform file.
Parsing XML file [/home/ocs/Dsk_Connector/conf/cmdbuild-schema.xml]
Total objects to check: 1
Reading card nr. 1 - Code: 1085996
keyNode name is: storagewith id:168
New master card [Code: 1085996]
A new item has been detected [card master is DiskDrives.Code: 1085996]
>>> Program Terminated <<<

D-CMSSRV:/home/ocs/Dsk_Connector # cat logs/log4j.conf
#
#Thu Oct 27 12:56:23 CEST 2016
log4j.logger.connector=INFO
log4j.logger.servermail=INFO
log4j.appender.R.File=/home/ocs/Dsk_Connector/logs/ExternalConnector.log
log4j.rootLogger=WARN, R
log4j.debug=TRUE
log4j.appender.R.MaxFileSize=100MB
log4j.appender.R..layout.ConversionPattern=%-5.5p %d{yyyy-MM-dd HH\:mm\:ss} [%-8c] %m%n
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.MaxBackupIndex=10
log4j.logger.ldap=INFO
log4j.logger.inventory=INFO
log4j.appender.R=org.apache.log4j.RollingFileAppender

D-CMSSRV:/home/ocs/Dsk_Connector #

Shark.log:
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.CallbackUtil' implementation of core CallbackUtilities API
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.SharkObjectFactoryExt' implementation of core SharkObjectFactory API
2016-10-27 12:49:14,137: SharkEngineManager -> Working with 'org.enhydra.shark.StandardToolActivityHandler' implementation of core ToolAgentManager API
2016-10-27 12:49:14,138: SharkEngineManager -> Working with 'org.enhydra.shark.logging.StandardLoggingManager' implementation of Logging API
2016-10-27 12:49:14,609: StandardAssignmentManager -> Working with 'org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin' implementation of UserGroup API
2016-10-27 12:49:14,696: StandardAssignmentManager -> Working with 'org.enhydra.shark.partmappersistence.DODSParticipantMappingAdmin' implementation of ParticipantMapping API
2016-10-27 12:49:14,696: SharkEngineManager -> Working with 'org.enhydra.shark.assignment.StandardAssignmentManager' implementation of Assignment API
2016-10-27 12:49:14,700: Process Cache configured - max. size is 100
2016-10-27 12:49:14,701: Resource Cache configured - max. size is 100
2016-10-27 12:49:14,701: SharkEngineManager -> Working with 'org.enhydra.shark.caching.LRUCacheMgr' implementation of Caching API
2016-10-27 12:49:14,945: DODSPersistentManager -> persisting String variables into BLOB for sizes greater than 4000
2016-10-27 12:49:14,945: SharkEngineManager -> Working with 'org.enhydra.shark.instancepersistence.DODSSelectivePersistenceManager' implementation of InstancePersistence API
2016-10-27 12:49:14,959: DODSGlobalPersistenceManager -> persisting String data into BLOB for sizes greater than 4000
2016-10-27 12:49:14,959: SharkEngineManager -> Working with 'org.enhydra.shark.globalpersistence.DODSGlobalPersistenceManager' implementation of GlobalPersistence API
2016-10-27 12:49:16,702: SharkEngineManager -> Working with 'org.cmdbuild.workflow.CMDBuildEventAuditManager' implementation of EventAudit API
2016-10-27 12:49:16,761: SharkEngineManager -> Working with 'org.enhydra.shark.repositorypersistence.DODSRepositoryPersistenceManager' implementation of RepositoryPersistence API

2016-10-27 12:49:16,765: SharkEngineManager -> Working with 'org.enhydra.shark.scripting.StandardScriptingManager' implementation of Scripting API

2016-10-27 12:49:16,765: SharkEngineManager -> Working without Security API implementation - SecurityManager is not specified.

2016-10-27 12:49:16,917: StandardToolAgentManager -> Working with 'org.enhydra.shark.appmappersistence.DODSApplicationMappingAdmin' implementation of ApplicationMapPersistence API

2016-10-27 12:49:16,918: SharkEngineManager -> Working with 'org.enhydra.shark.toolagent.StandardToolAgentManager' implementation of ToolAgentManager API

2016-10-27 12:49:16,918: SharkEngineManager -> Working without wfEngineInteroperability API implementation - WfEngineInteroperability implementation is not specified.

2016-10-27 12:49:16,936: SharkUtilities -> synchronizing XPDL cache

2016-10-27 12:56:29,266: SharkUtilities -> synchronizing XPDL cache

2016-10-27 12:56:29,491: Process [key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] is created

2016-10-27 12:56:29,546: process 'Process_importasset' started

2016-10-27 12:56:29,546: sending notification for start of process 'Process_importasset'

2016-10-27 12:56:30,320: Process [key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] is starting...

2016-10-27 12:56:30,378: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62301_18401_Package_importasset_Process_importasset_Process_importocs_act1, ba=null, ActDefId=Process_importocs_act1] is created

2016-10-27 12:56:30,383: activity 'Process_importocs_act1' started

2016-10-27 12:56:30,384: activity 'Process_importocs_act1' closed

2016-10-27 12:56:30,384: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62301_18401_Package_importasset_Process_importasset_Process_importocs_act1, ba=null, ActDefId=Process_importocs_act1] is completed.

2016-10-27 12:56:30,400: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62302_18401_Package_importasset_Process_importasset_InserimentoModifiche, ba=null, ActDefId=InserimentoModifiche] is created

2016-10-27 12:56:30,401: activity 'InserimentoModifiche' started

2016-10-27 12:56:30,401: sending notification for activity 'InserimentoModifiche'

2016-10-27 12:56:30,401: sending notification for update of process 'Process_importasset'

2016-10-27 12:56:31,605: activity 'InserimentoModifiche' closed

2016-10-27 12:56:31,605: sending notification for activity 'InserimentoModifiche'

2016-10-27 12:56:31,605: sending notification for update of process 'Process_importasset'

2016-10-27 12:56:31,722: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62302_18401_Package_importasset_Process_importasset_InserimentoModifiche, ba=null, ActDefId=InserimentoModifiche] is completed.

2016-10-27 12:56:31,728: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] is created

2016-10-27 12:56:31,729: activity 'Synchonize' started

2016-10-27 12:56:31,737: Activity[Process Id=18401_Package_importasset_Process_importasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] - E

xecuting script [type=text/java,value=//credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList);]

2016-10-27 12:56:31,758: loading workflow api 'org.cmdbuild.workflow.api.SoapSharkWorkflowApiFactory'

2016-10-27 12:56:31,759: loading class 'org.cmdbuild.workflow.api.SoapSharkWorkflowApiFactory' that should be a 'org.cmdbuild.workflow.api.SharkWorkflowApiFactory'

2016-10-27 12:56:31,904: loading mail api 'org.cmdbuild.common.api.mail.javax.mail.JavaxMailBasedMailApiFactory'

2016-10-27 12:56:31,905: loading class 'org.cmdbuild.common.api.mail.javax.mail.JavaxMailBasedMailApiFactory' that should be a 'org.cmdbuild.common.api.mail.MailApiFactory'

2016-10-27 12:56:32,237: BshToolAgent - application //credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList); terminated incorrectly: Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

2016-10-27 12:56:32,237: cannot execute tool agent - application  terminated incorrectly

Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

        at bsh.BSHMethodInvocation.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at org.enhydra.shark.toolagent.BshToolAgent.invokeApplication(Unknown Source)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invoke(OverriddableDefaultToolAgent.java:202)

        at org.cmdbuild.shark.toolagent.CmdbuildDefaultToolAgent.invoke(CmdbuildDefaultToolAgent.java:70)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invokeApplication(OverriddableDefaultToolAgent.java:87)

        at org.enhydra.shark.toolagent.StandardToolAgentManager.invokeToolAgent(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.invokeApplication(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.run(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler.executeActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.runTool(Unknown Source)

        :

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.enhydra.shark.toolagent.BshToolAgent.invokeApplication(Unknown Source)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invoke(OverriddableDefaultToolAgent.java:202)

        at org.cmdbuild.shark.toolagent.CmdbuildDefaultToolAgent.invoke(CmdbuildDefaultToolAgent.java:70)

        at org.cmdbuild.shark.toolagent.OverriddableDefaultToolAgent.invokeApplication(OverriddableDefaultToolAgent.java:87)

        at org.enhydra.shark.toolagent.StandardToolAgentManager.invokeToolAgent(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.invokeApplication(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler$ToolRunner.run(Unknown Source)

        at org.enhydra.shark.StandardToolActivityHandler.executeActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.runTool(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.startActivity(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.activate(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.startActivity(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.queueNext(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.run(Unknown Source)

        at org.enhydra.shark.WfProcessImpl.activity_complete(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.finish(Unknown Source)

        at org.enhydra.shark.WfActivityImpl.complete(Unknown Source)

        at org.enhydra.shark.SharkUtilities.changeActivityState(Unknown Source)

        at org.enhydra.shark.WAPIImpl.changeActivityInstanceState(Unknown Source)

        at org.enhydra.shark.ws.WAPIWrapper.changeActivityInstanceState(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        :

        at java.lang.Thread.run(Thread.java:745)

Caused by: Sourced file: eval stream : Method Invocation proxy.sync : at Line: 14 : in file: eval stream : proxy .sync ( actionList )

 

Target exception: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message

 

        at bsh.BSHMethodInvocation.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.BSHPrimaryExpression.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        at bsh.Interpreter.eval(Unknown Source)

        ... 56 more

2016-10-27 12:56:32,271: Activity[Process Id=18401_Package_importasset_Process_importasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] - f

ailed to execute script [type=text/java,value=//credential setup

url="http://"+cm_url+"/services/soap/Private";

 

//build the soap proxy for Private webservice

soapClient = new org.cmdbuild.services.soap.client.CmdbuildSoapClient.SoapClientBuilder() //

        .forClass(org.cmdbuild.services.soap.Private.class) //

        .withUrl(url) //

        .withUsername(cm_username) //

        .withPasswordType(org.cmdbuild.services.soap.client.CmdbuildSoapClient.PasswordType.DIGEST) //

        .withPassword(cm_password) //

        .build();

proxy = soapClient.getProxy();

 

proxy.sync(actionList);]: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

2016-10-27 12:56:32,271: activity 'Synchonize' closed

2016-10-27 12:56:32,272: Process[key=18401_Package_importasset_Process_importasset,mgrname=Package_importasset#2#Process_importasset] - Activity[Process Id=18401_Package_importasset_Process_im

portasset, Id=62303_18401_Package_importasset_Process_importasset_Synchonize, ba=null, ActDefId=Synchonize] is terminated.

 

cmdbuild.log:

INFO  2016-10-27 12:53:10 [workflow] getting all active process classes

INFO  2016-10-27 12:53:10 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:53:14 [workflow] getting all process classes

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:53:14 [workflow] getting process class with name 'Activity'

ERROR 2016-10-27 12:53:14 [jsonrpc ] Error retrieving start activity for process

INFO  2016-10-27 12:53:14 [jsonrpc ] Calling url /widget/readall

INFO  2016-10-27 12:53:15 [jsonrpc ] Calling url /attachments/getattachmentscontext

INFO  2016-10-27 12:53:15 [jsonrpc ] Calling url /schema/modmenu/getassignedmenu

:

INFO  2016-10-27 12:55:09 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] trying to login user inventory with group null

WARN  2016-10-27 12:56:28 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:28 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

WARN  2016-10-27 12:56:28 [cmdbuild] cannot apply filter, user is not guest

INFO  2016-10-27 12:56:29 [cmdbuild] trying to login user inventory with group null

WARN  2016-10-27 12:56:29 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-10-27 12:56:29 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:56:29 [workflow] getting process class with name 'ImportAsset'

INFO  2016-10-27 12:56:29 [workflow] starting process for class 'ImportAsset' with variables '{}'

INFO  2016-10-27 12:56:30 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:30 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:30 [workflow] pushing event 'WorkflowEvent[type=START,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sessi

on '4'

INFO  2016-10-27 12:56:30 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:30 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:30 [workflow] pushing event 'WorkflowEvent[type=UPDATE,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sess

ion '4'

WARN  2016-10-27 12:56:30 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

WARN  2016-10-27 12:56:31 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

INFO  2016-10-27 12:56:31 [workflow] updating activity instance '62302_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'

WARN  2016-10-27 12:56:31 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

WARN  2016-10-27 12:56:31 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:31 [workflow] advancing activity instance '62302_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'

INFO  2016-10-27 12:56:31 [cmdbuild] trying to login user workflow with group null

WARN  2016-10-27 12:56:31 [persist ] cannot get privilege object for privilege card '75086'

INFO  2016-10-27 12:56:31 [workflow] pushing event 'WorkflowEvent[type=UPDATE,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for sess

ion '9'

WARN  2016-10-27 12:56:32 [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://proxy.sun.com/}$Proxy173Service has thrown exception, unwinding now

org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message

        at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:218)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:329)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:184)

:

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.wss4j.common.ext.WSSecurityException: The security token could not be authenticated or authorized

        at org.apache.wss4j.dom.validate.UsernameTokenValidator.verifyDigestPassword(UsernameTokenValidator.java:192)

:

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:280)

        ... 56 more

ERROR 2016-10-27 12:56:32 [soap    ] cannot update process for className 'ImportAsset' and cardId '0'

org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)

        at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)

:

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

:

        at org.enhydra.shark.ejb.client.ws.WAPIEJBEndpointPortSoapBindingStub.changeActivityInstanceState(Unknown Source)

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:431)

        ... 87 more

WARN  2016-10-27 12:56:32 [org.apache.cxf.phase.PhaseInterceptorChain] Application {http://proxy.sun.com/}$Proxy173Service#{http://soap.services.cmdbuild.org}updateWorkflow has thrown exceptio

n, unwinding now

org.apache.cxf.interceptor.Fault

        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)

        at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:267)

        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)

:

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.reflect.UndeclaredThrowableException

        at com.sun.proxy.$Proxy173.updateWorkflow(Unknown Source)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

        at org.apache.cxf.jaxws.JAXWSMethodInvoker.performInvocation(JAXWSMethodInvoker.java:66)

        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

        ... 64 more

Caused by: java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.cmdbuild.common.utils.NotifierProxy$1.invoke(NotifierProxy.java:102)

        ... 72 more

Caused by: java.lang.RuntimeException: cannot update process for className 'ImportAsset' and cardId '0'

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.forwardException(WorkflowLogicHelper.java:282)

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.updateProcess(WorkflowLogicHelper.java:210)

        at org.cmdbuild.services.soap.PrivateImpl.updateWorkflow(PrivateImpl.java:228)

        ... 77 more

Caused by: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)

        at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:225)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:222)

        at org.cmdbuild.workflow.service.TransactedSharkService$TransactedExecutor.execute(TransactedSharkService.java:24)

        at org.cmdbuild.workflow.service.TransactedSharkService.advanceActivityInstance(TransactedSharkService.java:228)

        at org.cmdbuild.workflow.DefaultWorkflowEngine.advanceActivity(DefaultWorkflowEngine.java:504)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.startProcess(DefaultWorkflowLogic.java:411)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.startProcess(DefaultWorkflowLogic.java:370)

        at org.cmdbuild.services.soap.operation.WorkflowLogicHelper.updateProcess(WorkflowLogicHelper.java:186)

        ... 78 more

Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

:

 

I restored the database, but stil the found entry of OCS isn't inserted into CMDBuild (this has worked before with older version of CMDBuild).  Below is the cmdbuild.log:

 

DEBUG 2016-11-14 15:58:14 [cmdbuild] request received for '/services/json/workflow/isprocessupdated'

INFO  2016-11-14 15:58:14 [jsonrpc ] Calling url /workflow/isprocessupdated

INFO  2016-11-14 15:58:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:14 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

DEBUG 2016-11-14 15:58:14 [cmdbuild] getting process instance for class name 'ImportAsset' and card id '220342'

INFO  2016-11-14 15:58:14 [workflow] getting process class with name 'ImportAsset'

WARN  2016-11-14 15:58:14 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

DEBUG 2016-11-14 15:58:14 [cmdbuild] request received for '/services/json/email/email/readall'

INFO  2016-11-14 15:58:14 [jsonrpc ] Calling url /email/email/readall

DEBUG 2016-11-14 15:58:14 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:14 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:14 [cmdbuild] request received for '/services/json/email/template/readall'

INFO  2016-11-14 15:58:14 [jsonrpc ] Calling url /email/template/readall

INFO  2016-11-14 15:58:14 [cmdbuild] reading all templates

DEBUG 2016-11-14 15:58:24 [cmdbuild] request received for '/services/json/workflow/saveactivity'

INFO  2016-11-14 15:58:24 [jsonrpc ] Calling url /workflow/saveactivity

INFO  2016-11-14 15:58:24 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:24 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:24 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:24 [workflow] getting process class with id '54688'

WARN  2016-11-14 15:58:24 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

DEBUG 2016-11-14 15:58:24 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:24 [cmdbuild] getting data for module 'cmdbuild'

INFO  2016-11-14 15:58:24 [workflow] updating activity instance '62402_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'

 

WARN  2016-11-14 15:58:24 [sql     ] cannot get content of column 'ImportAsset#FlowStatus#Description'

DEBUG 2016-11-14 15:58:24 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:24 [cmdbuild] getting data for module 'cmdbuild'

INFO  2016-11-14 15:58:25 [workflow] advancing activity instance '62402_18401_Package_importasset_Process_importasset_InserimentoModifiche' for process 'ImportAsset'
DEBUG 2016-11-14 15:58:25 [cmdbuild] request received for '/services/soap/Private'
INFO  2016-11-14 15:58:25 [cmdbuild] trying to login user workflow with group null
INFO  2016-11-14 15:58:25 [workflow] pushing event 'WorkflowEvent[type=UPDATE,processDefinitionId=Process_importasset,processInstanceId=18401_Package_importasset_Process_importasset]' for session '34'
DEBUG 2016-11-14 15:58:25 [cmdbuild] request received for '/services/soap/Private'
WARN  2016-11-14 15:58:25 [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor for {http://proxy.sun.com/}$Proxy381Service has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message

 

        at org.apache.cxf.ws.security.wss4j.WSS4JUtils.createSoapFault(WSS4JUtils.java:218)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:329)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:184)

        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:93)

        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)

        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:253)

        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)

        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)

        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)

        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)

        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298)

        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:217)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)

        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:188)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)

        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2437)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.wss4j.common.ext.WSSecurityException: The security token could not be authenticated or authorized

 

        at org.apache.wss4j.dom.validate.UsernameTokenValidator.verifyDigestPassword(UsernameTokenValidator.java:192)
        at org.apache.wss4j.dom.validate.UsernameTokenValidator.validate(UsernameTokenValidator.java:91)
        at org.apache.wss4j.dom.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:171)
        at org.apache.wss4j.dom.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:66)
        at org.apache.wss4j.dom.engine.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:344)
        at org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessageInternal(WSS4JInInterceptor.java:280)

 


==> Which username/password is referred too ??

 

 

        ... 56 more

ERROR 2016-11-14 15:58:25 [jsonrpc ] A org.cmdbuild.workflow.CMWorkflowException occurred calling method class org.cmdbuild.servlets.json.Workflow.saveActivity: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:435)

        at org.cmdbuild.workflow.service.TransactedSharkService.access$1301(TransactedSharkService.java:16)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:225)

        at org.cmdbuild.workflow.service.TransactedSharkService$13.command(TransactedSharkService.java:222)

        at org.cmdbuild.workflow.service.TransactedSharkService$TransactedExecutor.execute(TransactedSharkService.java:24)

        at org.cmdbuild.workflow.service.TransactedSharkService.advanceActivityInstance(TransactedSharkService.java:228)

        at org.cmdbuild.workflow.DefaultWorkflowEngine.advanceActivity(DefaultWorkflowEngine.java:504)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.updateProcess(DefaultWorkflowLogic.java:545)

        at org.cmdbuild.logic.workflow.DefaultWorkflowLogic.updateProcess(DefaultWorkflowLogic.java:529)

        at org.cmdbuild.servlets.json.Workflow.saveActivity(Workflow.java:365)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:104)

        at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:64)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:188)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)

        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)

        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)

        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2500)

        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2489)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Thread.java:745)

Caused by: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation proxy.sync

        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

        at org.apache.axis.client.Call.invoke(Call.java:2767)

        at org.apache.axis.client.Call.invoke(Call.java:2443)

        at org.apache.axis.client.Call.invoke(Call.java:2366)

        at org.apache.axis.client.Call.invoke(Call.java:1812)

        at org.enhydra.shark.ejb.client.ws.WAPIEJBEndpointPortSoapBindingStub.changeActivityInstanceState(Unknown Source)

        at org.cmdbuild.workflow.service.AbstractSharkService.advanceActivityInstance(AbstractSharkService.java:431)

        ... 61 more

DEBUG 2016-11-14 15:58:25 [cmdbuild] request received for '/services/json/workflow/getinstances'
INFO  2016-11-14 15:58:25 [jsonrpc ] Calling url /workflow/getinstances
INFO  2016-11-14 15:58:25 [jsonrpc ] adding condition '{"attribute":"FlowStatus","value":[1],"operator":"in"}' to actual filter '{}'

 

INFO  2016-11-14 15:58:25 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:25 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

INFO  2016-11-14 15:58:25 [cmdbuild] getting all-in-one 'interface org.cmdbuild.services.event.Observer'

WARN  2016-11-14 15:58:25 [sql     ] cannot get content of column 'Activity#FlowStatus#Description'

WARN  2016-11-14 15:58:25 [sql     ] cannot get content of column 'Activity#FlowStatus#Description'

DEBUG 2016-11-14 15:58:25 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:25 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:25 [cmdbuild] request received for '/javascripts/ext-4.2.0/resources/ext-theme-classic/images/shared/icon-error.gif'

DEBUG 2016-11-14 15:58:25 [cmdbuild] getting data for module 'cmdbuild'

DEBUG 2016-11-14 15:58:25 [cmdbuild] getting data for module 'cmdbuild'

 

Any help is greatly appriciated since i'm trying to solve this now for a number of weeks.

Previously Eric wrote:

Hello,
I had the process "ImportAsset" running before upgrading to CMDBuild 2.4, but didn't use it for a while.
Now, after upgrading, we would like to import again some data from OCS but it doesn't work anymore.

I manually emptied the tables "Activity", "ImportAsset" and "ImportAsset_historry", but stil the record is not added to CMDBuild.

A new run showed a new process record.
In the process menu i see the record "Activity Name: Inserimento Modifiche and Description: Creazione di un nuovo oggetto (DiskDrives: 1085996)" with status "Open".

The fields look fine:

 "Description: Creazione di un nuove oggetto (DiskDrives Code: 1085996)"
 "actionDetail: Inserimento di un nuovo oggetto: CMDBUILD"
                      Descrizione: DiskDrives: 1085996/dev/sdaD-OASSRVDisk54"

But the process doesn't continue and doesn't add the diskdrive?

- - - - - - - - - - - - - - -

Hello Tecnoteca,

I have checked all i could.  I checked the connection between the ExernalConnector and OCS, this works as we see the data from the view.  Also the connection to CMDBuild works as we see the data in the processes tab.  I checked with phpPgAdmin the database and i see records in the shark database which corresponds to the records in the cmdbuild database.

However, no record is inserted and the shark.log and cmdbuild.log show errors (see my info above).  I have read a long list of articles and search the internet, but no solution found.

I checked "actionList" in shark database, this looks fine.  I don't understand the error:
proxy.sync(actionList); terminated incorrectly: .........

Attribute actionList:

<?xml version="1.0" encoding="UTF-8"?>

<ExternalSync>
<cardList>
<DiskDrives key="Code">
<Code>1122156</Code>
<DiskName>/dev/sda</DiskName>
<Description/>
<DiskOwner>D-OASSRV</DiskOwner>
<Manufacturer/>
<Model/>
<Type>Disk</Type>
<FRUNumber/>
<DiskSize>54</DiskSize>
<SerialNumber/>
<Firmware/>
</DiskDrives>
</cardList>
<cardMaster>
<masterCardId>-1</masterCardId>
<masterClassName>DiskDrives</masterClassName>
</cardMaster>
<action>create</action>
</ExternalSync>

Also the message "A security error was encountered when verifying the message" is unclear to me.  What error, which message ?

So please advice on how to solve this, a not working workflow is a showstopper.

For your information i added the ExternalConnector files as well:

cmdbuild-schema.xml:

<?xml version="1.0"?>

<CMDBUILD>
        <DiskDrives>
                <Code />
                <DiskName />
                <Description />
                <DiskOwner />
                <Manufacturer />
                <Model />
                <Type />
                <FRUNumber />
                <DiskSize />
                <SerialNumber />
                <Firmware />
        </DiskDrives>
        <Servers>
                <Code />
        </Servers>
</CMDBUILD>

configuration.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
        <cmdbuild>
                <ServerAddress>aa.bb.cc.dd</ServerAddress>
                <ServerContext>cmdbuild</ServerContext>
                <ServerPort>8080</ServerPort>
                <Username>inventory</Username>
                <Password>inventory</Password>
        </cmdbuild>
        <inventory>
                <DbType>mysql</DbType>
                <DbAddress>aa.bb.cc.ee</DbAddress>
                <DbPort>3306</DbPort>
                <DbName>ocsweb</DbName>
                <DbUser>ocs</DbUser>
                <DbPassword>ocs</DbPassword>
        </inventory>
</configuration>
transform.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
        <xsl:template match="/">
                <CMDBUILD>
                        <xsl:apply-templates />
                </CMDBUILD>
        </xsl:template>
        <xsl:template match="*">
                <xsl:apply-templates />
        </xsl:template>
        <xsl:template match="text()"></xsl:template>
 
        <xsl:template match="/inventory/storage">
                <DiskDrives key="Code">
                        <Code>          <xsl:value-of select="./ID" />                          </Code>
                        <DiskName>      <xsl:value-of select="./NAME" />                        </DiskName>
                        <Description>   <xsl:value-of select="./DESCRIPTION" />                 </Description>
                        <DiskOwner>     <xsl:value-of select="./TAG" />                         </DiskOwner>
                        <Manufacturer>  <xsl:choose>
                                                <xsl:when test="contains(./MANUFACTURER, 'FRU')" >
                                                        <xsl:value-of select="substring-before(./MANUFACTURER, ',FRU')" />
                                                </xsl:when>
                                                <xsl:otherwise>
                                                        <xsl:value-of select="./MANUFACTURER" />
                                                </xsl:otherwise>
                                        </xsl:choose>                                           </Manufacturer>
                        <Model>         <xsl:choose>
                                                <xsl:when test="starts-with(./MODEL, '/')" >
                                                        <xsl:value-of select="substring(./MODEL, 5)" />
                                                </xsl:when>
                                                <xsl:otherwise>
                                                        <xsl:value-of select="./MODEL" />
                                                </xsl:otherwise>
                                        </xsl:choose>                                           </Model>
                        <Type>          <xsl:value-of select="./TYPE" />                        </Type>
                        <FRUNumber>     <xsl:if test="contains(./MANUFACTURER, 'FRU')" >
                                                <xsl:value-of select="substring-after(./MANUFACTURER, ':')" />
                                        </xsl:if>                                               </FRUNumber>
                        <DiskSize>      <xsl:value-of select="./DISKSIZE" />                    </DiskSize>
                        <SerialNumber>  <xsl:value-of select="./SERIALNUMBER" />                </SerialNumber>
                        <Firmware>      <xsl:value-of select="./FIRMWARE" />                    </Firmware>
                </DiskDrives>
        </xsl:template>
 
        <xsl:template match="/CMDBUILD/DiskDrives">
                <DiskDrives key="Code">
                        <Code>          <xsl:value-of select="./Code" />                        </Code>
                        <DiskName>      <xsl:value-of select="./DiskName" />                    </DiskName>
                        <Description>   <xsl:value-of select="./Description" />                 </Description>
                        <DiskOwner>     <xsl:value-of select="./DiskOwner" />                   </DiskOwner>
                        <Manufacturer>  <xsl:value-of select="./Manufacturer" />                </Manufacturer>
                        <Model>         <xsl:value-of select="./Model" />                       </Model>
                        <Type>          <xsl:value-of select="./Type" />                        </Type>
                        <FRUNumber>     <xsl:value-of select="./FRUNumber" />                   </FRUNumber>
                        <DiskSize>      <xsl:value-of select="./DiskSize" />                    </DiskSize>
                        <SerialNumber>  <xsl:value-of select="./SerialNumber" />                </SerialNumber>
                        <Firmware>      <xsl:value-of select="./Firmware" />                    </Firmware>
                </DiskDrives>
        </xsl:template>
 
        <xsl:template match="/CMDBUILD/Servers">
                <Servers domain="ServerDisk" domaindirection="directed" identifiers="Code">
                        <xsl:attribute name="objid">
                                <xsl:value-of select="./@objid" />
                        </xsl:attribute>
                        <Code>
                                <xsl:value-of select="./Code" />
                        </Code>
                </Servers>
        </xsl:template>
</xsl:stylesheet>
 
All help is greatly appriciated, so i hope to get an answer from you.
 

There is no response to these post. Has anyone resolved this error between OpenMaint and Shark? During a Call: services/json/workflow/saveactivity I got the same security error while verifying the message.

Any answer for this issue yet?