CMDBuild Forum

OCS external connector.

Hello,

 

I really need help about this, is someone on the forum with the solution of this issue ?

 

java.util.NoSuchElementException

 

Thanks

Please modify the connector log4j.conf adding the property log4j.logger.xml=DEBUG at the end of the file.
Modify also your log4j.conf inside cmdbuild configuration (for example: /opt/apache-tomcat/webapps/cmdbuild/WEB-INF/conf/log4j.conf) putting the property for soap to DEBUG
 
Wait a minute that cmdbuild reloads the log configuration and then re-execute the connector.
Then show us the log of the connector, cmdbuild, shark. 
 
Thanks.
 
 

Hello,

 

Firstly, thanks for your help.

 

Please find the following logs : http://www.mediafire.com/download/2bux4h4binc302i/log.zip

 

Regards

 

CJARDIN

Hi, If needed i can give me logs.

 

BR

Could you please create a new group, called Inventory, associate a user named as you prefer to this group, and use it to run the connector?
Please note that the group Inventory shoudn't be an administrator, and that should have write privileges on ImportOCS class and other classes involved in the synchronization process.
 
Regards,
Tecnoteca
 
Previously CJARDIN wrote:

Hi, If needed i can give me logs.

 

BR

 

Hello,

One new group "Inventory" has been created. "workflow" user has been associate to this group.

"workflow" user default group is : "Inventory"

States for the user and the group are active.

Group type is "Normal"
The group has write permission on ImportOCS

We still have no entries in the cmdbuild interface.

Here is a zip with new logs : http://www.mediafire.com/?ge6jd6zmm1d616q 

I hope it will usefull to find a solution.

BR

CJARDIN

 

Please don't use the user workflow. "workflow" is a system user, and probably with your modify now has two groups, without the default, and this is wrong and coud cause problems!  Create a new user, connected to just on group: Inventory.
 
Best regards.
 
Hello,
 
A new user "exp_infra" has been created . It's the only user of "Inventory" group.
 
I have also modificated the xpdl file : 
 
<xpdl:DataField Id="cm_username" IsArray="false">
                    <xpdl:DataType>
                        <xpdl:BasicType Type="STRING"/>
                    </xpdl:DataType>
                    <xpdl:InitialValue>exp_infra</xpdl:InitialValue>
                </xpdl:DataField>
                <xpdl:DataField Id="cm_password" IsArray="false">
                    <xpdl:DataType>
                        <xpdl:BasicType Type="STRING"/>
                    </xpdl:DataType>
                    <xpdl:InitialValue>password</xpdl:InitialValue>
                </xpdl:DataField>
 
 
And the configuration file in the connector folder : 
 
<ServerAddress>127.0.0.1</ServerAddress>
    <ServerContext>cmdbuild</ServerContext>
    <ServerPort>8080</ServerPort>
    <Username>exp_infra</Username>
    <Password>password</Password>
 
 
It still not resolve the issue.
 
BR
 

Hi,

 

For informations, my replies on the forum seems not displayed if i'm logged on the forum.

Sometimes your forum ask me to be logged to post, sometimes it don't ask.

 

BR

 

Can you post me your new logs?

Regards.
Lisa

Hello,

 

Sure : http://www.mediafire.com/download/3gj5lh8zgbrf45a/log_conf_2013_08_06.zip

 

NB : user has been deleted and recreated without underscore on the name to simplify.

 

BR

 

Previously Tecnoteca wrote:
Can you post me your new logs?
Regards.
Lisa

 

- Do we need to unzip cmdbuild-2.1.4/extras/cmdbuild-distribution-shark-overlay-2.1.4.zip in tomcat/webapps/shark/  ??? (many files/folder are included but we don't know their utility)

 

- Do we need to create manually Class list before use the ocs connector ? or Are the class created during the import (java -jar ExternalConnector.1.4.0.jar . ImportOCS) ?

 

- Have you got one operationnal xpdl + a connector config OR a well installed vm (with connector) to share with us  ? (including basic informations of ocsinventory)

 

BR

Hi,
- You need to have sharked installed, the overlay is needed just when someone has already it's own shark and wants to extend it to use cmdbuild's workflow.
- The connector just synchronize data, not classes. The class structure (classes, domains, processes) must be present.
- The configuration included in the connector zip is a working example... 
 
 
Previously CJARDIN wrote:

- Do we need to unzip cmdbuild-2.1.4/extras/cmdbuild-distribution-shark-overlay-2.1.4.zip in tomcat/webapps/shark/  ??? (many files/folder are included but we don't know their utility)

 

- Do we need to create manually Class list before use the ocs connector ? or Are the class created during the import (java -jar ExternalConnector.1.4.0.jar . ImportOCS) ?

 

- Have you got one operationnal xpdl + a connector config OR a well installed vm (with connector) to share with us  ? (including basic informations of ocsinventory)

 

BR

 

Hello,
 
Thanks for your support.
 
Shark is installed (we use your shark-cmdbuild-2.1.4.zip)
 
/tomcat/webapps/shark/conf/Shark.conf is modificated as asked in the README.txt =>
org.cmdbuild.ws.url=http://localhost:8080/cmdbuild/
org.cmdbuild.ws.username=expinfra
org.cmdbuild.ws.password=password
 
/prod_infra/soft/tomcat/webapps/shark/META-INF/context.xml =>
url="jdbc:postgresql://localhost/cmdbuilddb"
 
 
I have manualy created a new class list called "Computer" with 4 Attributes "Code" "Description" "SO" and "RAM"
 
Processes "ImportOCS" has been deleted and re-created, There is one new error when process is saved : 
"Error: org.cmdbuild.workflow.CMWorkflowException: The AXIS engine could not find a target service to invoke! targetService is WAPI"
....
"Caused by: The AXIS engine could not find a target service to invoke! targetService is WAPI"

Connect to  http://myserver:8080/shark/WAPI?wsdl result in "AXIS error - Could not generate WSDL! - There is no SOAP service at this location"
 

I hope it will talk to you ?!

 
BR

So for readers, if you got this message, you will need to reinstall shark ! it solved that issue.

 

BR

Maybe to late, but you have changed the cm_url, cm_user, cm_password

in your xpld?