Page 1 of 1

Error flushing message buffer to client

PostPosted: Fri Jun 17, 2005 2:24 am
by jimc
Servoy version R2 2.2-build 328, repository version 25
os.name=Windows 2000

For one person on the LAN, when they try and Print a page the client abruptly shuts down and the server log gives the following message:

2005-06-16 08:43 : Error flushing message buffer to client a49d96e6-de63-11d9-8cec-f0047e5f1602, Connection refused to host: 192.168.202.138; nested exception is: java.net.ConnectException: Connection refused: connect

2005-06-16 08:43 : java.rmi.ConnectException: Connection refused to host: 192.168.202.138; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at com.servoy.j2db.UserClient_Stub.alert(Unknown Source)
at com.servoy.j2db.dataprocessing.aj.try(Unknown Source)
at com.servoy.j2db.dataprocessing.j$f.run(Unknown Source)
at com.servoy.j2db.util.ap.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.servoy.j2db.util.a.e.createSocket(Unknown Source)
... 9 more

Also a file is generated on their desktop named 'hs_err_pid1996.log' stating:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77F8431D
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:
at sun.print.Win32PrintService.getDefaultSettings(Native Method)
at sun.print.Win32PrintService.<init>(Unknown Source)
at sun.print.Win32PrintServiceLookup.getDefaultPrintService(Unknown Source)
at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
at sun.print.Win32PrintServiceLookup.getPrintServices(Unknown Source)
at javax.print.PrintServiceLookup.getServices(Unknown Source)
at javax.print.PrintServiceLookup.lookupPrintServices(Unknown Source)
at com.servoy.j2db.a.c.a(Unknown Source)
at com.servoy.j2db.FormPanel.print(Unknown Source)
at com.servoy.j2db.FormPanel$JSForm.js_print(Unknown Source)
at inv14.invoke()
at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:537)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:453)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1249)
at org.mozilla.javascript.gen.c85.call(PrintPage:4)
at com.servoy.j2db.scripting.f.executeFunction(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel.a(Unknown Source)
at com.servoy.j2db.FormPanel$b.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Dynamic libraries:

Heap at VM Abort:
Heap
def new generation total 3520K, used 3213K [0x10010000, 0x103e0000, 0x104f0000)
eden space 3136K, 97% used [0x10010000, 0x1030b248, 0x10320000)
from space 384K, 41% used [0x10380000, 0x103a82b0, 0x103e0000)
to space 384K, 0% used [0x10320000, 0x10320000, 0x10380000)
tenured generation total 45904K, used 26926K [0x104f0000, 0x131c4000, 0x14010000)
the space 45904K, 58% used [0x104f0000, 0x11f3bb28, 0x11f3bc00, 0x131c4000)
compacting perm gen total 14592K, used 14345K [0x14010000, 0x14e50000, 0x18010000)
the space 14592K, 98% used [0x14010000, 0x14e12778, 0x14e12800, 0x14e50000)

Local Time = Wed Jun 15 17:42:06 2005
Elapsed Time = 2294
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
#
Curiously, after all have logged off the solution and gone home, I will go into servoy-admin and under the client page there will be three of this person listed!

This person can log in on another machine and print without problem.

Could someone give me a potential starting point for troubleshooting this?

JimC

Re: Error flushing message buffer to client

PostPosted: Tue Nov 19, 2013 12:49 pm
by razzaq
I have the same problem. its started when I have this message. Please see attached.
Razzaq

Re: Error flushing message buffer to client

PostPosted: Thu Nov 21, 2013 12:01 pm
by Andrei Costescu
This looks like a completely different problem.
The first looks like a native code incompatibility (or bug of some sort) in the printing subsystem between Win 2000 and some native java code. (that happened many years ago)

What you see looks just like a data type mismatch in the solution. It was better if you created a separate topic instead of reviving this very old one.

1. What Servoy version do you use, what OS and java versions do you use?
2. What exactly does the user do when that error message pops up?
3. Is it related to find mode? Is find used in that area of code?

It may simply be that somewhere in JS code you try to set a string value into a "Date" dataprovider without being in find mode...