I am trying to build my source code and getting the below error. I am using an Ant script and trying to create a build for WebSphere Application Server 8.5.
[exec] Error executing deployment: java.lang.ClassCastException. Error is com.ibm.etools.ejbdeploy.batch.impl.PrivateOptions incompatible with com.ibm.etools.ejbdeploy.batch.impl.PrivateOptions.
[exec] java.lang.ClassCastException: com.ibm.etools.ejbdeploy.batch.impl.PrivateOptions incompatible with com.ibm.etools.ejbdeploy.batch.impl.PrivateOptions
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:246)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[exec] at java.lang.reflect.Method.invoke(Method.java:611)
[exec] at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
[exec] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[exec] at java.lang.reflect.Method.invoke(Method.java:611)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:494)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:114)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.deploy(EJBDeploy.java:348)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:309)
[exec] EJBDeploy level: #build#
Related
Here's the sonar-runner.properties file in the project's root directory.
sonar.projectKey=baedalpos
sonar.projectName=baedal
sonar.projectVersion=1.0
sonar.scm.provider=svn
sonar.language=delph
sonar.dynamicAnalysis=false
sonar.sourceEncoding=UTF-8
sonar.sources=/home/svntest/30.1.Client/.
As you can see above, the project is written in Delphi, so I already downloaded and installed the Delphi plugin. When I run the sonar-runner command, it ends up leaving the following error message.
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 10.024s
Final Memory: 55M/807M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.IllegalArgumentException: 737 is not a valid line for pointer. File [moduleKey=baedalpos, relative=Basic/uStoreTable.pas, basedir=/home/svntest/30.1.Client TEST] has 525 line(s)
at org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:148)
at org.sonar.api.batch.fs.internal.DefaultInputFile.checkValid(DefaultInputFile.java:215)
at org.sonar.api.batch.fs.internal.DefaultInputFile.newPointer(DefaultInputFile.java:209)
at org.sonar.api.batch.fs.internal.DefaultInputFile.selectLine(DefaultInputFile.java:246)
at org.sonar.batch.issue.DeprecatedIssueBuilderWrapper.line(DeprecatedIssueBuilderWrapper.java:59)
at org.sonar.plugins.delphi.metrics.DeadCodeMetrics.save(DeadCodeMetrics.java:168)
at org.sonar.plugins.delphi.DelphiSensor.processFiles(DelphiSensor.java:134)
at org.sonar.plugins.delphi.DelphiSensor.analyse(DelphiSensor.java:112)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:58)
at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:50)
at org.sonar.batch.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:83)
at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:192)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)
at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)
at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:226)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.task.ScanTask.execute(ScanTask.java:47)
at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:106)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
... 9 more
I am getting out of memory error while building in jenkins. It happens when poi-ooxml-schemas jar is upgraded. It is being upgraded from 3.6 to 3.12. I checked with 3.13 jar too. It gives the same out of memory error. All other poi jars like poi, poi-ooxml, poi-scratchpad etc are upgraded to 3.12. The moment i update ooxml-schemas jar in my pom.xml and build, jenkins errors out. The same jar has been upgraded to 3.12 in other applications in system.
Below is the stack trace from jenkins
[exec] Shutting down workbench.
[exec] Error executing deployment: java.lang.OutOfMemoryError. Error is Java heap space.
[exec] java.lang.OutOfMemoryError: Java heap space
[exec] at java.util.zip.InflaterInputStream.<init>(InflaterInputStream.java:82)
[exec] at java.util.zip.ZipFile$1.<init>(ZipFile.java:242)
[exec] at java.util.zip.ZipFile.getInputStream(ZipFile.java:242)
[exec] at java.util.zip.ZipFile.getInputStream(ZipFile.java:206)
[exec] at org.eclipse.jst.jee.archive.internal.ArchiveUtil$1.getInputStream(ArchiveUtil.java:254)
[exec] at org.eclipse.jst.jee.archive.internal.ZipFileArchiveLoadAdapterImpl.getInputStream(ZipFileArchiveLoadAdapterImpl.java:127)
[exec] at org.eclipse.jst.j2ee.internal.archive.JavaEEArchiveUtilities$JavaEEWrappingLoadAdapter.getInputStream(JavaEEArchiveUtilities.java:670)
[exec] at org.eclipse.jst.jee.archive.internal.ArchiveResourceImpl.getInputStream(ArchiveResourceImpl.java:84)
[exec] at org.eclipse.jst.j2ee.internal.archive.ComponentArchiveSaveAdapter.save(ComponentArchiveSaveAdapter.java:129)
[exec] at org.eclipse.jst.jee.archive.AbstractArchiveSaveAdapter.save(AbstractArchiveSaveAdapter.java:71)
[exec] at org.eclipse.jst.j2ee.internal.archive.ComponentArchiveSaveAdapter.save(ComponentArchiveSaveAdapter.java:115)
[exec] at org.eclipse.jst.j2ee.internal.archive.J2EEComponentArchiveSaveAdapter.save(J2EEComponentArchiveSaveAdapter.java:53)
[exec] at org.eclipse.jst.jee.archive.internal.ArchiveFactoryImpl.save(ArchiveFactoryImpl.java:114)
[exec] at org.eclipse.jst.jee.archive.internal.ArchiveFactoryImpl.saveArchive(ArchiveFactoryImpl.java:133)
[exec] at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactImportOperation.importModuleFile(J2EEArtifactImportOperation.java:139)
[exec] at org.eclipse.jst.j2ee.internal.ejb.archiveoperations.EJBComponentImportOperation.importModuleFile(EJBComponentImportOperation.java:37)
[exec] at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactImportOperation.doExecute(J2EEArtifactImportOperation.java:93)
[exec] at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactImportOperation.execute(J2EEArtifactImportOperation.java:63)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
[exec] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
[exec] at org.eclipse.jst.j2ee.internal.archive.operations.EARComponentImportOperation.doExecute(EARComponentImportOperation.java:144)
[exec] at org.eclipse.jst.j2ee.internal.archive.operations.J2EEArtifactImportOperation.execute(J2EEArtifactImportOperation.java:63)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl$1.run(DataModelPausibleOperationImpl.java:376)
[exec] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:401)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.runOperation(DataModelPausibleOperationImpl.java:352)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.doExecute(DataModelPausibleOperationImpl.java:242)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.executeImpl(DataModelPausibleOperationImpl.java:214)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.cacheThreadAndContinue(DataModelPausibleOperationImpl.java:89)
[exec] at org.eclipse.wst.common.frameworks.internal.datamodel.DataModelPausibleOperationImpl.execute(DataModelPausibleOperationImpl.java:202)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.importEar(BatchExtension.java:1129)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.runEarDeploy(BatchExtension.java:360)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.run(BatchExtension.java:338)
[exec] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
[exec] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension$RunDeploy.execute(BatchExtension.java:303)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:266)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[exec] at java.lang.reflect.Method.invoke(Method.java:611)
[exec] at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
[exec] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
[exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[exec] at java.lang.reflect.Method.invoke(Method.java:611)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:494)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:114)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:107)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.deploy(EJBDeploy.java:348)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:310)
[exec] EJBDeploy level: #build#
[exec] mv: cannot stat `target/ABC_op.ear': No such file or directory
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: exec returned: 1
I am trying to use Jenkins to build a maven project (same failure at cmd line!) and I get the below error. I can't see any permissions issues and have tried several changes to permissions to see if it is a linux side error but no luck? Any ideas?
export:
[echo] midleware.home = /u01/Oracle/Middleware
Property "export.log.dir" has not been set
[echo] export log dir = ${export.log.dir}
[java] Executing '/usr/java/jdk1.6.0_30/jre/bin/java' with arguments:
[java] '-XX:MaxPermSize=256m'
[java] '-Xmx768m'
[java] '-Dsun.lang.ClassLoader.allowArraySyntax=true'
[java] '-Dweblogic.home=/u01/Oracle/Middleware/wlserver_10.3'
[java] '-Dharvester.home=/u01/Oracle/Middleware/osb_11/harvester'
[java] '-Dosb.home=/u01/Oracle/Middleware/osb_11'
[java] '-Dosgi.bundlefile.limit=500'
[java] '-Dosgi.nl=en_US'
[java] '-Dmiddleware.home=/u01/Oracle/Middleware'
[java] '-Dosgi.logfile=/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/export.log'
[java] '-jar'
[java] '/u01/Oracle/Middleware/oepe/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar'
[java] '-data'
[java] '/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas'
[java] '-application'
[java] 'com.bea.alsb.core.ConfigExport'
[java] '-configProject'
[java] 'ATAS_Configuration'
[java] '-configJar'
[java] '/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/target/atas-10.0.jar'
[java] '-includeDependencies'
[java] 'true'
[java] '-debug'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[ant] Exiting /var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.698s
[INFO] Finished at: Thu Mar 27 14:00:50 GMT 2014
[INFO] Final Memory: 9M/56M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (export-osb-configuration) on project atas: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] /var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (export-osb-configuration) on project atas: An Ant BuildException has occured: The following error occurred while executing this line:
/var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
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 hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: The following error occurred while executing this line:
/var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 31 more
Caused by: /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/target/antrun/build-main.xml:9: The following error occurred while executing this line:
/var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
... 33 more
Caused by: /var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
at org.apache.tools.ant.taskdefs.Java.setupWorkingDir(Java.java:855)
at org.apache.tools.ant.taskdefs.Java.setupExecutable(Java.java:825)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:788)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
... 44 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/pom.xml to uk.org.tlms.tlmsim.flows/atas/10.0/atas-10.0.pom
channel stopped
Finished: FAILURE
xml file as requeted
<project name="osb-config-export" default="export">
<property file="${export.properties.file}"/>
<target name="delete-metadata">
<delete dir="${workspace.dir}/.metadata"/>
</target>
<target name="export" depends="delete-metadata">
<echo message="midleware.home = ${middleware.home}"/>
<echo message="export log dir = ${export.log.dir}"/>
<java dir="${middleware.home}/oepe" jar="${middleware.home}/oepe/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"
fork="true" failonerror="true" maxmemory="768m">
<jvmarg line="-XX:MaxPermSize=256m" />
<arg line="-data ${workspace.dir}"/>
<arg line="-application com.bea.alsb.core.ConfigExport"/>
<arg line="-configProject ${config.project}"/>
<!--<arg line="-configSubProjects ${config.subprojects}"/>-->
<arg line="-configJar ${config.jar}"/>
<arg line="-includeDependencies ${config.includeDependencies}"/>
<arg line="-debug"/>
<sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
<sysproperty key="weblogic.home" value="${middleware.home}/wlserver_10.3"/>
<sysproperty key="harvester.home" value="${middleware.home}/osb_11/harvester"/>
<sysproperty key="osb.home" value="${middleware.home}/osb_11"/>
<sysproperty key="osgi.bundlefile.limit" value="500"/>
<sysproperty key="osgi.nl" value="en_US"/>
<sysproperty key="middleware.home" value="${middleware.home}"/>
<!--sysproperty key="osgi.logfile" value="${export.log.dir}/export.log"/-->
<sysproperty key="osgi.logfile" value="${workspace.dir}/export.log"/>
</java>
</target>
</project>
Well, as you yourself pointed out, this is the error:
[ERROR] /var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml:12: /u01/Oracle/Middleware/oepe is not a valid directory
You also say that the same error happens from command line, so this is not an issue with Jenkins's user permissions, Jenkins environment variables or workspace
You need to look at the code on line 12 of /var/lib/jenkins/workspace/01_export-atas-osbconfig/build/ant/osb-config-export.xml. Please edit that file into the original question.
But it seems pretty obvious, it cannot access /u01/Oracle/Middleware/oepe. What happens when you just open command prompt and do cd /u01/Oracle/Middleware/oepe?
There is also this:
Property "export.log.dir" has not been set
I don't know if you are expecting that error or not. Looks like you need to provide an additional property value.
Edit 1:
So, if the cd /u01/Oracle/Middleware/oepe works from command line and the structure looks good, it could be filesystem permissions. Try executing your maven command with a sudo in front of it. If that works, then we will need to look closer at permissions.
Secondly, try executing the java command outside of the ant script, on command line, from within /u01/Oracle/Middleware/oepe:
/usr/java/jdk1.6.0_30/jre/bin/java -XX:MaxPermSize=256m -Xmx768m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home=/u01/Oracle/Middleware/wlserver_10.3 -Dharvester.home=/u01/Oracle/Middleware/osb_11/harvester -Dosb.home=/u01/Oracle/Middleware/osb_11 -Dosgi.bundlefile.limit=500 -Dosgi.nl=en_US -Dmiddleware.home=/u01/Oracle/Middleware -Dosgi.logfile=/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/export.log -jar /u01/Oracle/Middleware/oepe/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -data /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas -application com.bea.alsb.core.ConfigExport -configProject ATAS_Configuration -configJar /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/target/atas-10.0.jar -includeDependencies true -debug
I only have general advice in this situation--try to pinpoint where the error is coming from. We're seeing an error that's coming out of a combination of Maven, the Maven Ant plugin (I assume), Jenkins, and the actual Java command that's calling the OSB export. Break it down to the simplest one first (just call the java command yourself to see what works), then layer on top of it until you find where the breakage is occuring.
For instance, I don't know whether what is being logged to the console is actually the same java command it's calling, or if that's something you're logging yourself by guessing at the call:
[java] Executing '/usr/java/jdk1.6.0_30/jre/bin/java' with arguments:
[java] '-XX:MaxPermSize=256m'
[java] '-Xmx768m'
[java] '-Dsun.lang.ClassLoader.allowArraySyntax=true'
[java] '-Dweblogic.home=/u01/Oracle/Middleware/wlserver_10.3'
[java] '-Dharvester.home=/u01/Oracle/Middleware/osb_11/harvester'
[java] '-Dosb.home=/u01/Oracle/Middleware/osb_11'
[java] '-Dosgi.bundlefile.limit=500'
[java] '-Dosgi.nl=en_US'
[java] '-Dmiddleware.home=/u01/Oracle/Middleware'
[java] '-Dosgi.logfile=/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/export.log'
[java] '-jar'
[java] '/u01/Oracle/Middleware/oepe/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar'
[java] '-data'
[java] '/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas'
[java] '-application'
[java] 'com.bea.alsb.core.ConfigExport'
[java] '-configProject'
[java] 'ATAS_Configuration'
[java] '-configJar'
[java] '/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/target/atas-10.0.jar'
[java] '-includeDependencies'
[java] 'true'
[java] '-debug'
First, take that and call it yourself as the same user that Jenkins is running as. That would let you know whether you're even able to call this:
/usr/java/jdk1.6.0_30/jre/bin/java -XX:MaxPermSize=256m -Xmx768m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home=/u01/Oracle/Middleware/wlserver_10.3 -Dharvester.home=/u01/Oracle/Middleware/osb_11/harvester -Dosb.home=/u01/Oracle/Middleware/osb_11 -Dosgi.bundlefile.limit=500 -Dosgi.nl=en_US -Dmiddleware.home=/u01/Oracle/Middleware -Dosgi.logfile=/var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/export.log -jar /u01/Oracle/Middleware/oepe/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -data /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas -application com.bea.alsb.core.ConfigExport -configProject ATAS_Configuration -configJar /var/lib/jenkins/workspace/01_export-atas-osbconfig/osbflows/atas/target/atas-10.0.jar -includeDependencies true -debug
Then, call the ant script that's doing that as the Jenkins user
Then, call the Maven plugin as the Jekins user,
then Jenkins itself
Don't walk down to the simplest solution, start there and walk up.
I'm having a issue with the integration of a SoapUi testcase and Jenkins.
I'm calling the test directly by Ant and it's working. But When i'm calling my ant by jenkins , i'm getting a java.lang.nullpointerexception.
I've also try to directly call the ant by windows batch command instead of "invoke ant"
The jenkins console give me that
soapui-tests:
[exec] SoapUI Pro 4.6.4 TestCase Runner
[exec] 16:08:45,279 INFO [SoapUI] Adding [C:\ESP_Testware\ESP_Tools\SoapUI-Pro-4.6.4\bin\ext\sqljdbc.jar] to extensions classpath
[exec] 16:08:45,279 INFO [DefaultSoapUICore] Creating new settings at [C:\soapui-settings.xml]
[exec] 16:08:45,997 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\ESP_Testware\ESP_Tools\Jenkins\jobs\ESP_QA_WS_REGRESSION\scripts]
[exec] 16:08:45,997 INFO [DefaultSoapUICore] Adding listeners from [C:\ESP_Testware\ESP_Tools\SoapUI-Pro-4.6.4\bin\listeners\demo-listeners.xml]
[exec] 16:08:48,025 INFO [WsdlProject] Loaded project from [file:/C:/ESP_Testware/ESP_Projects/Test-Ws/Multi_1_1_7.xml]
[exec] 16:08:48,586 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\ESP_Testware\ESP_Tools\Jenkins\jobs\ESP_QA_WS_REGRESSION\scripts]
[exec] 16:08:52,018 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [EnvDev 1_1_7]
[exec] 16:08:52,018 INFO [SoapUIProTestCaseRunner] Running TestSuite [MS_TEST], runType = SEQUENTIAL
[exec] 16:08:52,034 INFO [SoapUIProTestCaseRunner] Running SoapUI testcase [LogOn]
[exec] 16:08:52,034 INFO [SoapUIProTestCaseRunner] running step [LogOn - Request 1]
[exec] 16:08:52,143 ERROR [WsdlSubmit] Exception in request: java.lang.NullPointerException
[exec] java.lang.NullPointerException
[exec] 16:08:52,143 ERROR [SoapUI] An error occurred [java.lang.NullPointerException], see error log for details
[exec] at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.createPacSelector(IEProxySearchStrategy.java:70)
[exec] at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.getProxySelector(IEProxySearchStrategy.java:44)
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Assertion [SOAP Response] has status UNKNOWN at com.btr.proxy.search.ProxySearch.getProxySelector(ProxySearch.java:193)
[exec]
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Assertion [Check for existance of [a:Token]] has status UNKNOWN
[exec] at com.eviware.soapui.impl.wsdl.support.http.CompositeHttpRoutePlanner.getProxySelector(CompositeHttpRoutePlanner.java:72)
[exec] 16:08:52,143 ERROR [SoapUIProTestCaseRunner] LogOn - Request 1 failed, exporting to [C:\ESP_Testware\ESP_Log\MS_TEST-LogOn-LogOn__Request_1-0-FAILED.txt] at com.eviware.soapui.impl.wsdl.support.http.CompositeHttpRoutePlanner.determineRoute(CompositeHttpRoutePlanner.java:59)
[exec]
[exec] at org.apache.http.impl.client.DefaultRequestDirector.determineRoute(DefaultRequestDirector.java:709)
[exec] 16:08:52,143 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [LogOn], time taken: 96ms, status: FAILED at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:356)
[exec]
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
[exec] 16:08:52,159 INFO [SoapUIProTestCaseRunner] TestSuite [MS_TEST] finished with status [FAILED] in 109ms at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:238)
[exec]
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:348)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:318)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:232)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
[exec] at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:238)
[exec] at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:417)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:235)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[exec] at java.util.concurrent.FutureTask.run(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[exec] at java.lang.Thread.run(Unknown Source)
The SoapUi test case log give me that
Status: FAILED
Time Taken: 96
Size: 0
Timestamp: Fri Jan 17 16:08:52 EST 2014
TestStep: LogOn - Request 1
----------------- Messages ------------------------------
java.lang.NullPointerException
----------------- Properties ------------------------------
Encoding: UTF-8
Endpoint: http://dev.rxassyst.com/Blackboxqa/1_1_1/session/RxAssyst.svc
---------------- Request ---------------------------
<soapenv:Envelope
xmlns:rxas="http://schemas.datacontract.org/2004/07/RxAssystLib.Contracts.Data"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:User>
<rxas:Password>Blackbox</rxas:Password>
<rxas:UserName>jm</rxas:UserName>
</tem:User>
<tem:UserInfo field:nil="true" xmlns:field="http://www.w3.org/2001/XMLSchema-
instance"/>
</soapenv:Body>
</soapenv:Envelope>
---------------- Response --------------------------
- missing response / garbage collected -
As venergiac pointed out it seems to be a problem reading proxy settings. By default SoapUI automatically tries to determine proxy settings.
If you are not using a proxy you can circumvent the problem by turning off the proxy. You can do that by supplying a soapui-settings.xml file with -t parameter to the testrunner. Easiest way to generate the file is to copy the settings file from your home folder on you local machine with SoapUI installed. Make sure to have proxy disabled in SoapUI before copying the settings file.
I tried to build Jython on my macbook pro, but got an error after simpley ant command.
$ jython-2.5.4-rc1-sources zzhao$ ant
Buildfile: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build.xml
init:
needed-check:
clean-if-antlr-needed:
init:
clean-checkout-dir:
clean:
prepare-output:
[mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/classes
[mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/gensrc/org/python/antlr
[mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build/exposed
[mkdir] Created dir: /Users/jack/Dev/jython/jython-2.5.4-rc1-sources/dist
antlr_gen:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/antlr/Tool
[java] Caused by: java.lang.ClassNotFoundException: org.antlr.Tool
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
BUILD FAILED
/Users/jack/Dev/jython/jython-2.5.4-rc1-sources/build.xml:496: Java returned: 1
Any idea to the problem?
Your build is failing in the "antlr_gen" target. The java task is missing the antlr jar from its classpath.
Can't help any further without an ANT build.xml to debug.