Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30250

StackOverflowError in Websphere Deployer when running Jenkins with IBM J9 JVM

      I am working on setting up a deployment from Jenkins to Websphere 8.5.5.

      When testing my connection, a stackoverflowerror occurs. Here is the error:

      FATAL: operating system stack overflow
      java.lang.StackOverflowError: operating system stack overflow
      at java.io.File.isDirectory(File.java:855)
      at java.io.File.toURI(File.java:743)
      at org.apache.tools.ant.util.FileUtils.toURI(FileUtils.java:1212)
      at org.apache.tools.ant.util.FileUtils.getFileURL(FileUtils.java:141)
      at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1121)
      at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299)
      at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355)
      at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
      at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1074)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:707)
      at com.ibm.ws.runtime.util.URLHandlerFactory.createURLStreamHandler(URLHandlerFactory.java:139)
      at java.net.URL.getURLStreamHandler(URL.java:1162)
      at java.net.URL.<init>(URL.java:602)
      at java.net.URL.<init>(URL.java:494)
      at java.net.URL.<init>(URL.java:443)
      at org.apache.tools.ant.util.FileUtils.getFileURL(FileUtils.java:141)
      at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1121)
      at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299)
      at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1355)
      at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315)
      at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1074)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:707)
      at com.ibm.ws.runtime.util.URLHandlerFactory.createURLStreamHandler(URLHandlerFactory.java:139)
      ....
      ....
      at com.ibm.ws.runtime.util.URLHandlerFactory.createURLStreamHandler(URLHandlerFactory.java:139)
      at java.net.URL.getURLStreamHandler(URL.java:1162)
      at java.net.URL.<init>(URL.java:602)
      at java.net.URL.<init>(URL.java:494)
      at java.net.URL.<init>(URL.java:443)
      at java.net.URI.toURL(URI.java:1107)
      at org.apache.commons.digester.Digester.parse(Digester.java:1870)
      at hudson.scm.SubversionChangeLogParser.parse(SubversionChangeLogParser.java:76)
      at hudson.scm.SubversionChangeLogParser.parse(SubversionChangeLogParser.java:43)
      at hudson.scm.ChangeLogParser.parse(ChangeLogParser.java:57)
      at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:906)
      at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:874)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:352)
      at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:349)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:674)
      at hudson.model.Run.execute(Run.java:1766)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)

          [JENKINS-30250] StackOverflowError in Websphere Deployer when running Jenkins with IBM J9 JVM

          Hi guys,

          My problem has been solved, the problem was that the Websphere application server was started using root by mistake, started it using it's user solved everything, I guess that if at some point the issues remains, starting Jenkins using root user would solve the issue.

          Thanks Greg, I really appreciate your support.

          Daniel Rodriguez added a comment - Hi guys, My problem has been solved, the problem was that the Websphere application server was started using root by mistake, started it using it's user solved everything, I guess that if at some point the issues remains, starting Jenkins using root user would solve the issue. Thanks Greg, I really appreciate your support.

          Greg Peters added a comment -

          Nice catch. Postponed for a while.

          Greg Peters added a comment - Nice catch. Postponed for a while.

          Rusty Bentz added a comment -

          Does the same user have to be used for both Jenkins and Websphere, or just not root? I will check the same on my end.

          Thanks!

          Rusty Bentz added a comment - Does the same user have to be used for both Jenkins and Websphere, or just not root? I will check the same on my end. Thanks!

          Rusty Bentz added a comment -

          I confirmed my websphere instance is not started using root. However, it is started using a separate user from my jenkins user.

          Rusty Bentz added a comment - I confirmed my websphere instance is not started using root. However, it is started using a separate user from my jenkins user.

          Rusty Bentz added a comment -

          I am reopening this issue as i am still getting the stack overflow error. I even get this on just testing the connection. I verified that jenkins and websphere are not running under root, though they are not running at the same user (though i think this is ok).

          Rusty Bentz added a comment - I am reopening this issue as i am still getting the stack overflow error. I even get this on just testing the connection. I verified that jenkins and websphere are not running under root, though they are not running at the same user (though i think this is ok).

          Greg Peters added a comment -

          Rusty,

          Please provide more details on your environment in the plugin description. Are you running with plugin under IBM's J9 JRE or Oracle's JRE?

          Greg Peters added a comment - Rusty, Please provide more details on your environment in the plugin description. Are you running with plugin under IBM's J9 JRE or Oracle's JRE?

          Rusty Bentz added a comment -

          Greg,

          I am running jenkins with IBM J9 JRE under java 1.7u85. Should I try using OpenJDK?

          Rusty Bentz added a comment - Greg, I am running jenkins with IBM J9 JRE under java 1.7u85. Should I try using OpenJDK?

          Greg Peters added a comment -

          Yes, please try running Jenkins on OpenJDK to see if that makes a difference. If it does, I'll rename the bug something that's more specific to J9.

          Greg Peters added a comment - Yes, please try running Jenkins on OpenJDK to see if that makes a difference. If it does, I'll rename the bug something that's more specific to J9.

          Greg Peters added a comment -

          popeye Did running Jenkins under OpenJDK fix this issue?

          Greg Peters added a comment - popeye Did running Jenkins under OpenJDK fix this issue?

          Rusty Bentz added a comment -

          Yes, running Jenkins under OpenJDK did fix this issue. Thanks for the help!

          Rusty Bentz added a comment - Yes, running Jenkins under OpenJDK did fix this issue. Thanks for the help!

            gpeters Greg Peters
            popeye Rusty Bentz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: