Forum Discussion

linwu's avatar
linwu
New Contributor
12 years ago

Error when run loadui project from jenkins

Hi,

I have a loadui project running successfully locally, then I upload everything to jenkins and run from there. and I have errors as below:

11:05:48,313 INFO [WorkspaceProviderImpl] Loading workspace from file: C:\Users\ciadmin\AppData\Local\Temp\workspace2726296797439083386xml
11:05:48,495 ERROR [CommandRunner] An error occured when executing the script
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: C:\Users\ciadmin\AppData\Local\Temp\workspace2726296797439083386xml:1:1: error: Unexpected end of file after null
at com.eviware.loadui.impl.model.WorkspaceProviderImpl.loadWorkspace(WorkspaceProviderImpl.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy10.loadWorkspace(Unknown Source)
at com.eviware.loadui.api.model.WorkspaceProvider$loadWorkspace.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at Script1.run(Script1.groovy:79)
at com.eviware.loadui.cmd.CommandRunner$CommandRunnable.run(CommandRunner.java:93)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.xmlbeans.XmlException: C:\Users\ciadmin\AppData\Local\Temp\workspace2726296797439083386xml:1:1: error: Unexpected end of file after null
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
at com.eviware.loadui.config.LoaduiWorkspaceDocumentConfig$Factory.parse(Unknown Source)
at com.eviware.loadui.impl.model.WorkspaceItemImpl.loadWorkspace(WorkspaceItemImpl.java:68)
at com.eviware.loadui.impl.model.WorkspaceProviderImpl.loadWorkspace(WorkspaceProviderImpl.java:53)
... 35 more
Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected end of file after null
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
... 42 more

Please let me know if you need more info

thanks a lot,
Jackie

2 Replies

  • Hi,
    Were you able to resolve this? I am getting exact same error.

    Xvfb starting$ /usr/bin/Xvfb :1 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/2013-09-25_17-10-136352126252244246005xvfb
    [jsftaglibrary_performance_test_was8.5] $ /bin/sh -xe /tmp/hudson8101744439311107223.sh
    + echo 'Workspace is /var/lib/jenkins/workspace/jsftaglibrary_performance_test_was8.5'
    Workspace is /var/lib/jenkins/workspace/jsftaglibrary_performance_test_was8.5
    + cd /opt/SmartBear/LoadUI-2.6.1/
    + ./loadUI-cmd.sh -p /var/lib/jenkins/workspace/jsftaglibrary_performance_test_was8.5/jsf-taglib/loadui/Batch1.xml -r /var/lib/jenkins/workspace/jsftaglibrary_performance_test_was8.5/jsf-taglib -F PDF -l

    .:::.
    .==:::::.
    .====:::::::.
    .======:::::::::.
    .========:::::::::::.
    .:=========:::::::::::::.
    .:::=========:::::::::::::::.
    :::::=========:::::::::::::::::
    :::::=========:::::::::::::::::
    ':::=========:::::::::::::::'
    ':======================'
    '==================='
    '==============='
    '==========='
    ':::::::'
    ':::'


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

    LoadUI 2.6.1


    Xlib: extension "RANDR" missing on display ":1".
    CommandApplication starting
    LoadUI Home: /var/lib/jenkins/.loadui
    Launching LoadUI Build: INTERNAL 2013/08/20 14:42
    JavaFX2 bundle started!
    Configuring log4j from [/opt/SmartBear/LoadUI-2.6.1/soapui-log4j.xml]
    17:10:20,133 INFO [DefaultSoapUICore] Creating new settings at [/var/lib/jenkins/soapui-settings.xml]
    17:10:20,459 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/opt/SmartBear/LoadUI-2.6.1/scripts]
    17:10:20,798 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
    17:10:20,835 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
    17:10:20,836 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
    17:10:20,837 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
    17:10:20,837 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
    17:10:20,838 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
    17:10:20,840 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
    17:10:20,845 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
    17:10:20,847 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
    17:10:20,852 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
    -> ShellTUI: No standard input...exiting.
    Framework started!
    command: com.eviware.loadui.launcher.impl.ResourceGroovyCommand@6baf6f15
    17:10:21,404 INFO [BeanInjector] Setting BundleContext for BeanInjector
    17:10:21,405 INFO [BeanInjector] BundleContext set successfully
    17:10:22,083 INFO [LoadUiMainWindowCreator] JavaFX2 bundle started, is Headless mode ? true
    17:10:22,543 INFO [CommandRunner]

    ------------------------------------
    INITIALIZING COMMAND LINE RUNNER
    ------------------------------------


    17:10:22,558 INFO [WorkspaceProviderImpl] Loading workspace from file: /tmp/workspace7159355243576254181xml
    17:10:22,677 ERROR [CommandRunner] An error occured when executing the script
    java.lang.RuntimeException: org.apache.xmlbeans.XmlException: /tmp/workspace7159355243576254181xml:1:1: error: Unexpected end of file after null
    at com.eviware.loadui.impl.model.WorkspaceProviderImpl.loadWorkspace(WorkspaceProviderImpl.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy9.loadWorkspace(Unknown Source)
    at com.eviware.loadui.api.model.WorkspaceProvider$loadWorkspace.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at Script1.run(Script1.groovy:79)
    at com.eviware.loadui.cmd.CommandRunner$CommandRunnable.run(CommandRunner.java:93)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.xmlbeans.XmlException: /tmp/workspace7159355243576254181xml:1:1: error: Unexpected end of file after null
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
    at com.eviware.loadui.config.LoaduiWorkspaceDocumentConfig$Factory.parse(Unknown Source)
    at com.eviware.loadui.impl.model.WorkspaceItemImpl.loadWorkspace(WorkspaceItemImpl.java:68)
    at com.eviware.loadui.impl.model.WorkspaceProviderImpl.loadWorkspace(WorkspaceProviderImpl.java:53)
    ... 35 more
    Caused by: org.xml.sax.SAXParseException; systemId: file:; lineNumber: 1; columnNumber: 1; Unexpected end of file after null
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
    at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
    at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
    ... 42 more
    Stopping Framework...
    Build step 'Execute shell' marked build as failure
    Xvfb stopping
    Finished: FAILURE
  • Hi,

    It looks like the LoadUI Workspace file you're trying to use is corrupt: /tmp/workspace7159355243576254181xml

    Maybe it's because you need to change its format to the OS your Jenkins instance is running on? In Linux, you can try to do:

    dos2unix /tmp/workspace7159355243576254181xml

    Or just have a look at this file in Jenkins and see if it looks right!

    Good luck,

    Renato