Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] EMF.Edit: URI has an authority component

That what I was looking opening a local file with Chrome and the URI has only three leading / and not 4. Can you try with 3 ?

Jeff

On Tue, Apr 28, 2015 at 2:04 PM, Dirk Fauth <dirk.fauth@xxxxxxxxx> wrote:
Could it be an issue with the file URI? I recently learned that there is an issue regarding the number of slashes after "file:" and that you should use three slashes so it works on Linux and Windows. 

On Tue, Apr 28, 2015 at 1:58 PM, BERNARD, Alain <alain.bernard@xxxxxxxxxx> wrote:

Please find attached the TP file. Due to company proxy we work with mirrors of Eclipse repositories but the packaging of our product, except the plugins using emf.edit units, works properly.

 

Alain

 

De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Jeff MAURY
Envoyé : mardi 28 avril 2015 13:27
À : Tycho user list
Objet : Re: [tycho-user] EMF.Edit: URI has an authority component

 

The pb is that Tycho tries to create a java.io.File object from an URI but that URI has a hostname which is not allowed. Would it be possible to check your target platform ?

 

Jeff

 

On Tue, Apr 28, 2015 at 11:58 AM, BERNARD, Alain <alain.bernard@xxxxxxxxxx> wrote:

Here is the full stack trace with debug log option, but if I understand well the trace, it seems the URI with the problem is not displayed:

 

[INFO] Computing target platform for MavenProject: my_group:com.my_plugin.edit:0.0.1-SNAPSHOT @ C:\Users\TO106014\Documents\Eclipse\LunaWS\com.my_plugin.edit\pom.xml

[DEBUG] Using execution environment 'JavaSE-1.6' configured in Bundle-RequiredExecutionEnvironment

[DEBUG] Adding target definition file "C:\Users\TO106014\Documents\Eclipse\LunaWS\com.my_group.targetplatform\com.my_group.releng.targetplatform.target"

[DEBUG] Added 757 units, the content of the target definition file, to the target platform

[DEBUG] Registered artifact repository org.eclipse.tycho.repository.registry.facade.RepositoryBlackboardKey(uri=file:/resolution-context-artifacts@C:%5CUsers%5CTO106014%5CDocuments%5CEclipse%5CLunaWS%5Ccom.my_plugin.edit)

[DEBUG] Added 152 locally built units to the target platform

[INFO] Resolving dependencies of MavenProject: my_group:com.my_plugin.edit:0.0.1-SNAPSHOT @ C:\Users\TO106014\Documents\Eclipse\LunaWS\com.my_plugin.edit\pom.xml

[ERROR] Internal error: java.lang.IllegalArgumentException: URI has an authority component -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: URI has an authority component

       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)

       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)

       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)

       at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)

       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:483)

       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

       at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

       at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: java.lang.IllegalArgumentException: URI has an authority component

       at java.io.File.<init>(File.java:423)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:666)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:590)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:724)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromOneMirror(RepositoryArtifactProvider.java:209)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyMirror(RepositoryArtifactProvider.java:192)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.access$1(RepositoryArtifactProvider.java:187)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider$1.perform(RepositoryArtifactProvider.java:167)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:708)

       at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifacts(SimpleArtifactRepository.java:779)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyChildRepository(RepositoryArtifactProvider.java:179)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnyFormatAvailableInRepository(RepositoryArtifactProvider.java:149)

       at org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider.getArtifactFromAnySource(RepositoryArtifactProvider.java:135)

       at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl.getArtifact(CompositeArtifactProviderBaseImpl.java:50)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadCanonicalArtifact(MirroringArtifactProvider.java:236)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadMostSpecificNeededFormatOfArtifact(MirroringArtifactProvider.java:229)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.downloadArtifact(MirroringArtifactProvider.java:214)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeOneFormatLocallyAvailable(MirroringArtifactProvider.java:203)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.makeLocallyAvailable(MirroringArtifactProvider.java:174)

       at org.eclipse.tycho.repository.local.MirroringArtifactProvider.getArtifactFile(MirroringArtifactProvider.java:118)

       at org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider.getArtifactFile(CompositeArtifactProvider.java:70)

       at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.getLocalArtifactFile(TargetPlatformBaseImpl.java:93)

       at org.eclipse.tycho.p2.resolver.P2ResolverImpl.addUnit(P2ResolverImpl.java:217)

       at org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult(P2ResolverImpl.java:180)

       at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:172)

       at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:103)

       at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies(P2DependencyResolver.java:352)

       at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies(P2DependencyResolver.java:325)

       at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:107)

       at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)

       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)

       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)

       ... 11 more

[ERROR]

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

 

Alain

 

 

De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de Jeff MAURY
Envoyé : mardi 28 avril 2015 11:28
À : Tycho user list
Objet : Re: [tycho-user] EMF.Edit: URI has an authority component

 

Can you show the stack trace.The authority component of an URI is the hostname (plus optinal port). So we need to understand where the exception come from

 

Jeff

 

On Tue, Apr 28, 2015 at 11:22 AM, BERNARD, Alain <alain.bernard@xxxxxxxxxx> wrote:

Hi all,

 

I have a problem during my Tycho build, only on plugins that depends on org.eclipse.emf.edit bundle.

 

The Maven message is:

[INFO] Resolving dependencies of MavenProject: my_group:com.myplugin.edit:0.0.1-SNAPSHOT @ C:\Users\LunaWS\com.myplugin.edit\pom.xml

[ERROR] Internal error: java.lang.IllegalArgumentException: URI has an authority component -> [Help 1]

org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: URI has an authority component

+ the stack trace

 

I don’t understand the error message and I cannot find if there is, for example, a missing dependency. All base EMF bundles are in my target platform (o.e.emf.edit.ui, o.e.emf.validation, o.e.emf.databinding.*, o.e.emf.edit, o.e.emf.transaction,…).

 

Has anyone already encountered the same problem? What does the error message mean and what can I try to find the root cause?

 

Thanks in advance,

Alain

 

 
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
 
 
 


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



 

--

Jeff MAURY

Image supprimée par l'expéditeur.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

 
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
 
 
 


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



 

--

Jeff MAURY

Image supprimée par l'expéditeur.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top