Re: Problem running from Eclipse

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Sorry Valerio, 6 weeks is a long time indeed - you’ve been patient. JNI has to do with Java making calls to a C library. That’s the “native method” part. If it were me, I’d trash Eclipse and start over. I know that’s not what you want to hear but… Hmm… thinking some more… “NSCoding” lives

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Chuck, Maven likes to swallow things but I put the flags to not trim stack traces and to divert standard out but I haven’t gotten anything additional. I still might have missed a flag. I thought maybe I could add some logger statements into the WOnder version of NSBundle that replaces

Re: Maven Unit tests with EOF

2020-01-23 Thread Chuck Hill via Webobjects-dev
That error is definitely a static initializer or block throwing. Nothing else is output? > On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via Webobjects-dev > wrote: > > I tried this call: > > NSBundle MYBUNDLE = NSBundle.mainBundle(); > > It fails immediately with: > java.lang.NoClassDefFo

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Jesse you are correct. If you are compiling for one java version but running on another… you can get java.lang.NoClassDefFoundError - that’s because the object you used at compile time might not be available in that other runtime. While the error is the same, this feels different but your point

Re: ERFoundation question

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Interesting - perhaps it was a gift from a fruit company. AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On Jan 23, 2020, at 8:08 PM, Henrique Prange wrote: > > No, you’re not. Ther

Re: ERFoundation question

2020-01-23 Thread Henrique Prange via Webobjects-dev
No, you’re not. There's no source code for the ERFoundation framework. 😕 Sent from my iPhone > On 23 Jan 2020, at 13:51, Aaron Rosenzweig via Webobjects-dev > wrote: > > I want to put some logging messages in NSBundle.java that resides in > ERFoundation.jar but I don’t understand how to do s

Re: Maven Unit tests with EOF

2020-01-23 Thread Jesse Tayler via Webobjects-dev
Isn’t that what you get with some java version mismatch ?? > On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev > wrote: > > I tried this call: > > NSBundle MYBUNDLE = NSBundle.mainBundle(); > > It fails immediately with: > java.lang.NoClassDefFoundError: Could not initialize c

Re: Problem running from Eclipse

2020-01-23 Thread Valerio Luccio via Webobjects-dev
6 Weeks ago I sent this message, but got no replies. Really nobody has any clue ? btw: I get the same using a simple example app and trying from a clean workspace. On 12/9/19 2:23 PM, Valerio Luccio wrote: Hello all, I have Eclipse Mars.2 running on a Mac with Mojave with JavaSE 1.8. I ha

ERFoundation question

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
I want to put some logging messages in NSBundle.java that resides in ERFoundation.jar but I don’t understand how to do so. It looks like ERFoundation.jar lives inside of ERJars.framework and there is no source? How is that possible? I must be mistaken. AARON ROSENZWEIG / Chat 'n Bike

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
I tried this call: NSBundle MYBUNDLE = NSBundle.mainBundle(); It fails immediately with: java.lang.NoClassDefFoundError: Could not initialize class com.webobjects.foundation.NSBundle I’m suspecting it has to do with the static initializer of NSBundle. AARON ROSENZWEIG / Chat 'n Bike

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Riddle me this… how can you get a class not defined error from the class itself? java.lang.NoClassDefFoundError: Could not initialize class com.webobjects.foundation.NSBundle at com.webobjects.foundation.NSBundle.mainBundle(NSBundle.java:526) You are already in NSBundle.mainBundle() and

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hi Dennis - I hadn’t thought of that - we could have a fast failsafe and then a slow one run at different times. Thanks! good idea. AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On

Re: Maven Unit tests with EOF

2020-01-23 Thread Dennis Scheffer via Webobjects-dev
> Cloning a “company” EO and testing unique constraints in SQL - is heavier > than testing an “isCamelCase()” function but lighter than selenium. Maybe we > have to do it in failsafe but it feels closer to regular unit tests that > should fire every time there is a checkin to the repo. In other

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Hey everybody, I noticed that “NSBundle.java” is defined in ERFoundation and also JavaFoundation… It appears we aren’t using ERXPatcher to replace it and that might not even be an option… so you have to have ERFoundation loaded first for it to override. I do have it that way and Maven is doin

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Dennis that is a good point, At the moment I have not cleaned and the product is there but it’s not working but your point is still well taken. In Jenkins, in the cloud, it will do a clean and I really should be doing a clean every time so the product won’t be there to test with… there won’t be