org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

mort.motes
I have setup some maven3/tycho MANIFEST first projects on hudson which until recently have build just fine. But all projects suddenly throws the exception:


mavenExecutionResult exceptions not empty
org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
        at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
        at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:270)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Invalid portable string: 20
        at org.sonatype.tycho.p2.repository.GAV.nextColonIndex(GAV.java:108)
        at org.sonatype.tycho.p2.repository.GAV.parse(GAV.java:84)
        at org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex.read(DefaultTychoRepositoryIndex.java:55)
        at org.sonatype.tycho.p2.repository.LocalTychoRepositoryIndex.<init>(LocalTychoRepositoryIndex.java:26)
        at org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.setLocalRepositoryLocation(P2ResolverImpl.java:657)
        at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:196)
        at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:151)
        at org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:86)
        at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 19 more


I have tried to run it with -X -e but this does not give any details on the exception. Any ideas why the builds on hudson suddenly fails (have tried to build them locally which does not give any error) using tycho 0.11.0-SNAPSHOT?
Reply | Threaded
Open this post in threaded view
|

RE: org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

Sievers, Jan
looks like a corrupted tycho local repo index.

Try removing ${user.home}/.m2/repository/.meta/

This may be caused by several concurrent build jobs on hudson sharing the same local maven repo [1].

In this case make sure all concurrent jobs have a separate maven local repo.

Regards,
Jan

[1] http://jira.codehaus.org/browse/MNG-2802 

-----Original Message-----
From: mort.motes [mailto:[hidden email]]
Sent: Freitag, 11. März 2011 12:58
To: [hidden email]
Subject: [Tycho Users] org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

I have setup some maven3/tycho MANIFEST first projects on hudson which until
recently have build just fine. But all projects suddenly throws the
exception:


mavenExecutionResult exceptions not empty
org.apache.maven.InternalErrorException: Internal error:
java.lang.IllegalArgumentException: Invalid portable string: 20
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
        at
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
        at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)
        at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:270)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Invalid portable string: 20
        at org.sonatype.tycho.p2.repository.GAV.nextColonIndex(GAV.java:108)
        at org.sonatype.tycho.p2.repository.GAV.parse(GAV.java:84)
        at
org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex.read(DefaultTychoRepositoryIndex.java:55)
        at
org.sonatype.tycho.p2.repository.LocalTychoRepositoryIndex.(LocalTychoRepositoryIndex.java:26)
        at
org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.setLocalRepositoryLocation(P2ResolverImpl.java:657)
        at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:196)
        at
org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:151)
        at
org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:86)
        at
org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        ... 19 more


I have tried to run it with -X -e but this does not give any details on the
exception. Any ideas why the builds on hudson suddenly fails (have tried to
build them locally which does not give any error) using tycho
0.11.0-SNAPSHOT?

--
View this message in context: http://software.2206966.n2.nabble.com/org-apache-maven-InternalErrorException-Internal-error-java-lang-IllegalArgumentException-Invalid-po0-tp6161154p6161154.html
Sent from the Tycho Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

RE: org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

mort.motes
wiping m2/.meta solved the problem - so far thanks! Do you know where I can find info on setting up a separate maven repo for each job - could not find anything about this on the hudson configure job page?
Reply | Threaded
Open this post in threaded view
|

RE: org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

Sievers, Jan
IIRC there is a checkbox "use private maven repo" somewhere in the maven configuration section of the hudson job.

Jan

-----Original Message-----
From: mort.motes [mailto:[hidden email]]
Sent: Freitag, 11. März 2011 13:50
To: [hidden email]
Subject: [Tycho Users] RE: org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

wiping m2/.meta solved the problem - so far thanks! Do you know where I can
find info on setting up a separate maven repo for each job - could not find
anything about this on the hudson configure job page?

--
View this message in context: http://software.2206966.n2.nabble.com/org-apache-maven-InternalErrorException-Internal-error-java-lang-IllegalArgumentException-Invalid-po0-tp6161154p6161315.html
Sent from the Tycho Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

RE: org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Invalid portable string: 20

mort.motes
Ah of course thanks!