It's all about the answers!

Ask a question

[JBE] Null pointer when fetching files


Anuerin Diaz (4112517) | asked Sep 18 '08, 11:29 p.m.
We are using a build definition for ANT and to minimize the amount of time needed for the fetch (20 mins), I disabled the "Delete directory before loading" load option in the Jazz Source Control tab.

Whenever a build request is being processed, the build fails with the following error:


2008-09-18 15:23:18 [Jazz build engine]
2008-09-18 15:23:18 [Jazz build engine] Substituted the following build property variables:
2008-09-18 15:23:18 [Jazz build engine] team.scm.fetchDestination = ${KERBEROS_WS_PATH} --> team.scm.fetchDestination = C:/Workspaces/Kerberos
2008-09-18 15:23:18 [Jazz build engine]
2008-09-18 15:23:18 [Jazz build engine]
2008-09-18 15:23:18 [Jazz build engine] Substituted the following configuration element property variables:
2008-09-18 15:23:18 [Jazz build engine] com.ibm.team.build.ant : com.ibm.team.build.ant.buildFile = ${KERBEROS_WS_PATH}/BuildMachine/build.xml --> com.ibm.team.build.ant.buildFile = C:/Workspaces/Kerberos/BuildMachine/build.xml
2008-09-18 15:23:18 [Jazz build engine]
2008-09-18 15:23:18 [Jazz build engine] Should build occur?
2008-09-18 15:23:18 [Jazz build engine] Yes: Always build a user initiated request.
2008-09-18 15:23:23 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
Fetching files to fetch destination "C:\Workspaces\Kerberos" ...
java.lang.NullPointerException
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.getLocalPathInternal_rec(CopyFileAreaStore.java:1062)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.getLocalPathInternal(CopyFileAreaStore.java:1042)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.deleteTreeInfo(CopyFileAreaStore.java:2447)
at com.ibm.team.filesystem.client.internal.load.MergeLoadMutator.execute(MergeLoadMutator.java:472)
at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.load(LoadOperation.java:726)
at com.ibm.team.filesystem.client.internal.operations.LoadOperation.doLoad(LoadOperation.java:433)
at com.ibm.team.filesystem.client.internal.operations.LocalFileSystemLoadOperation.execute(LocalFileSystemLoadOperation.java:97)
at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:279)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:152)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:571)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:427)
at java.lang.Thread.run(Thread.java:810)


But if the delete before loading option is re-enabled, the build goes past the fetching stage. I already tried using a different workspace for the jbe invocation but I don't see any related entries in the .log file.

Any idea/pointers on where to look for additional clues? Getting this feature working would be a time and bandwidth saver for us. Thanks.

ciao!

2 answers



permanent link
Don Weinand (7851) | answered Sep 19 '08, 12:54 a.m.
JAZZ DEVELOPER
Can you log a defect for this? When I paste the call stack into a workitem
and search for duplicates I don't find anything with a high percentage
match. It's pretty deep below our build code into the SCM component.
We'll need to take a look at it.

Don Weinand
Jazz Team Build

"ramfree17" <ramfree17> wrote in message
news:gav6qf$kop$1@localhost.localdomain...
We are using a build definition for ANT and to minimize the amount of
time needed for the fetch (20 mins), I disabled the "Delete
directory before loading" load option in the Jazz Source Control
tab.

Whenever a build request is being processed, the build fails with the
following error:


2008-09-18 15:23:18
2008-09-18 15:23:18 Substituted
the following build property variables:
2008-09-18 15:23:18
team.scm.fetchDestination = ${KERBEROS_WS_PATH} --
team.scm.fetchDestination = C:/Workspaces/Kerberos
2008-09-18 15:23:18
2008-09-18 15:23:18
2008-09-18 15:23:18 Substituted
the following configuration element property variables:
2008-09-18 15:23:18
com.ibm.team.build.ant : com.ibm.team.build.ant.buildFile =
${KERBEROS_WS_PATH}/BuildMachine/build.xml --
com.ibm.team.build.ant.buildFile =
C:/Workspaces/Kerberos/BuildMachine/build.xml
2008-09-18 15:23:18
2008-09-18 15:23:18 Should build
occur?
2008-09-18 15:23:18 Yes:
Always build a user initiated request.
2008-09-18 15:23:23 Invoking
pre-build participant "com.ibm.team.build.jazzscm"
Fetching files to fetch destination
"C:\Workspaces\Kerberos" ...
java.lang.NullPointerException
at
com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.getLocalPathInternal_rec(CopyFileAreaStore.java:1062)
at
com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.getLocalPathInternal(CopyFileAreaStore.java:1042)
at
com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.deleteTreeInfo(CopyFileAreaStore.java:2447)
at
com.ibm.team.filesystem.client.internal.load.MergeLoadMutator.execute(MergeLoadMutator.java:472)
at
com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
at
com.ibm.team.filesystem.client.internal.operations.LoadOperation.load(LoadOperation.java:726)
at
com.ibm.team.filesystem.client.internal.operations.LoadOperation.doLoad(LoadOperation.java:433)
at
com.ibm.team.filesystem.client.internal.operations.LocalFileSystemLoadOperation.execute(LocalFileSystemLoadOperation.java:97)
at
com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
at
com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:279)
at
com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:152)
at
com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:571)
at
com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:427)
at java.lang.Thread.run(Thread.java:810)


But if the delete before loading option is re-enabled, the build goes
past the fetching stage. I already tried using a different workspace
for the jbe invocation but I don't see any related entries in the
log file.

Any idea/pointers on where to look for additional clues? Getting this
feature working would be a time and bandwidth saver for us. Thanks.

ciao!

permanent link
Anuerin Diaz (4112517) | answered Sep 19 '08, 1:41 a.m.
Defect 61223 has been logged to track this.

ciao!

Comments
Egidijus Milierius commented Jan 09 '13, 3:05 a.m.

Defect link does not work.

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.