axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4676) mvn eclipse:eclipse StringIndexOutOfBoundsException
Date Mon, 12 Apr 2010 15:48:42 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856034#action_12856034
] 

Andreas Veithen commented on AXIS2-4676:
----------------------------------------

I recently added some instructions explaining how to successfully import the Axis2 project
into Eclipse:

http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/documentation/xdocs/svn.xml

Can you please check if following these instructions solves the issue.

> mvn eclipse:eclipse StringIndexOutOfBoundsException
> ---------------------------------------------------
>
>                 Key: AXIS2-4676
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4676
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>         Environment: Apache Maven 2.0.11 (r909250; 2010-02-12 05:55:50+0000)
> Java version: 1.6.0_16
> Java home: C:\Program Files\Java\jdk1.6.0_16\jre
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Katherine Sanders
>            Priority: Minor
>
> The following error occurs when building the axis2-mar-maven-plugin and axis2-aar-maven-plugin
modules:
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Axis2 - tool - MAR Maven Plugin
> [INFO]    task-segment: [eclipse:eclipse]
> [INFO] ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> [INFO] [plugin:descriptor]
> [INFO] Using 'UTF-8' encoding to read mojo metadata.
> [INFO] Applying mojo extractor for language: java
> [WARNING] org.apache.axis2.maven2.mar.MarMojo#jarArchiver:
> [WARNING]   The syntax
> [WARNING]     @parameter expression="${component.<role>#<roleHint>}"
> [WARNING]   is deprecated, please use
> [WARNING]     @component role="<role>" roleHint="<roleHint>"
> [WARNING]   instead.
> [INFO] Mojo extractor for language: java found 3 mojo descriptors.
> [INFO] Applying mojo extractor for language: bsh
> [INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [eclipse:eclipse]
> [INFO] Using Eclipse Workspace: null
> [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] String index out of range: -36
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.StringIndexOutOfBoundsException: String index out of range: -36
>         at java.lang.String.substring(String.java:1937)
>         at java.lang.String.substring(String.java:1904)
>         at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>         at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>         at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
>         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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Mon Apr 12 16:06:25 BST 2010
> [INFO] Final Memory: 20M/37M
> [INFO] ------------------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Axis2 - tool - AAR Maven Plugin
> [INFO]    task-segment: [eclipse:eclipse]
> [INFO] ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> [INFO] [plugin:descriptor]
> [INFO] Using 'UTF-8' encoding to read mojo metadata.
> [INFO] Applying mojo extractor for language: java
> [WARNING] org.apache.axis2.maven2.aar.AarMojo#jarArchiver:
> [WARNING]   The syntax
> [WARNING]     @parameter expression="${component.<role>#<roleHint>}"
> [WARNING]   is deprecated, please use
> [WARNING]     @component role="<role>" roleHint="<roleHint>"
> [WARNING]   instead.
> [INFO] Mojo extractor for language: java found 4 mojo descriptors.
> [INFO] Applying mojo extractor for language: bsh
> [INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [eclipse:eclipse]
> [INFO] Using Eclipse Workspace: null
> [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] String index out of range: -36
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.StringIndexOutOfBoundsException: String index out of range: -36
>         at java.lang.String.substring(String.java:1937)
>         at java.lang.String.substring(String.java:1904)
>         at org.apache.maven.plugin.eclipse.writers.EclipseSettingsWriter.write(EclipseSettingsWriter.java:111)
>         at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1113)
>         at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:345)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:132)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:290)
>         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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 minute
> [INFO] Finished at: Mon Apr 12 16:09:15 BST 2010
> [INFO] Final Memory: 36M/63M
> [INFO] ------------------------------------------------------------------------
> If you take those projects out of the top level pom.xml file, mvn eclipse:eclipse succeeds
for the other modules.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message