It's all about the answers!

Ask a question

Error importing process model - Invalid argument


Luiz Almeida (23014774) | asked Apr 15 '14, 11:08 a.m.
Hello,

See what it's happening:

I created a process model from a project area that I configured (RTC 4.0.3). When I import this model in the same instance os RTC, it works correctly. But if I try to import this process model in other instance of RTC, the following error occurs:



The log is the following:

!ENTRY com.ibm.team.process.ide.ui 4 0 2014-04-15 12:03:23.451
!MESSAGE Erro registrado em log a partir da UI do Cliente de Processo:
!STACK 0
com.ibm.team.repository.common.TeamRepositoryException: Invalid argument
    at com.ibm.team.process.internal.authoring.service.ProcessDefinitionImportParticipantService.importProcessDescription(ProcessDefinitionImportParticipantService.java:136)
    at com.ibm.team.process.internal.authoring.service.ProcessDefinitionImportParticipantService.importParticipantUncommitted(ProcessDefinitionImportParticipantService.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy3072.importParticipantUncommitted(null)
    at com.ibm.team.process.internal.service.ProcessDefinitionImportHelper$3.run(ProcessDefinitionImportHelper.java:308)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at com.ibm.team.process.internal.service.ProcessDefinitionImportHelper.saveParticipants(ProcessDefinitionImportHelper.java:306)
    at com.ibm.team.process.internal.service.ProcessDefinitionImportHelper.access$0(ProcessDefinitionImportHelper.java:292)
    at com.ibm.team.process.internal.service.ProcessDefinitionImportHelper$1.run(ProcessDefinitionImportHelper.java:186)
    at com.ibm.team.repository.service.internal.PrimitiveTransactionService$3.run(PrimitiveTransactionService.java:176)
    at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:497)
    at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$1.run(RepositoryDatabase.java:321)
    at com.ibm.team.repository.service.internal.rdb.ConnectionPoolService.withCurrentConnection(ConnectionPoolService.java:434)
    at sun.reflect.GeneratedMethodAccessor136.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy57.withCurrentConnection(null)
    at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runTransaction(RepositoryDatabase.java:317)
    at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runInTransaction(RepositoryDatabase.java:272)
    at com.ibm.team.repository.service.internal.PrimitiveTransactionService.runInTransaction(PrimitiveTransactionService.java:110)
    at com.ibm.team.repository.service.internal.PrimitiveTransactionService.runInTransaction(PrimitiveTransactionService.java:105)
    at sun.reflect.GeneratedMethodAccessor819.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy93.runInTransaction(null)
    at com.ibm.team.repository.service.internal.TransactionService.runInTransaction(TransactionService.java:37)
    at sun.reflect.GeneratedMethodAccessor828.invoke(null)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy171.runInTransaction(null)
    at com.ibm.team.process.internal.service.ProcessService.runInTransaction(ProcessService.java:4695)
    at com.ibm.team.process.internal.service.ProcessService.runInTransaction(ProcessService.java:4702)
    at com.ibm.team.process.internal.service.ProcessDefinitionImportHelper.saveProcessDefinitionImportWithParticipants(ProcessDefinitionImportHelper.java:182)
    at com.ibm.team.process.internal.service.ProcessService.saveProcessDefinitionImportWithParticipants(ProcessService.java:918)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at com.sun.proxy.$Proxy863.saveProcessDefinitionImportWithParticipants(null)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
    at java.lang.reflect.Method.invoke(Method.java:611)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleMethod(AbstractTeamServerServlet.java:1442)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.executeMethod(AbstractTeamServerServlet.java:981)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doPost(AbstractTeamServerServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:2358)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:2155)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.access$0(AbstractTeamServerServlet.java:2140)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet$1.service(AbstractTeamServerServlet.java:224)
    at com.ibm.team.repository.internal.service.auth.impl.JAuthHandler$1.run(JAuthHandler.java:109)
    at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1813)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
    at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:68)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate(BridgeFilter.java:139)
    at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(BridgeFilter.java:172)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:336)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:908)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:931)
    at java.lang.Thread.run(Thread.java:738)
    at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(Unknown Source)
    at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(Unknown Source)
    at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeFault(Unknown Source)
    at com.ibm.team.repository.transport.client.RemoteTeamService.constructExceptionFromFault(Unknown Source)
    at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(Unknown Source)
    at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(Unknown Source)
    at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(Unknown Source)
    at com.sun.proxy.$Proxy36.saveProcessDefinitionImportWithParticipants(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(Unknown Source)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(Unknown Source)
    at com.sun.proxy.$Proxy36.saveProcessDefinitionImportWithParticipants(Unknown Source)
    at com.ibm.team.process.internal.client.ProcessClientService$2.run(Unknown Source)
    at com.ibm.team.repository.client.internal.TeamRepository$3.run(Unknown Source)
    at com.ibm.team.repository.common.transport.CancelableCaller.call(Unknown Source)
    at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(Unknown Source)
    at com.ibm.team.process.internal.client.ProcessClientService.importProcessDefinitionZip(Unknown Source)
    at com.ibm.team.process.internal.ide.ui.wizards.ImportProcessDefinitionWizard.importDefinition(Unknown Source)
    at com.ibm.team.process.internal.ide.ui.wizards.ImportProcessDefinitionWizard.doFinish(Unknown Source)
    at com.ibm.team.process.internal.ide.ui.wizards.AbstractProcessWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(Unknown Source)
Caused by: java.lang.Exception: <A exceção remota era do tipo 'com.ibm.team.process.internal.authoring.common.utils.ProcessAuthoringException'>
Invalid argument
    at com.ibm.team.process.internal.authoring.service.utils.TemplateProcessDescriptionHelper.doImportProcessDescription(TemplateProcessDescriptionHelper.java:559)
    at com.ibm.team.process.internal.authoring.service.ProcessDefinitionImportParticipantService.importProcessDescription(ProcessDefinitionImportParticipantService.java:127)
    ... 123 more
Caused by: java.io.IOException: Invalid argument
    at java.io.File.getCanonicalPath(File.java:570)
    at com.ibm.team.process.internal.authoring.common.utils.FileUtil.unzip(FileUtil.java:145)
    at com.ibm.team.process.internal.authoring.service.utils.Importer.extractZipFile(Importer.java:1188)
    at com.ibm.team.process.internal.authoring.service.utils.TemplateProcessDescriptionHelper.doImportProcessDescription(TemplateProcessDescriptionHelper.java:551)
    ... 124 more


Please, help!


Comments
Jared Burns commented Apr 16 '14, 9:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The bottom of the stack trace indicates a problem with the archive. Did you export the process template zip file using RTC? Or did you create the zip manually? 


Luiz Almeida commented Apr 16 '14, 11:59 a.m.

Jared, I used the RTC to export the zip file. It does not matter if I use RTC web or client (eclipse) to exporte, the problem is the same.
I generated the model once and could be imported into another instance of RTC. Then I made ​​some changes in the project area, I exported the model again and then could no longer import. It makes me think that the problem may be in the setting of project area, but I can not figure out what it is.

2 answers



permanent link
Ralph Schoon (60.5k33643) | answered Apr 15 '14, 11:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Not sure, not a language I speak, but.....

As far as I can tell, you can use templates only with the version of RTC that you have created them with. If you want to use the template in a never version, you would have to import it into a server on that level, upgrade the server to the target version and create a new template. The template is brought to the new version in the process. I am not sure if there are ways to do it otherwise.

Maybe this is the problem?

Comments
Luiz Almeida commented Apr 15 '14, 12:33 p.m.

Thanks, Ralf, but both instances of RTC are the same version...4.0.3.


permanent link
Luiz Almeida (23014774) | answered Apr 16 '14, 4:14 p.m.
Hi all,

I solved the problem. I just edited the description of the process of the project area that I had created, I made some simple changes and then I exported the model process again. With the new zip file I did the import on another RTC and worked properly.

Your answer


Register or to post your answer.