NPE when calling getLogger().info() from my application

63 views
Skip to first unread message

Jean-Remi Malzieu

unread,
Apr 1, 2016, 3:19:43 AM4/1/16
to Google App Engine
Hi,

Everything was working properly until this morning. I didn't update my application.
It seems that the logging mechanism has been broken since when I call Logger.getLogger().info() I get the following stacktrace :

java.lang.NullPointerException
	at com.google.apphosting.api.source.SourcePb$SourceLocation.setFile(SourcePb.java:139)
	at com.google.apphosting.runtime.AppLogsWriter.getSourceLocationProto(AppLogsWriter.java:380)
	at com.google.apphosting.runtime.AppLogsWriter.addLogRecordAndMaybeFlush(AppLogsWriter.java:183)
	at com.google.apphosting.runtime.ApiProxyImpl$EnvironmentImpl.addLogRecord(ApiProxyImpl.java:993)
	at com.google.apphosting.runtime.ApiProxyImpl.log(ApiProxyImpl.java:660)
	at com.google.apphosting.runtime.ApiProxyImpl.log(ApiProxyImpl.java:73)
	at com.google.apphosting.api.ApiProxy.log(ApiProxy.java:208)
	at com.google.apphosting.runtime.security.shared.intercept.java.util.logging.DefaultHandler.publish(DefaultHandler.java:51)
	at java.util.logging.Logger.log(Logger.java:616)
	at java.util.logging.Logger.doLog(Logger.java:641)
	at java.util.logging.Logger.log(Logger.java:664)
	at java.util.logging.Logger.info(Logger.java:1182)

Am I the only one having this issue? So far, I disabled the traces from the application, and it seems everything else is working. 

Thank you for your help

Miroslav Genov

unread,
Apr 1, 2016, 3:42:35 AM4/1/16
to Google App Engine
I'm encountering a similar issue. It looks like that the Logging RPC  logic is broken somehow. 

Nick (Cloud Platform Support)

unread,
Apr 4, 2016, 3:40:33 PM4/4/16
to Google App Engine
This certainly looks like an internal issue. While it would have been best to post to the Public Issue Tracker, we can use this thread to work on the issue until it's clarified. Can somebody post code which will be able to reproduce the issue? I've attempted to simply run Logger.info() and have not observed the behaviour.

Regards,

Nick
Cloud Platform Community Support

Jean-Remi Malzieu

unread,
Apr 13, 2016, 1:28:30 PM4/13/16
to Google App Engine
Thank you for you reply, and sorry for the late answer.

I have been quite busy those days, so my workaround was to simply remove the logs. I tried to reactivate them today to dig further, and it works correctly now. 
So I will no spend more time on the issue, but I feel uncomfortable about it... 
Reply all
Reply to author
Forward
0 new messages