org.apache.maven.lifecycle.LifecycleExecutionException: Transfer failed

Spring JIRA | Marc | 6 years ago
  1. 0

    (sorry but is there a better place for bugs in org.springframework.build.aws.maven?) The plugin fails when a file is put on the root (= path is empty), see below. This happens when e.g. maven-bundle-plugin from apache felix updates the repository.xml. Just fix SimpleStorageServiceWagon.getDestinationPath() (sorry, I have no git client on this machine): private String getDestinationPath(String destination) { int index = destination.lastIndexOf('/'); if (index != -1) { return destination.substring(0, index); } else { return ""; } } [INFO] LOCK s3://myawsbucket/release/repository.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Transfer failed Embedded error: Transfer of resource repository.xml.lockfailed String index out of range: -1 [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Transfer failed at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Transfer failed at org.apache.felix.obrplugin.RemoteFileManager.put(RemoteFileManager.java:220) at org.apache.felix.obrplugin.RemoteFileManager.lockFile(RemoteFileManager.java:294) at org.apache.felix.obrplugin.ObrDeploy.execute(ObrDeploy.java:214) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.wagon.TransferFailedException: Transfer of resource repository.xml.lockfailed at org.springframework.aws.maven.AbstractWagon.put(AbstractWagon.java:277) at org.apache.felix.obrplugin.RemoteFileManager.put(RemoteFileManager.java:216) ... 21 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at org.springframework.aws.maven.SimpleStorageServiceWagon.getDestinationPath(SimpleStorageServiceWagon.java:191) at org.springframework.aws.maven.SimpleStorageServiceWagon.putResource(SimpleStorageServiceWagon.java:150) at org.springframework.aws.maven.AbstractWagon.put(AbstractWagon.java:262) ... 22 more

    Spring JIRA | 6 years ago | Marc
    org.apache.maven.lifecycle.LifecycleExecutionException: Transfer failed
  2. 0

    (sorry but is there a better place for bugs in org.springframework.build.aws.maven?) The plugin fails when a file is put on the root (= path is empty), see below. This happens when e.g. maven-bundle-plugin from apache felix updates the repository.xml. Just fix SimpleStorageServiceWagon.getDestinationPath() (sorry, I have no git client on this machine): private String getDestinationPath(String destination) { int index = destination.lastIndexOf('/'); if (index != -1) { return destination.substring(0, index); } else { return ""; } } [INFO] LOCK s3://myawsbucket/release/repository.xml [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Transfer failed Embedded error: Transfer of resource repository.xml.lockfailed String index out of range: -1 [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Transfer failed at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Transfer failed at org.apache.felix.obrplugin.RemoteFileManager.put(RemoteFileManager.java:220) at org.apache.felix.obrplugin.RemoteFileManager.lockFile(RemoteFileManager.java:294) at org.apache.felix.obrplugin.ObrDeploy.execute(ObrDeploy.java:214) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.wagon.TransferFailedException: Transfer of resource repository.xml.lockfailed at org.springframework.aws.maven.AbstractWagon.put(AbstractWagon.java:277) at org.apache.felix.obrplugin.RemoteFileManager.put(RemoteFileManager.java:216) ... 21 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at org.springframework.aws.maven.SimpleStorageServiceWagon.getDestinationPath(SimpleStorageServiceWagon.java:191) at org.springframework.aws.maven.SimpleStorageServiceWagon.putResource(SimpleStorageServiceWagon.java:150) at org.springframework.aws.maven.AbstractWagon.put(AbstractWagon.java:262) ... 22 more

    Spring JIRA | 6 years ago | Marc
    org.apache.maven.lifecycle.LifecycleExecutionException: Transfer failed
  3. 0

    Steps to reproduce : # Add a DBList property ('propName') to class X # Make sure 'Use suggest' is checked # Make sure 'Display Type' is set on 'input' # Add the following query : {code} select doc.fullName,doc.title from XWikiDocument as doc {code} # Save the class # Create a sheet for class X and display the property : {code} $doc.display('propName') {code} # Add an object of type X to document Y # Edit document Y (in inline mode) The result is empty, but there is the following error in logs : {code} WARN c.x.x.d.XWikiDocument - Failed to display field [propName] in [edit] mode for Object of Class [xwiki:Main.Y] java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) ~[na:1.6.0_37] at com.xpn.xwiki.objects.classes.DBListClass.getValue(DBListClass.java:448) ~[xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.objects.classes.DBListClass.displayEdit(DBListClass.java:513) ~[xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2810) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2749) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2698) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2675) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:2648) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.Document.display(Document.java:1407) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_37] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_37] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124) [xwiki-platform-rendering-macro-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50) [xwiki-platform-rendering-macro-velocity-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:302) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:198) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:59) [xwiki-platform-rendering-macro-script-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:185) [xwiki-rendering-transformation-macro-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132) [xwiki-rendering-transformation-macro-4.5-milestone-1.jar:na] at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:87) [xwiki-rendering-legacy-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:250) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:54) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:80) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:253) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:212) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50) [xwiki-platform-sheet-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41) [xwiki-platform-display-api-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:917) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:896) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:927) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:603) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_37] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_37] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1769) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1709) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:854) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_37] at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_37] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395) [velocity-1.7.jar:1.7] at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) [velocity-1.7.jar:1.7] at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342) [velocity-1.7.jar:1.7] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187) [xwiki-commons-velocity-4.5-milestone-1.jar:na] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:105) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:125) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:75) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1769) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:155) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:241) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [servlet-api-2.5.jar:2.5] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servlet-api-2.5.jar:2.5] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120) [xwiki-platform-legacy-oldcore-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) [xwiki-platform-webdav-server-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208) [xwiki-platform-container-servlet-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111) [xwiki-platform-container-servlet-4.5-milestone-1.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517) [jetty-security-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.Server.handle(Server.java:346) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214) [jetty-http-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411) [jetty-server-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) [jetty-io-7.4.5.v20110725.jar:7.4.5.v20110725] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529) [jetty-util-7.4.5.v20110725.jar:7.4.5.v20110725] at java.lang.Thread.run(Thread.java:680) [na:1.6.0_37] {code}

    XWiki.org JIRA | 4 years ago | Raluca Stavro
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with wicketstuff-TinyMCE 1.4.19 lazyloading in windows

    GitHub | 5 years ago | Flygefisk
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  6. 0

    A fresh CAS instance

    GitHub | 3 years ago | jtal
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. richard77 2 times, last 4 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1937)
    1 frame
  3. org.springframework.aws
    AbstractWagon.put
    1. org.springframework.aws.maven.SimpleStorageServiceWagon.getDestinationPath(SimpleStorageServiceWagon.java:191)
    2. org.springframework.aws.maven.SimpleStorageServiceWagon.putResource(SimpleStorageServiceWagon.java:150)
    3. org.springframework.aws.maven.AbstractWagon.put(AbstractWagon.java:262)
    3 frames
  4. Maven Bundle Plugin
    ObrDeploy.execute
    1. org.apache.felix.obrplugin.RemoteFileManager.put(RemoteFileManager.java:216)
    2. org.apache.felix.obrplugin.RemoteFileManager.lockFile(RemoteFileManager.java:294)
    3. org.apache.felix.obrplugin.ObrDeploy.execute(ObrDeploy.java:214)
    3 frames
  5. Maven Plugin
    DefaultPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    1 frame
  6. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    8 frames
  7. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    1 frame
  8. org.apache.maven
    CompatibleMain.main
    1. org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  10. Plexus
    Launcher.main
    1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    4 frames