-
Okay I can't get Java to actually WORK
I made a new application, set it to Java Stand-alone internet applet and put in a backdrop.
When I run it I get this error
Quote:
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1e893df, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@147c1db
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: completed perf rollup
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: UniversalJavaPermission enabled
Exception in thread "Thread-60" java.lang.NullPointerException
at Application.CRunApp.load(Unknown Source)
at Application.CApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Now I looked at the compatiable extension list, and it says that Java should be able to handle a backdrop so what the hell am I doing wrong here >:V
-
Re: Okay I can't get Java to actually WORK
Okay so I fixed it by compiling it in HWA instead of the newest standard build
...what the hell
-
Re: Okay I can't get Java to actually WORK
But hey guess what the java beta is so awesome it works locally but not on my webhost (which works perfectly fine with aynthing else)
Again, the error is
Quote:
Exception in thread "Thread-158" java.lang.NullPointerException
at Application.CRunApp.load(Unknown Source)
at Application.CApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
ClickTeam make your betas useful so that you can actually use them
-
Re: Okay I can't get Java to actually WORK
I am unsure what your doing wrong as it seems to be working for others. I think we would need more information and would need to know what your selecting as your build before uploading it to your host. There are 3 different Java things to choose from.
Are you uploading an applet or something else?
Edit - If its a stand alone Java application I think you need to select Applet -- Trying to decipher your posts about whats wrong.
-
Re: Okay I can't get Java to actually WORK
as I said in my first post, it's a stand-alone java internet applet. I'm using the provided HTML, even.
-
Re: Okay I can't get Java to actually WORK
Hmm I don't know what your doing wrong.
I just thru one up on my cheap powweb site and it seems to work fine. Just a backdrop object
http://www.flyin.com/java_test/test.htm
Have you updated to build 248?
If you could put up some links to your test page maybe the error message would help track it down. (Rather then just reading the error message you posted)
-
Re: Okay I can't get Java to actually WORK
Yes I'm using the latest build, along with HWA.
MFA here:
http://mechaware.net/index.mfa
When I upload it it goes like this:
http://mechaware.net/
-
Re: Okay I can't get Java to actually WORK
I don't get an error message when I visit your page.
Do you get the same error when you visit my page?
Note - I am not using the HWA beta but that shouldn't make any effect on this.
-
Re: Okay I can't get Java to actually WORK
No I don't.
But does my java applet show up on my page? It should be a blue background
-
Re: Okay I can't get Java to actually WORK
Yes I see it perfectly fine no errors.
-
Re: Okay I can't get Java to actually WORK
Really? Because I had other guys look at it too and they all had errors.
-
Re: Okay I can't get Java to actually WORK
What version of Java do you have on your computer?
Yes I swear it works fine I could video capture me going to the page if you don't believe me.
-
Re: Okay I can't get Java to actually WORK
Version 6 update 7 (build 1.6.0_07-b06)
and this is what it appears for me and everyone else
http://mechaware.net/fightnight.png
I dunno it could be a language issue considering it refers to "java.lang" but then again I know nothing about java
-
Re: Okay I can't get Java to actually WORK
I have version 6 build 10 running under Vista
I just went there with IE, Firefox, and Chrome and got the blue background -- Very odd. I will jump over to my XP machine to see if I can see an error.
Is there anyone else who can go to http://mechaware.net/ and report if they get an error or not?
-
Re: Okay I can't get Java to actually WORK
Works fine for me:
Java Plug-in 1.6.0_03
Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
Which is a slightly older version. I'll see what happens when I upgrade.
-
Re: Okay I can't get Java to actually WORK
wait it works now, I deleted the catche.
I even figure out what's wrong! I made a java application that scaled an image to 0.01, and it just gave me the white screen. Then when I removed that event and ran the application again it would still be white, but removing the catche fixes this.
What I'm saying is if you do something java doesn't like once, it'll stop working until you clear your catche.
Which is why it explains it didn't work for the other people either, because I showed them the 0.01 scale version aswell.
-
Re: Okay I can't get Java to actually WORK
Whew thats good news I suppose :)
I was just about to beat my head into the desk since your page got the error and the page I made didn't ... it didn't make sense.
-
Re: Okay I can't get Java to actually WORK
Yeah but it's kinda not-cool that if one application makes an error every other application stops working
and when will you fix that you can't overwrite .tar files you've run until a long time after
-
Re: Okay I can't get Java to actually WORK
Okay now it's not working again, and the catche doesn't seem to fix it. And I didn't even change a thing (and I have no scaling).
Quote:
Your JRE version number-javaVersionInt: 607
Current JRE version on Java.com - currentJREinTextInt: 607
Your Operating System: windows xp
Your OS Version: 5.1
Your system architecture: x86
Exception in thread "Thread-303" java.lang.IllegalArgumentException: Width (393) and height (0) cannot be <= 0
at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at Sprites.CSpriteGen.recalcSpriteSurface(Unknown Source)
at Sprites.CSpriteGen.spriteUpdate(Unknown Source)
at RunLoop.CRun.screen_Update(Unknown Source)
at RunLoop.CRun.f_GameLoop(Unknown Source)
at RunLoop.CRun.doRunLoop(Unknown Source)
at Application.CRunApp.loopFrame(Unknown Source)
at Application.CRunApp.playApplication(Unknown Source)
at Application.CApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
at sun.awt.image.ImageRepresentation.createBufferedIm age(Unknown Source)
at sun.awt.image.ImageRepresentation.setPixels(Unknow n Source)
at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
at sun.awt.image.PNGImageDecoder.sendPixels(Unknown Source)
at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unkno wn Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
Exception in thread "Thread-315" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
at sun.awt.Win32GraphicsConfig.createCompatibleImage( Unknown Source)
at Application.CRunApp.startTheFrame(Unknown Source)
at Application.CRunApp.playApplication(Unknown Source)
at Application.CApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-322" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
at sun.awt.Win32GraphicsConfig.createCompatibleImage( Unknown Source)
at Application.CRunApp.startTheFrame(Unknown Source)
at Application.CRunApp.playApplication(Unknown Source)
at Application.CApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWr itableRaster(Unknown Source)
at sun.awt.image.ImageRepresentation.createBufferedIm age(Unknown Source)
at sun.awt.image.ImageRepresentation.setPixels(Unknow n Source)
at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
at sun.awt.image.PNGImageDecoder.sendPixels(Unknown Source)
at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unkno wn Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
Exception in thread "Thread-328" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-334" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-340" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-345" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Thread-352" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
help
also this time it seems to eat alot of CPU, almost crashing my Firefox
-
Re: Okay I can't get Java to actually WORK
I don't think Clickteam can do anything about the cache its not really under our control its the Java itself on your computer - Perhaps you need to reboot?
-
Re: Okay I can't get Java to actually WORK
I suspect the problem is Java has run out of memory...
Edit: Can you attach the MFA that is causing this problem?
-
Re: Okay I can't get Java to actually WORK
Hmm is it possible a thread is stuck in Java running in the background?
-
Re: Okay I can't get Java to actually WORK
but I don't get why exactly
I mean, I did nothing wrong.
But hey you guys should test it out for yourself
here's the mfa
I added a few things but that shouldn't cause anything.
I dunno about the thread thing, but I will try and reboot as suggested.
-
Re: Okay I can't get Java to actually WORK
Its a beta perhaps you are using an object/condition/action that has a problem without the exact file that can reproduce the error its hard to look into.
-
Re: Okay I can't get Java to actually WORK
Quote:
Originally Posted by Jeff
Its a beta perhaps you are using an object/condition/action that has a problem without the exact file that can reproduce the error its hard to look into.
I included it above
-
Re: Okay I can't get Java to actually WORK
Hey guess what
I reboot and it work perfectly
this thing is screwed up :V
-
Re: Okay I can't get Java to actually WORK
Works OK for me so I don't know what the issue is...
(Ahh, why didn't I suggest 'have you tried switching it off then on again'? It works a surprising number of times ;)
-
Re: Okay I can't get Java to actually WORK
Another Idea:
If its a cache problem -- if you give your new file a new name does it work?
I uploaded it on my server http://www.flyin.com/java_test/homepage.htm
And its working here for me.
-
Re: Okay I can't get Java to actually WORK
okay I think I somewhat got the issue here
1) I resize my image and java stops working
2) java keeps eating memeory until I reboot
3) I reboot, java works again until I resize
However, it only stops working when I resize to 0.01 or lower.
So yeah it works now, but jesus I had a hell of a time figuring this out :V
-
Re: Okay I can't get Java to actually WORK
Alright, I'm about to throw my java beta out of the window >:V
I keep getting the NullPointerException error at random times, and once it appears, it won't go away. Sometimes a reboot work, sometimes a catche-cleaning work, and sometimes, nothing seems to help it. I tried to remove everything in my application, events, active objects, everything, and it still gets me the errors.
And sometimes (not always) it works switching to HWA, and sometimes back to standard.
tl;dr: java beta is buggy like hell
-
Re: Okay I can't get Java to actually WORK
Perhaps you should try re-installing Java?
That might work...
-
Re: Okay I can't get Java to actually WORK
The link to your mfa does not work. Can you post it back, I need to see the application.
Remember it is a beta. So it has bugs. A lot of people had no problems at all with the Java beta, and they did not say that it was buggy like hell.
Send me you mfa, and I will be able to debug!
-
Re: Okay I can't get Java to actually WORK
Do you have the latest version of Java installed?
-
Re: Okay I can't get Java to actually WORK
Yes I do, as stated about my version is 6 update 7 (build 1.6.0_07-b06) which is the latest.
I've send the file to Francois so that he can have a look at it
-
Re: Okay I can't get Java to actually WORK
It works okay for me at college - an XP system using IE6.
-
Re: Okay I can't get Java to actually WORK
Quote:
Originally Posted by Shaun
It works okay for me at college - an XP system using IE6.
I obviously only kept the working one up
-
Re: Okay I can't get Java to actually WORK
Are you using MSIE for a browser?
If so go to tools, internet options, and go to the history settings button. There you will find a setting that asks if you want it to look at the code every visit to the page. By default it is set to Auto and that can give bad results in some cases. By setting it to every visit to the page it will then pull new data every time you visit. On broadband you will never know you changed it.
This may help the cache issues...
Hope it helps.
Later,
K
-
Re: Okay I can't get Java to actually WORK
No I'm using Firefox like a said a few posts above.
-
Re: Okay I can't get Java to actually WORK
Ah so you did, I see it now, good luck with that issue bud!
-
Re: Okay I can't get Java to actually WORK
it works ok for me windows xp pro + internet explorer 7.
Display is a bit glitchy, though...or maybe that's the way it's supposed to be.