Thanks all!

i noticed many parsers are still on java 1.4 and dont understand 1.5.

Like the SAXParserFactory and other XML Parsers.
WebObjects still uses that old one even when a newer one is installed.

To get around this download the newest xerces and use following in your code:

System.setProperty("javax.xml.parsers.SAXParserFactory", "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");

This is a workaround and i am not quite sure if it works fine for everything.

I don't get it why there is this mixture of both java versions...

Anyway, many thanks!

Christian Telepski

Am 22.03.2007 um 02:43 schrieb Mike Schrag:

This one is broken on 1.4 also ... I never use any java Collections interfaces on any NS* collection object. It's just a grab bag as to whether it is broken or not.

ms

On Mar 21, 2007, at 6:37 PM, Ian Joyner wrote:

There is one issue I have found – Iterator does not cause faults to be loaded. Thus if you use:

        Iterator <EOGenericRecord> t = an_array.iterator ()

you will get nothing, whereas the Enumeration form works fine:

        Enumeration <EOGenericRecord> e = an_array.objectEnumerator ()

So don't update your enumerations to the new (cleaner and less verbose) iterator until this problem is fixed. At least the generic form works with Enumeration so those horrible type casts disappear.

Don't know if that would be your problem though.

Ian

On 22/03/2007, at 12:36 AM, Christian Telepski wrote:

Hi everyone,

i have a problem of using some third-party jars.

I always get error messages when accessing those jars like "com.webobjects.foundation.NSForwardException [java.lang.ExceptionInInitializerError] null"

Now i thought maybe that the version those jars are using is newer than the one used by WebObjects.

In Terminal i write java -version and i get 1.5.0_07.

But im not quite sure if WebObjects does this???
So does WebObjects run under 1.4 or 1.5.

And if it runs under 1.4 then how to get WebObjects to use 1.5?

I have WebObjects 5.3 and OS X 10.4.9 on G4 PowerBook

Many thanks in advance and best regards,

Christian Telepski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ian.joyner% 40sportstec.com

This email sent to [EMAIL PROTECTED]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ christian.telepski%40pages.unibe.ch

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to