You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Richard Murray (JIRA)" <ji...@apache.org> on 2012/07/19 15:48:35 UTC

[jira] [Created] (IVYDE-315) using latest.integration fails using ssh resolver with StringIndexOutOfBoundsException

Richard Murray created IVYDE-315:
------------------------------------

             Summary: using latest.integration fails using ssh resolver with StringIndexOutOfBoundsException
                 Key: IVYDE-315
                 URL: https://issues.apache.org/jira/browse/IVYDE-315
             Project: IvyDE
          Issue Type: Bug
          Components: workspace resolver
    Affects Versions: 2.2.0.beta1
         Environment: Windows 7 client and Solaris server
            Reporter: Richard Murray


Using a dynamic dependency like 'latest.integration' fails when using an ssh resolver.  A StringIndexOutOfBoundsException is reported in the console log.  This works using sftp but always fails with ssh.  See my ivy.xml, ivysettings.xml and console output below.

ivy.xml

<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info organisation="ois" module="TestIvyDe" status="integration"/>

	<dependencies>		
		<dependency org="ois" name="exception" rev="latest.integration" conf="default"/>		
	</dependencies>
		
</ivy-module>

ivysettings.xml

<ivysettings>
	<settings defaultResolver="ois-ivy-repo"/>
	
	<!-- specify the cache location relative to the ivysettings.xml file as the Eclipse IvyDE plugin has 
	     problems when the same cache is referenced by different workspaces, this ensures a different cache
	     is referenced in each workspace --> 	     
	<caches defaultCacheDir="${ivy.settings.dir}/.ivy2/cache"/>
	
	<resolvers>			
	 	<ssh name="ois-ivy-repo" user="orchard" userPassword="charlotte" host="junior">  			  		
	  		<ivy pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/ivys/ivy-[revision].xml"/>
	  		<artifact pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
	  		<artifact pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"/>
		</ssh>	 			
	</resolvers>
</ivysettings>



IvyDE console output:

problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/ivys with ois-ivy-repo:

	  java.lang.StringIndexOutOfBoundsException String index out of range: -32

	problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/jars with ois-ivy-repo:

	  java.lang.StringIndexOutOfBoundsException String index out of range: -23

	problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/jars with ois-ivy-repo:

	  java.lang.StringIndexOutOfBoundsException String index out of range: -23

		module not found: ois#exception;latest.integration

	==== ois-ivy-repo: tried

	  /uwm/ois-ivy-repo/trunk/ois/exception/ivys/ivy-[revision].xml

	  -- artifact ois#exception;latest.integration!exception.jar:

	  /uwm/ois-ivy-repo/trunk/ois/exception/jars/exception-[revision].jar

	  /uwm/ois-ivy-repo/trunk/ois/exception/jars/exception-[revision].jar

		::::::::::::::::::::::::::::::::::::::::::::::

		::          UNRESOLVED DEPENDENCIES         ::

		::::::::::::::::::::::::::::::::::::::::::::::

		:: ois#exception;latest.integration: not found

		::::::::::::::::::::::::::::::::::::::::::::::

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