Hyperlink problem on Mac OS X 10.4.5

Hello,

we have a strange problem. On a machine using Mac OS X 10.4.5 we get an error when clicking on a link that looks like this:

href="javascript:ZeigeWoche(' +vJahrZurueck+ ',' +vMonatZurueck+ ', ' +vTagZurueck+ ')"

This link is supposed to call method “ZeigeWoche”, passing 3 arguments.

Servoy throws a “Could not eval the String “ZeigeWoche(1,1,1)””. Now what is strange is that this does not happen on Windows nor on Mac OS X 10.4.4.

In the console I see this on any Mac:

java.net.UnknownServiceException: protocol doesn't support input
java.net.UnknownServiceException: protocol doesn't support input
    at java.net.URLConnection.getInputStream(URLConnection.java:772)
    at javax.swing.JEditorPane.getStream(JEditorPane.java:719)
    at javax.swing.JEditorPane.setPage(JEditorPane.java:406)
    ...

And on the machine using OS X 10.4.5 we also get this error:

org.mozilla.javascript.EvaluatorException: Inappropriate array length.
org.mozilla.javascript.EvaluatorException: Inappropriate array length.
    at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:61)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:560)
    at org.mozilla.javascript.Context.reportRuntimeError(Context.java:598)
    at org.mozilla.javascript.Context.reportRuntimeError0(Context.java:568)
    at org.mozilla.javascript.NativeArray.jsConstructor(NativeArray.java:330)
    at org.mozilla.javascript.NativeArray.execMethod(NativeArray.java:155)
    at org.mozilla.javascript.IdFunction.construct(IdFunction.java:90)
    at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:1337)
    at org.mozilla.javascript.gen.c569.call(AnsichtWocheErstellen:59)
    at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
    at org.mozilla.javascript.gen.c568.call(ZeigeWoche:35)
    at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:281)
    at org.mozilla.javascript.gen.c567.call(internal_anon:1)
    at org.mozilla.javascript.gen.c567.exec(internal_anon)
    at org.mozilla.javascript.Context.evaluateReader(Context.java:788)
    at org.mozilla.javascript.Context.evaluateString(Context.java:752)
    at com.servoy.j2db.FormPanel.f(Unknown Source)
    at com.servoy.j2db.dataui.DataTextEditor$b.hyperlinkUpdate(Unknown Source)
    at javax.swing.JEditorPane.fireHyperlinkUpdate(JEditorPane.java:320)
    at com.servoy.j2db.util.e$e.a(Unknown Source)
    at com.servoy.j2db.util.e$e.mouseClicked(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
    at java.awt.Component.processMouseEvent(Component.java:5557)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5319)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4021)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3869)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3869)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Anyone else experiencing problems using OS X 10.4.5? Is there a fix/workaround?

Thanks
Patrick

I use something similar, the only difference is that I trigger a global method.
No problems for me under 10.4.5, nor in Developer nor in client.

Servoy Developer
Version R2 2.2.1-build 333
Java version 1.4.2-54 (Mac OS X)

That’s interesting. Still leaves the question why we have this problem on this single Macintosh only?!

A difference might be that we are using Java 1.5_05…

I just tested it with Java 1.5 and same thing. No errors.

Servoy Client and Developer
Version R2 2.2.1-build 333
Java version 1.5.0_05-48 (Mac OS X)

Thanks for your support :lol: But what is my problem, then?!

See if it does work for you when the method is global.

I made some research. An example solution with just two simple links does work on the Mac.

More interesting is this:

<td class="spaltenueberschrift" width="15%"> <a href="javascript:ZeigeTag(2006,1,13)">Mo, 13. Feb</a> <a href="javascript:neuerTermin(2006,1,13)"><img src="media:///kalender_neuer_termin.gif" border="0"></img></a></td>

When the mac user clicks on the first link (ZeigeTag), there is an error “could not eval String…”. But the second link (neuerTermin) does work?! Both are form methods, so being global or not does not seem to be the issue.

Any ideas anyone?

Hi Patrick,

One thought: did you try to execute “ZeigeTag(2006,1,13)” in a script to make sure you don’t have a silly bug somewhere?

Also check the casing of your method name.
You start with a capital on one method but not on the other.
They should both be inner-casing ?

Just an observation.

I made the same observation and tried both ways: no difference :?