Forum Discussion

chriscropley's avatar
chriscropley
Occasional Contributor
8 years ago

maven-compiler-plugin:3.1:compile java.nio.file.InvalidPathException: Illegal char <*> at index 99

I have followed this https://support.smartbear.com/readyapi/docs/testing/integrations/ci-systems/maven/working.html help file to integrate Ready-Api to Maven.

 

I am using Ready-API 2.1 and Maven 3.5.  When I execute this command "mvn clean test" it downloads all of the dependencies and eventually fails with this error...

 

 

[INFO] --- maven-compiler-plugin:3.7:compile (default-compile) @ b2bresponder ---
Nov 23, 2017 6:54:12 PM com.google.inject.internal.MessageProcessor visit
INFO: An exception was caught and reported. Message: java.nio.file.InvalidPathException: Illegal char <*> at index 99: C:\Users\chris.cropley\.m2\repository\com\smartbear\utils\analytics\out-app-analytics-provider\lib\*.jar
java.nio.file.InvalidPathException: Illegal char <*> at index 99: C:\Users\chris.cropley\.m2\repository\com\smartbear\utils\analytics\out-app-analytics-provider\lib\*.jar
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.io.File.toPath(File.java:2300)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:951)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:216)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:148)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:324)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:295)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:261)
at org.eclipse.sisu.space.URLClassSpace.getClassPathEntries(URLClassSpace.java:374)
at org.eclipse.sisu.space.URLClassSpace.expandClassPath(URLClassSpace.java:301)
at org.eclipse.sisu.space.URLClassSpace.getClassPath(URLClassSpace.java:235)
at org.eclipse.sisu.space.URLClassSpace.findEntries(URLClassSpace.java:182)
at org.eclipse.sisu.plexus.PlexusXmlScanner.scan(PlexusXmlScanner.java:89)
at org.eclipse.sisu.plexus.PlexusXmlBeanModule.configure(PlexusXmlBeanModule.java:88)
at org.eclipse.sisu.plexus.PlexusBindingModule.configure(PlexusBindingModule.java:63)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.spi.Elements.getElements(Elements.java:101)
at org.eclipse.sisu.wire.WireModule.configure(WireModule.java:75)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:96)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:460)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.discoverPluginComponents(DefaultMavenPluginManager.java:435)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:414)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:374)
at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:231)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:102)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
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)

[WARNING] ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@504bae78]
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) An exception was caught and reported. Message: Illegal char <*> at index 99: C:\Users\chris.cropley\.m2\repository\com\smartbear\utils\analytics\out-app-analytics-provider\lib\*.jar
at org.eclipse.sisu.wire.WireModule.configure(WireModule.java:75)

 

A copy of my POM is as follows:

 

<build>
<plugins>
<plugin>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-maven-plugin</artifactId>
<version>2.1.0</version>
<executions>
<execution>
<configuration>
<testSuite>CATS</testSuite>
<testCase>6800ReqOnly</testCase>
<projectFile>C:\Users\chris.cropley\Documents\SELENIUM\projects\b2bresponder\src\test\resources\Bravo-readyapi-project.xml</projectFile>
</configuration>
<goals>
<!--Do not change. Commands the Maven plugin to run a functional test.-->
<goal>test</goal>
</goals>
</execution>
</executions>

<configuration>
<projectFile>C:\Users\chris.cropley\Documents\SELENIUM\projects\b2bresponder\src\test\resources\Bravo-readyapi-project.xml</projectFile>
<testSuite>CATS</testSuite>
<testCase>6800ReqOnly</testCase>
<readyApiProperties>
<property>
<name>soapui.home</name>
<value>C:\Program Files\SmartBear\ReadyAPI-2.1.0\bin</value>
</property>
</readyApiProperties>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.9</source>
<target>1.9</target>
</configuration>
<dependencies>

<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui</artifactId>
<version>5.3.0</version>
</dependency>

<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro</artifactId>
<version>5.1.2</version>
</dependency>

<dependency>
<groupId>com.smartbear</groupId>
<artifactId>ready-api-runners</artifactId>
<version>2.1.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/au.com.bytecode/opencsv -->
<dependency>
<groupId>au.com.bytecode</groupId>
<artifactId>opencsv</artifactId>
<version>2.4</version>
</dependency>

<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.7.0.13</version>
<scope>system</scope>
<systemPath>${env.JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>

</dependencies>
</plugin>
</build>

Does anyone have any idea what might be causing this?  I am searching high and wide for an answer online with no luck.

 

Any help or pointers would be appreciated.

 

Thanks,

 

Chris

  • I ran into the same problem with SoapUI 5.1.1 on Maven 3.5.3 and JDK 9.0.4 but not on JDK 8u162!

     

    I traced the problem back to the Class-Path entry in MANIFEST.MF of  com.smartbear.utils.analytics: out-app-analytics-provider:5.1.0:

     

    Manifest-Version: 1.0
    Built-By: jenkins
    Build-Jdk: 1.7.0_55
    Class-Path: ../lib/*.jar ../lib/analytics-core-5.1.0.jar ../lib/log4j-
     1.2.14.jar
    Created-By: Apache Maven 3.1.1
    Main-Class: TrackOutAppAction
    Archiver-Version: Plexus Archiver

    The problem vanished as soon as I excluded com.smartbear.utils.analytics:* from com.smartbear.soapui:soapui.

     

    It seems this entry was never really valid and there was a change in JDK 9 which now leads to an exception.

     

    PS: The latest version 5.4.0 of out-app-analytics-provider still has the same (invalid) entry.