It's all about the answers!

Ask a question

"Premature end of file" causes a JBE build failure


Richard Stroh (112) | asked Mar 29 '13, 10:29 a.m.
RTC v3.0.1.1

What is causing this RTC/JBE  Build problem?

Our RTC builds are experiencing an intermittent problem when the JBE begins Fetching files to fetch destination.
The build aborts.
The stack trace reports a 'Premature end of file'. 
The file in question is "Unknown"
When the build is re-run, the problem is gone and the build completes successfully.

 

Build log

2013-03-21 23:27:06 [Jazz build engine]
2013-03-21 23:27:06 [Jazz build engine] Substituted the following build property variables:
2013-03-21 23:27:06 [Jazz build engine]     team.scm.fetchDestination = ${LoadDir}   -->   team.scm.fetchDestination = C:\rtc_buildspace\StackSimplify\trunk
2013-03-21 23:27:06 [Jazz build engine]
2013-03-21 23:27:06 [Jazz build engine]
2013-03-21 23:27:06 [Jazz build engine] Substituted the following configuration element property variables:
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.command = ${LoadDir}\ServicesBuild.cmd   -->   com.ibm.team.build.cmdline.command = C:\rtc_buildspace\StackSimplify\trunk\ServicesBuild.cmd
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = ${LifeCycle} ${SkipUnitTests} ${IA-services-monet}-${buildLabel}   -->   com.ibm.team.build.cmdline.arguments = package ${SkipUnitTests} ${IA-services-monet}-${buildLabel}
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = package ${SkipUnitTests} ${IA-services-monet}-${buildLabel}   -->   com.ibm.team.build.cmdline.arguments = package ${SkipUnitTests} ${IA-services-monet}-20130321-2327
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = package ${SkipUnitTests} ${IA-services-monet}-20130321-2327   -->   com.ibm.team.build.cmdline.arguments = package false ${IA-services-monet}-20130321-2327
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.arguments = package false ${IA-services-monet}-20130321-2327   -->   com.ibm.team.build.cmdline.arguments = package false 9.2.0.0-SS-20130321-2327
2013-03-21 23:27:06 [Jazz build engine]     com.ibm.team.build.cmdline : com.ibm.team.build.cmdline.workingDir = ${LoadDir}   -->   com.ibm.team.build.cmdline.workingDir = C:\rtc_buildspace\StackSimplify\trunk
2013-03-21 23:27:06 [Jazz build engine]
2013-03-21 23:27:06 [Jazz build engine] running on host: ia-oak-2003
2013-03-21 23:27:06 [Jazz build engine] Should build occur?
2013-03-21 23:27:06 [Jazz build engine] Checking for changes incoming to workspace "Stack Simplification Integration Workspace" ...
2013-03-21 23:27:06 [Jazz build engine]  found changes (1)
2013-03-21 23:27:06 [Jazz build engine] Yes: Pre-build participant "com.ibm.team.build.jazzscm" would like to build.
2013-03-21 23:27:07 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2013-03-21 23:27:07 [Jazz build engine] Accepting changes into workspace "Stack Simplification Integration Workspace" ...
2013-03-21 23:27:37 [Jazz build engine] Fetching files to fetch destination "C:\rtc_buildspace\StackSimplify\trunk" ...
com.ibm.team.repository.common.TeamRepositoryException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of file.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
    at com.ibm.team.repository.transport.client.RemoteTeamService.getAppropriateException(RemoteTeamService.java:717)
    at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:510)
    at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:202)
    at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
    at $Proxy26.getFileTreeByVersionable3(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164)
    at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88)
    at $Proxy26.getFileTreeByVersionable3(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy$2.run(ScmServiceInterfaceProxy.java:168)
    at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1261)
    at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
    at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1254)
    at com.ibm.team.scm.client.internal.ScmClientLibraryContext.callCancelableService(ScmClientLibraryContext.java:70)
    at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invokeCancelableService(ScmServiceInterfaceProxy.java:164)
    at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invoke(ScmServiceInterfaceProxy.java:92)
    at $Proxy26.getFileTreeByVersionable3(Unknown Source)
    at com.ibm.team.filesystem.client.internal.FileSystemServiceProxy.getFileTreeByVersionable(FileSystemServiceProxy.java:291)
    at com.ibm.team.filesystem.client.internal.operations.LoadOperation.load(LoadOperation.java:933)
    at com.ibm.team.filesystem.client.internal.operations.LoadOperation$1.run(LoadOperation.java:593)
    at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager$1.run(ResourceSharingManager.java:76)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager.runWithinFileSystemLock(ResourceSharingManager.java:88)
    at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
    at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
    at com.ibm.team.filesystem.client.internal.operations.LoadOperation.execute(LoadOperation.java:624)
    at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
    at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:619)
    at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:238)
    at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:844)
    at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:650)
    at java.lang.Thread.run(Thread.java:811)
Caused by: com.ibm.team.repository.common.internal.marshal.MarshallingException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of file.
    at com.ibm.team.repository.common.internal.marshal.impl.EObjectMarshaller.demarshalInputStreamToObject(EObjectMarshaller.java:558)
    at com.ibm.team.repository.transport.client.RemoteTeamService.demarshallEnvelope(RemoteTeamService.java:615)
    at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:546)
    at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:485)
    ... 35 more
Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of file.
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:201)
    at com.ibm.team.repository.common.internal.marshal.util.WebServicesXMLLoadImpl.load(WebServicesXMLLoadImpl.java:76)
    at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
    at com.ibm.team.repository.common.internal.marshal.impl.EObjectMarshaller.demarshalInputStreamToObject(EObjectMarshaller.java:555)
    ... 38 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.endOfFileHook(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
    ... 41 more



Comments
Jeff Li commented Jul 31 '13, 10:34 a.m.

We are also running into this issue a lot. Can the engineers in the Rational Team Concert take a look?

2 answers



permanent link
Ralph Schoon (63.1k33645) | answered Jul 31 '13, 11:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See this defect: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=260297

Do you have a lot of files in the component? Any chance to upgrade to the latest fixpack?

permanent link
Jeff Li (1) | answered Jul 31 '13, 11:42 a.m.
Hi, Ralph,

Thanks for your response. Yes, we have lots of files ( more than thousands in the project).  I commented in the work item and also sent the issues to our IT engineers responsible for the RTC.

Regards,
Jeff

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.