# Hyperlink problem on Mac OS X 10.4.5

**URL:** <https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522>\
**Category:** Classic Servoy\
**Created:** [February 24, 2006, 11:04am UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522 "2006-02-24T11:04:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 24, 2006, 11:04am UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/1 "2006-02-24T11:04:27Z")

</div>

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:

```auto
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:

```auto
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:

```auto
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

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 24, 2006, 1:35pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/2 "2006-02-24T13:35:44Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 24, 2006, 1:50pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/3 "2006-02-24T13:50:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 24, 2006, 1:51pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/4 "2006-02-24T13:51:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 24, 2006, 2:27pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/5 "2006-02-24T14:27:09Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 24, 2006, 3:19pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/6 "2006-02-24T15:19:09Z")

</div>

Thanks for your support ![:lol:]( "Laughing") But what is my problem, then?!

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 24, 2006, 3:47pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/7 "2006-02-24T15:47:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 24, 2006, 4:47pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/8 "2006-02-24T16:47:06Z")

</div>

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

More interesting is this:

```auto
<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?

---

<div class="post-metadata">

**Author:** ![swingman](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/swingman/32/4536_2.png) [@swingman](https://forum.servoy.com/u/swingman)\
**Post date:** [February 24, 2006, 5:07pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/9 "2006-02-24T17:07:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [February 24, 2006, 5:30pm UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/10 "2006-02-24T17:30:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 25, 2006, 12:04am UTC](https://forum.servoy.com/t/hyperlink-problem-on-mac-os-x-10-4-5/5522/11 "2006-02-25T00:04:08Z")

</div>

I made the same observation and tried both ways: no difference ![:?]( "Confused")
