|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
classpath - 0.97.2-r8Hello 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-r8Hi 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-r8Robert 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 PerformanceHello 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 PerformanceI 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 PerformanceDavid 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 PerformanceDavid 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 PerformanceAdding -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 PerformanceRobert 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 |
| Free embeddable forum powered by Nabble | Forum Help |