Sorry,
Can someone remind me how to set stacktrace ?
I am usin Sybase as my backend
Cheers
Harry
Sorry,
Can someone remind me how to set stacktrace ?
I am usin Sybase as my backend
Cheers
Harry
that kind of error should be logged to youre .log.txt file in youre servoy diretory
Hi Johan,
You mean my ‘sybase_log.txt’ file in the Servoy → Sybase_db folder ?
If so then it says nothing out of place - these are last entries:
I. 06/06 20:30:17. Database server started at Mon Jun 06 2005 20:30
I. 06/06 20:30:17. Trying to start SharedMemory link …
I. 06/06 20:30:17. SharedMemory link started successfully
I. 06/06 20:30:17. Trying to start TCPIP link …
I. 06/06 20:30:17. Starting on port 2638
I. 06/06 20:30:17. TCPIP link started successfully
I. 06/06 20:30:17. Now accepting requests
This is after launchinf Servoy, running the method which causes the error !
Cheers
Harry
Harry, Johan meant a file called “.log.txt” in the Servoy directory itself. A stack trace can be activated by right clicking the servoy_developer.bat (also inside the Servoy directory), choosing edit and changing the text “javaw” into “java -DSTACKTRACE=true”. Save that .bat file and double click it to start Servoy with a stack trace.
Thanks Patrick,
Forgive my ignorance - maybe I’m just lucky but I’ve never had to use stacktrace before !!
Your instructions seem based on Windows platform.
I am on OSX which does not show me any ‘.bat’ files in my Servoy directory.
I have:
Servoy app
servoy_server.sh
servoy.properties
and then folders for Sybase, Beans, Drivers etc etc
Cheers
Harry
Hi all,
Can anyone out there tell me how to switch on stacktrace under OSX 10.4.1, please ?
Also for information, note that in the original error returned after invoking the addTab() function the tab WAS created and added to the tabpanel object !!!
Cheers
Harry
A .xxx file is a hidden file (as most of us know I guess). These files can be read in 2 ways.
download a copy of bbedit lite (6.1 is the last version I think). It is availabe for free and can be used to read hidden files via the menu File/Open Hidden…
use the terminal:
Hope this helps…
Thanks very much for the pointer Marcel
I did not realise that .log.txt was an invisible file and located it using BBEdit.
So for the benefit of Johan’s original statement that it should be in my Servoy directory:
2005-06-09 11:39 : Looking for servoy.properties on /Users/harrycat/servoy.properties
2005-06-09 11:39 : Loading servoy.properties from /Applications/Servoy/servoy.properties
2005-06-09 11:39 : Loading - Done
2005-06-09 11:40 : Using RMI registry on port 1099
2005-06-09 11:41 : org.mozilla.javascript.JavaScriptException: java.lang.ArrayIndexOutOfBoundsException: 4 >= 4
at org.mozilla.javascript.JavaScriptException.wrapException(JavaScriptException.java:71)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:366)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1249)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2031)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.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(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.ArrayIndexOutOfBoundsException: 4 >= 4
at java.util.Vector.elementAt(Vector.java:431)
at javax.swing.JTabbedPane.setForegroundAt(JTabbedPane.java:1273)
at com.servoy.j2db.dataui.SpecialTabPanel.setForegroundAt(Unknown Source)
at com.servoy.j2db.dataui.SpecialTabPanel.js_addTab(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:332)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1249)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2031)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
at com.servoy.j2db.develop.debugger.k.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(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Hope that this sheds some light on the error
Cheers
Harry
thx fixed for the final
It failed when you set a color on the tab directly with addTab
Thanks to you and the team, Johan
Yet again you guys show how reactive you are to resolving issues as quickly as they may arise !
Cheers
Harry