After p4 sync java.lang.NullPointerException

13 views
Skip to first unread message

Jeff Foege

unread,
Apr 20, 2015, 5:31:19 PM4/20/15
to jenkins...@googlegroups.com
I was working on porting over our Hudson projects to Jenkins. I did a build then updated a couple plugins and restarted Tomcat. 
Jenkins = 1.610
Java = 1.8.0.40
Tomcat = 8.0.21

On build 30:
[workspace] $ E:\Perforce\p4.exe changes -s submitted -m 1 //autobuild_cip-test/...
[workspace] $ E:\Perforce\p4.exe -s changes -s submitted //autobuild_cip-test/...@38084,@38083
Sync'ing workspace to changelist 38083 (forcing sync of unchanged files).
[workspace] $ E:\Perforce\p4.exe -s sync -f //autobuild_cip-test/...@38083
Sync complete, took 24742 ms
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content 

On build 31:
[workspace] $ E:\Perforce\p4.exe changes -s submitted -m 1 //ab_cip-test-J/...
[workspace] $ E:\Perforce\p4.exe -s changes -s submitted //ab_cip-test-J/...@38401,@38400
Sync'ing workspace to changelist 38400 (forcing sync of unchanged files).
[workspace] $ E:\Perforce\p4.exe -s sync -f //ab_cip-test-J/...@38400
Sync complete, took 25552 ms
ERROR: java.lang.NullPointerException
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content

I've been trying to figure out where this java error is coming from. I've restarted Tomcat service (not running catalina.bat) but not the machine itself. I thought maybe it was related to the upgrade of the EnvInject plugin but I downgraded to the previous version but still get the error. I still have other plugins that have upgrades but since I'm not using them I decided to not to upgrade. 

Should I maybe ditch using the tomcat8w.exe and start using the Catalina.bat so I can set jenkins/hudson & java options? This error is marking all my builds as failing when they appear to be just fine. 

Does anyone have an idea on this?

Thanks for any help/suggestions.
jeff
Reply all
Reply to author
Forward
0 new messages