MachII and CF Websockets

24 views
Skip to first unread message

cjazinski

unread,
Jul 6, 2012, 2:13:43 PM7/6/12
to mach-ii-for...@googlegroups.com
Hello,


I've been experiencing some odd stuff. I'm trying to utilize web sockets to push some data to helpdesk staff when new tickets are being created (I want to use web sockets to do this). If i use the JS functions to publish everything works fine but i'm using client side JS to do this. I want to be able to create a ticket via cfc and then just simply run WSPublish('myChannel,'myMsg'); This seems to work fine if i call a page directly. for instance if my form is calling views/debug.cfm directly (where the logic is placed in there to save ticket but main point is the WSPublish()) everything works as it should. Now if i have a form calling a page like index.cfm?event=process.form (using machii frame work) the message will still get published to the clients however CF will throw an error about at NULL java pointer. I have tried wrapping the WSPublish in try/catch but an error still gets thrown. I have not tried to run the WSPublish method with a listener (i'm not sure if that will make a difference) I'm using Machii 1.9 (not sure which build) and wanted to know if anyone else has encounter the same issue and how you've solved the issue. Is this even a machii issue? I'm running Adobe's CF 10 enterprise with the latest updates (no update in the manager)

Error is below

The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.

 
Resources:

Browser  
Remote Address  
Referrer  
Date/Time  06-Jul-12 01:08 PM
Stack Trace


java.lang.NullPointerException
	at coldfusion.filter.IpFilter.checkAdminAccess(IpFilter.java:78)
	at coldfusion.filter.IpFilter.invoke(IpFilter.java:62)
	at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:422)
	at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
	at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:112)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94)
	at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79)
	at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
	at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
	at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
	at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
	at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
	at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62)
	at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:151)
	at coldfusion.CfmServlet.service(CfmServlet.java:204)
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
	at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

Matthew Woodward

unread,
Jul 6, 2012, 2:43:35 PM7/6/12
to mach-ii-for...@googlegroups.com
On Fri, Jul 6, 2012 at 11:13 AM, cjazinski <ch...@jazinski.com> wrote:
Is this even a machii issue?

Based on what you're providing here, I'd say very likely not.

--
Matthew Woodward
ma...@mattwoodward.com
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
Reply all
Reply to author
Forward
0 new messages