0

私は使っているWSO2 EMM version 1.1.0

のガイドに従っていますenable GCMが、すべてを構成した後、サーバー側でnull 参照例外が発生します

ごとX seconds consumes lots of batteryにプルするため、GCM は必須です。これは修正される予定ですか、それとも何か修正はありますか?

ありがとう!

 TID: [0] [EMM] [2015-02-05 13:32:09,473] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -  org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (gcm#7) {org.jaggeryjs.jaggery.core.manager.WebAppManager}
org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (gcm#7)
    at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
    at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)


Caused by: org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (gcm#7)
    at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
    at org.mozilla.javascript.gen.gcm_21._c_anonymous_2(gcm:7)
    at org.mozilla.javascript.gen.gcm_21.call(gcm)

Caused by: java.lang.NullPointerException
    at org.wso2.mobile.gcm.GCMServerBridge.sendDataViaGCM(GCMServerBridge.java:61)
    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:606)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

GCMに設定されているときにサーバーに接続しようとしたときのログは次のとおりです。

W/System.err(26481): java.lang.IllegalArgumentException: Host name may not be null
D/audio_hw_primary(  204): select_devices: out_snd_device(2: speaker) in_snd_device(0: )
W/System.err(26481):  at org.apache.http.HttpHost.<init>(HttpHost.java:83)
W/System.err(26481):  at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:497)
W/System.err(26481):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
W/System.err(26481):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
W/System.err(26481):  at org.wso2.emm.agent.proxy.ServerUtilitiesTemp.postData(ServerUtilitiesTemp.java:100)
W/System.err(26481):  at org.wso2.emm.agent.proxy.APIController$NetworkCallTask.doInBackground(APIController.java:72)
W/System.err(26481):  at org.wso2.emm.agent.proxy.APIController$NetworkCallTask.doInBackground(APIController.java:1)
W/System.err(26481):  at android.os.AsyncTask$2.call(AsyncTask.java:288)
W/System.err(26481):  at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err(26481):  at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
W/System.err(26481):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err(26481):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err(26481):  at java.lang.Thread.run(Thread.java:841)
E/AlreadyRegisteredActivity(26481): The responseStatus is null in onReceiveAPIResult()
4

1 に答える 1