classpath - 0.97.2-r8

View: New views
10 Messages — Rating Filter:   Alert me  

classpath - 0.97.2-r8

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all,
    is there version requirement on classpath when using jamvm_1.5.3?
Tried to run something and got the following error. As yet have found
nothing searching on Internet for info on this error.

Exception in thread "main" java.lang.InternalError: Expected reflection
field doesn't exist
   at java.lang.VMClass.getDeclaredConstructors(Native Method)
   at java.lang.Class.getDeclaredConstructors(Class.java:430)
   at java.lang.Class.newInstance(Class.java:1116)
   at java.util.logging.LogManager.createInstance(LogManager.java:854)
   at java.util.logging.LogManager.readConfiguration(LogManager.java:572)
   at java.util.logging.LogManager.readConfiguration(LogManager.java:527)
   at java.util.logging.LogManager.initLogManager(LogManager.java:203)
   at java.util.logging.LogManager.getLogManager(LogManager.java:168)
   at java.util.logging.Logger.getLogger(Logger.java:252)
   at java.util.logging.Logger.getLogger(Logger.java:211)
   at java.util.logging.Logger$1.run(Logger.java:94)
   at java.security.AccessController.doPrivileged(AccessController.java:96)
   at java.util.logging.Logger.<clinit>(Logger.java:90)
   at gnu.java.util.jar.JarUtils.<clinit>(JarUtils.java:65)
   at java.util.jar.Manifest.read(Manifest.java:162)
   at java.util.jar.Manifest.<init>(Manifest.java:89)
   at java.util.jar.JarFile.readManifest(JarFile.java:303)
   at java.util.jar.JarFile.<init>(JarFile.java:202)
   at java.util.jar.JarFile.<init>(JarFile.java:181)
   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:33)

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: classpath - 0.97.2-r8

by Robert Lougher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Arigead,

2009/10/2 Arigead <captain.deadly@...>:
>
> Hello all,
>    is there version requirement on classpath when using jamvm_1.5.3?
> Tried to run something and got the following error. As yet have found
> nothing searching on Internet for info on this error.
>

Yes, I've been wondering when you'd hit this problem :)  Ugrading to
JamVM 1.5.3 also requires updating GNU Classpath to 0.98 (the latest).
 I forgot to mention this, but the requirement is listed in both the
README and INSTALL files.

Hopefully this won't be very difficult to do.   If you really get
stuck, there is a way to add some compatibility classes so that JamVM
1.5.3 can work with Classpath 0.96/0.97, but it's a while since I've
done this so I'll need to work out which ones again.

Rob.

> Exception in thread "main" java.lang.InternalError: Expected reflection
> field doesn't exist
>   at java.lang.VMClass.getDeclaredConstructors(Native Method)
>   at java.lang.Class.getDeclaredConstructors(Class.java:430)
>   at java.lang.Class.newInstance(Class.java:1116)
>   at java.util.logging.LogManager.createInstance(LogManager.java:854)
>   at java.util.logging.LogManager.readConfiguration(LogManager.java:572)
>   at java.util.logging.LogManager.readConfiguration(LogManager.java:527)
>   at java.util.logging.LogManager.initLogManager(LogManager.java:203)
>   at java.util.logging.LogManager.getLogManager(LogManager.java:168)
>   at java.util.logging.Logger.getLogger(Logger.java:252)
>   at java.util.logging.Logger.getLogger(Logger.java:211)
>   at java.util.logging.Logger$1.run(Logger.java:94)
>   at java.security.AccessController.doPrivileged(AccessController.java:96)
>   at java.util.logging.Logger.<clinit>(Logger.java:90)
>   at gnu.java.util.jar.JarUtils.<clinit>(JarUtils.java:65)
>   at java.util.jar.Manifest.read(Manifest.java:162)
>   at java.util.jar.Manifest.<init>(Manifest.java:89)
>   at java.util.jar.JarFile.readManifest(JarFile.java:303)
>   at java.util.jar.JarFile.<init>(JarFile.java:202)
>   at java.util.jar.JarFile.<init>(JarFile.java:181)
>   at jamvm.java.lang.JarLauncher.main(JarLauncher.java:33)
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: classpath - 0.97.2-r8

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Lougher wrote:

> Hi Arigead,
>
> 2009/10/2 Arigead <captain.deadly@...>:
>> Hello all,
>>    is there version requirement on classpath when using jamvm_1.5.3?
>> Tried to run something and got the following error. As yet have found
>> nothing searching on Internet for info on this error.
>>
>
> Yes, I've been wondering when you'd hit this problem :)  Ugrading to
> JamVM 1.5.3 also requires updating GNU Classpath to 0.98 (the latest).
>  I forgot to mention this, but the requirement is listed in both the
> README and INSTALL files.
>
> Hopefully this won't be very difficult to do.   If you really get
> stuck, there is a way to add some compatibility classes so that JamVM
> 1.5.3 can work with Classpath 0.96/0.97, but it's a while since I've
> done this so I'll need to work out which ones again.
>
> Rob.
>

My bad sorry for disturbing you. Note to self read the readme now and
again. thanks for the heads up in spite of my omission in the reading
dept. ;-)



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Jamvm Performance

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,
   I posted previous emails to this list on the subject of JamVM and
JXTA. Unfortunately that was a few weeks ago as I got distracted by the
work that pays the bills ;-)

I should maybe explain what it is I'm trying to do. I'm eventually
hoping to run OSGi Bundles in a knophlerfish container on two embedded
devices. This is all for an EU Project on Personal Smart Spaces,
(whatever they are ;-)

The networking on this project is taken care of my Jxta, maybe "taken
care of" is a bit strong there. Anyhow this project is intended for
mobile devices and for some reason the project has gone with Sun Java 6.

Maybe that's enough of an intro. Part of the project is a AI system that
analyses users activity and tries to pre-empt what they will do by
learning. A simple example would be that if you're listening to music at
home and every time you receive a phone call on your mobile, that you
answer, you press pause on the music player. The system (Two devices
sharing info via Jxta) should learn this after a few calls and
automatically "press" pause for you.

That's a basic example but it'll do. I'd like to get this SW running on
a gumstix and an OpenMoko phone. To start out though I took a eeePC and
installed Ubuntu 9.10 Netbook Remix into it. Then installed Classpath
0.98 and JamVM 1.5.3, both from source code. I needed ecj and gcj
installed on the machine to get Classpath installed but then I removed
them and created a symbolic link of java to jamvm.

That done I startup knophlerfish and run a very simple bundle which uses
Java-DBus to "listen" for play and pause DBus signals from RhythmBox.

Now here's the question Is there any way that I can debug JamVM as I'm
missing occasional Play and Pause Signals. According to the system
monitor my CPU and memory aren't up to much so I don't think the system
is stretched at all. If anybody could offer me some advice I would be
most grateful. I think that if I'm missing signals on an 1.6GHz Intel
Atom, there's not much hope of getting this running effectively on the
OpenMoko's Arm.

Sorry for the long email but I thought I should explain a bit. Thanks a
million again for any help anybody can offer.

John

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Parent Message unknown Re: Jamvm Performance

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,
    Sorry about this, new to Java, well this indept part of java but
what is the GC Cycle? I suppose I should head to the Internet and learn
something. I'm off line at the moment so that'll have to wait until
morning. This email will go in the morning and I might have found out on
wikipedia by then.

Anyhow I should add to my previous email I've a few problems but the one
I have been facing is not a problem with Jamvm, well not as yet. ;-)
I've got knophlerfish osgi container running with a bundle of Java code
that listens to DBus signals (Simply play and pause from RhythmBox on
desktop of eee). At the same time as running that bundle in the osgi
container I have the identical code running as a stand alone Java App.
Both running on Jamvm and Classpath. In this set up the Standalone app
is receiving all the events but for some reason the osgi bundle doesn't.
All work fine with Sun Java 6 so there is something about that
combination of the osgi container and Jamvm.

I know that'll have to debug this somehow but where to start? Jamvm or
the osgi container.

David Griffiths wrote:

> Maybe it's during a GC cycle?
>
> Cheers,
>
> Dave
>
> On Thu, Nov 5, 2009 at 9:09 AM, Arigead <captain.deadly@...> wrote:
>> Hello all,
>>   I posted previous emails to this list on the subject of JamVM and
>> JXTA. Unfortunately that was a few weeks ago as I got distracted by the
>> work that pays the bills ;-)
>>
>> I should maybe explain what it is I'm trying to do. I'm eventually
>> hoping to run OSGi Bundles in a knophlerfish container on two embedded
>> devices. This is all for an EU Project on Personal Smart Spaces,
>> (whatever they are ;-)
>>
>> The networking on this project is taken care of my Jxta, maybe "taken
>> care of" is a bit strong there. Anyhow this project is intended for
>> mobile devices and for some reason the project has gone with Sun Java 6.
>>
>> Maybe that's enough of an intro. Part of the project is a AI system that
>> analyses users activity and tries to pre-empt what they will do by
>> learning. A simple example would be that if you're listening to music at
>> home and every time you receive a phone call on your mobile, that you
>> answer, you press pause on the music player. The system (Two devices
>> sharing info via Jxta) should learn this after a few calls and
>> automatically "press" pause for you.
>>
>> That's a basic example but it'll do. I'd like to get this SW running on
>> a gumstix and an OpenMoko phone. To start out though I took a eeePC and
>> installed Ubuntu 9.10 Netbook Remix into it. Then installed Classpath
>> 0.98 and JamVM 1.5.3, both from source code. I needed ecj and gcj
>> installed on the machine to get Classpath installed but then I removed
>> them and created a symbolic link of java to jamvm.
>>
>> That done I startup knophlerfish and run a very simple bundle which uses
>> Java-DBus to "listen" for play and pause DBus signals from RhythmBox.
>>
>> Now here's the question Is there any way that I can debug JamVM as I'm
>> missing occasional Play and Pause Signals. According to the system
>> monitor my CPU and memory aren't up to much so I don't think the system
>> is stretched at all. If anybody could offer me some advice I would be
>> most grateful. I think that if I'm missing signals on an 1.6GHz Intel
>> Atom, there's not much hope of getting this running effectively on the
>> OpenMoko's Arm.
>>
>> Sorry for the long email but I thought I should explain a bit. Thanks a
>> million again for any help anybody can offer.
>>
>> John




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm Performance

by David Griffiths-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I believe JamVM uses a "stop-the-world" Garbage Collector, so called
because when you run out of heap it has to stop all threads while the
Garbage Collector (GC) runs. The GC pause can be quite long depending
on how many objects are in the heap. There are other JVMs out there
that minimise this pause through the use of more sophisticated GC
algorithms but at the cost of increased complexity and footprint.

Cheers,

Dave

On Thu, Nov 12, 2009 at 3:01 PM, Arigead <captain.deadly@...> wrote:
> Hi David,
>    Sorry about this, new to Java, well this indept part of java but
> what is the GC Cycle?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm Performance

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Griffiths wrote:

> I believe JamVM uses a "stop-the-world" Garbage Collector, so called
> because when you run out of heap it has to stop all threads while the
> Garbage Collector (GC) runs. The GC pause can be quite long depending
> on how many objects are in the heap. There are other JVMs out there
> that minimise this pause through the use of more sophisticated GC
> algorithms but at the cost of increased complexity and footprint.
>
> Cheers,
>
> Dave
>
> On Thu, Nov 12, 2009 at 3:01 PM, Arigead <captain.deadly@...> wrote:
>> Hi David,
>>    Sorry about this, new to Java, well this indept part of java but
>> what is the GC Cycle?
>

thanks David,
   given my code is in an osgi bundle running in the Knophleurfish osgi
container there may well be a lot of garbage to collect. That might well
be my issue. :-(

John

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm Performance

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

David Griffiths wrote:

> I believe JamVM uses a "stop-the-world" Garbage Collector, so called
> because when you run out of heap it has to stop all threads while the
> Garbage Collector (GC) runs. The GC pause can be quite long depending
> on how many objects are in the heap. There are other JVMs out there
> that minimise this pause through the use of more sophisticated GC
> algorithms but at the cost of increased complexity and footprint.
>
> Cheers,
>
> Dave
>
> On Thu, Nov 12, 2009 at 3:01 PM, Arigead <captain.deadly@...> wrote:
>> Hi David,
>>    Sorry about this, new to Java, well this indept part of java but
>> what is the GC Cycle?
>

I should have asked in that previous email is there any way that I can
enable some debug in the Jamvm build I have to see if this is the
problem. I'm building from source so if there's debug I can easily
switch it on if that'll shed some light onto things. Of course the
overhead of debug might not help me.

Thanks for your help

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm Performance

by Robert Lougher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adding -verbosegc to the command line will show when a gc occurs, and
how long it takes.

Rob

2009/11/12 Arigead <captain.deadly@...>:

> David Griffiths wrote:
>> I believe JamVM uses a "stop-the-world" Garbage Collector, so called
>> because when you run out of heap it has to stop all threads while the
>> Garbage Collector (GC) runs. The GC pause can be quite long depending
>> on how many objects are in the heap. There are other JVMs out there
>> that minimise this pause through the use of more sophisticated GC
>> algorithms but at the cost of increased complexity and footprint.
>>
>> Cheers,
>>
>> Dave
>>
>> On Thu, Nov 12, 2009 at 3:01 PM, Arigead <captain.deadly@...> wrote:
>>> Hi David,
>>>    Sorry about this, new to Java, well this indept part of java but
>>> what is the GC Cycle?
>>
>
> I should have asked in that previous email is there any way that I can
> enable some debug in the Jamvm build I have to see if this is the
> problem. I'm building from source so if there's debug I can easily
> switch it on if that'll shed some light onto things. Of course the
> overhead of debug might not help me.
>
> Thanks for your help
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: Jamvm Performance

by Arigead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Lougher wrote:

> Adding -verbosegc to the command line will show when a gc occurs, and
> how long it takes.
>
> Rob
>
> 2009/11/12 Arigead <captain.deadly@...>:
>> David Griffiths wrote:
>>> I believe JamVM uses a "stop-the-world" Garbage Collector, so called
>>> because when you run out of heap it has to stop all threads while the
>>> Garbage Collector (GC) runs. The GC pause can be quite long depending
>>> on how many objects are in the heap. There are other JVMs out there
>>> that minimise this pause through the use of more sophisticated GC
>>> algorithms but at the cost of increased complexity and footprint.
>>>
>>> Cheers,
>>>
>>> Dave
>>>
>>> On Thu, Nov 12, 2009 at 3:01 PM, Arigead <captain.deadly@...> wrote:
>>>> Hi David,
>>>>    Sorry about this, new to Java, well this indept part of java but
>>>> what is the GC Cycle?
>> I should have asked in that previous email is there any way that I can
>> enable some debug in the Jamvm build I have to see if this is the
>> problem. I'm building from source so if there's debug I can easily
>> switch it on if that'll shed some light onto things. Of course the
>> overhead of debug might not help me.
>>
>> Thanks for your help
>>

Hello Me again,
    thanks a million for all your previous help on this but I fear I may
be on the wrong list but I'm sure it's going to be a very difficult
problem to pin down. I've looked into running jamvm with the -vorbosegc
switch and I'll paste a little run of my OSGi Bundle at the end of this
email.

The reason I say that this is going to be hard to pin down is that I now
have my code as both a simple stand alone Java App and a Simple OSGi
Java Bundle. All the code does is establish a DBus connection and
"register an interest" in the RhythmBox music player status. I'm running
on linux, if that's an issue.

So under Sun Java 6 both the Stand alone App and the OSGi Bundle running
in Knophleurfish run perfect.

Under Jamvm the Stand alone App runs perfect but the OSGi Bindle are not
getting events. Perhaps I should be talking to an OSGi List but I'm sure
they'll just say that if the Bundle runs perfect under Sun Java 6 then
it's not their problem.

Likewise the members of this list would be well with in their rights to
say if the Stand Alone App works then it's obviously an OSGi Problem and
not a Jamvm Problem.

Oh well a cup of tea and a ponder ;-) Anyhow the verbose output gives me
a regular stream of garbage collection but not what I'd call excessive.
Perhaps I could try all this on my bigger 64Bit faster Server then this
laptop, which I like to work on.

If anybody has any more ideas I'd be only too happy to hear them

Thanks



<GC: Alloc attempt for 576 bytes failed.>
<GC: Allocated objects: 110699>
<GC: Freed 41277 object(s) using 6692040 bytes>
<GC: Largest block is 115384 total free is 9927264 out of 16777208 (59%)>
<GC: Mark took 0.132633 seconds, scan took 0.003852 seconds>
<GC: running 87 finalisers>
<GC: Alloc attempt for 32784 bytes failed.>
<GC: Allocated objects: 110252>
<GC: Freed 39070 object(s) using 6580352 bytes>
<GC: Largest block is 156240 total free is 10077952 out of 16777208 (60%)>
<GC: Mark took 0.104187 seconds, scan took 0.003806 seconds>
<GC: running 85 finalisers>
<GC: Alloc attempt for 7472 bytes failed.>
<GC: Allocated objects: 109862>
<GC: Freed 32370 object(s) using 6740600 bytes>
<GC: Largest block is 122016 total free is 10116952 out of 16777208 (60%)>
<GC: Mark took 0.085880 seconds, scan took 0.003669 seconds>
<GC: running 64 finalisers>
<GC: Alloc attempt for 32784 bytes failed.>
<GC: Allocated objects: 111505>
<GC: Freed 38972 object(s) using 6719072 bytes>
<GC: Largest block is 156240 total free is 9935288 out of 16777208 (59%)>
<GC: Mark took 0.112957 seconds, scan took 0.003821 seconds>
<GC: running 85 finalisers>






>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Jamvm-general mailing list
>> Jamvm-general@...
>> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>>
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general