工作灯6.1 - 真实服务器上发送通知到Android设备错误 [英] Worklight 6.1 - error on sending notification to android device on real server
问题描述
我想通知发送到Android设备。
在我的工作灯工作室我已经成功做出认购+通知。
当我试图做到这一点真正的工作灯服务器(在自由)上的我已经成功做出认购的,但我不能发送通知。
我试图发送通知的浏览器这样的:
<$p$p><$c$c>http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text消息%27]在我添加适配器:
&LT;过程名称=submitNotificationsecurityTest =wl_unprotected/&GT;
和,还是我得到这个错误:
异常由应用程序类com.worklight.core.auth.impl.AuthenticationFilter.doFilter:235'甩
了java.lang.RuntimeException:javax.servlet.ServletException:无法访问的servlet开发生产模式
在com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:235)
在com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
在[内部类]
javax.servlet.ServletException:致无法访问开发的servlet在生产模式
在com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
... 2个
在这个部分从错误信息请看下图:
致:javax.servlet.ServletException:无法访问的开发
servlet的生产模式下
com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
块引用>现在看到你正在使用的网址:
<$p$p><$c$c>http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text
消息%27]
的
的/ dev /
基本表示发展的servlet,这是错误说 - 不能在生产时使用。 在生产基本意思是不是工作灯Studio中的任何服务器,工作灯工作室正在开发环境。尝试从URL中删除
的/ dev /
,看看这是否会有所帮助,或者一个不同的错误将被给予。I'm trying to send notification to android device. On my Worklight Studio I have succeeded to make subscription + notification.
When I trying to do it on real worklight server(on liberty), I have succeeded to make subscription, but I can't send notification.
I'm trying to send notification on browser like that:
http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text message%27]
At the adapter I added:
<procedure name="submitNotification" securityTest="wl_unprotected" />
And, still I get this error:
Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:235' java.lang.RuntimeException: javax.servlet.ServletException: Can not access development servlets in production mode at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:235) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194) at [internal classes] Caused by: javax.servlet.ServletException: Can not access development servlets in production mode at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136) ... 2 more
解决方案Take a look at this part from the error message:
Caused by: javax.servlet.ServletException: Can not access development servlets in production mode at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:136)
Now see the URL you are using:
http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification¶meters=[%27user%27,%27text message%27]
The
/dev/
denotes basically a "development servlet", which as the error says - cannot be used when in production. "In production" basically means "any server that is not inside Worklight Studio", Worklight Studio being the development environment.Try to remove the
/dev/
from the URL and see whether this helps, or maybe a different error will then be given.这篇关于工作灯6.1 - 真实服务器上发送通知到Android设备错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!