Java applet hangs
Greetings
Any version of Java when loading the applet hangs when the primary boot after opening the browser (page update corrects the situation).
Parameters of access to run Java on the site exposed in: allow always and run in not safe mode.
On the Mavericks had no such problems (
iMac13,2
Hello s.bel,
The Java update linked below may help resolve this error.
Java for OS X 2014-001
http://support.apple.com/kb/DL1572
Cheers,
Allen
Similar Messages
-
Multiple Java Applets hangs when run on Win 2000 Pro SP4
I have a Java Applets which is used to connect to a remote element using server socket connections.
When I launch mulitple applets to connect to different elements on Win XP with SP2 OS using IE6 SP2 it works fine.
However ,the same I do in Win2K Pro SP4 with IE6 SP1 it doesn't work. In this case all the applets hung.
Does Java applet has platform specific problem? Any pointers regarding this problem highly appreciated.
TIA,...SachinDoes anyone know if there is any bug creating socket connection from Windows 2000 pc with Service Pack 4?
Thanks in advance.
Biju -
BROWSER HANGING WITH LOADING JAVA APPLET
HI
WHEN I RUN THE FORM ON THE EXTERNAL
BROWSER.(USING OPTION RUN A FORM ON THE WEB).
FILLING IN ALL THE DETAILS.
BROWSER HANGS WITH MESSAGE LOADING JAVA APPLET.
TEST.FMX IS IN THE FORMS60 PATH.
I NEED HELP THANKS
DEEPAK.
nullTry using the java console to get more info on what is hapenning.
If you have using Jinitator its on the jinitator control panel. -
Hi,
I have a java applet that ftps files back to a server. It is correctly signed and can access files on the hard drive.
When downloaded and run as a local applet it works fine, however when downloaded as a remote applet it just hangs at the line
FTPClient ftp = new FTPClient();
No error messages, no clue, just gets no further than that.
Apologies if this is a bit vague or missing any vital information, but java isn't really my thing....
Cheers
RalphThanks, I'm running 1.6.0_12.
No, FF has the option but nothing happens when I click on it. I just upgraded today from v3.5.x because under that version the option is there but when clicked on it deactivates the option. I first tried upgrading to the latest console plugin for FF. As soon as I installed it and FF restarted it said that it was desupported and next time it re-started it just does nothing as I said. So I upgraded to v3.6.13 and re-started and same same. It says it's de-supported. I dunno.
Anyway, I went to the System tray Java icon and right-clicked on it and clicked on properties. Under 'Advanced | Java Console' I see I had it as "hide Console". I changed it to "Show Console". When I started an Applet I got the console. I closed it and now I don't get it again. Weird.
I just cancelled the Java icon in the system tray and restarted it. I checked it back to Hide the Java Console and "Apply", then Show it, and "Apply". Then I started an Applet. No dice. I started it again and Got the Console. But is seems if I close it I can't get it back without all this riggamorole. -
Applet hangs web server when upgrading from 1.6 to 1.7
I've got a client-side printing application which works fine on 1.6 and fails on 1.7 where it essentially hang the server on the connect option to the server and loading the jar file. Specifics:
PC Client running windows 7 x64
Browser versions IE9, IE10, Firefox 17.0.1 (PC-client) all fail
Client PC has latest Java 1.7.0 10-b 18 installed
Web server is Apache2.4.3 x64 running on Windows 2008 Server R2 through the network
Jar file is signed and the certificate is loaded
Apache server is sitting on another server through a network connection. Backrev java to 1.6 and it passes. I've specified the -Djava.net.prefIPv4Stack=true option in the applet call but it doesn't fix the issue.
The java console loads but then hangs on the connecting portion:
Java Plug-in 10.10.2.18
Using JRE version 1.7.0_10-b18 Java HotSpot(TM) Client VM
User home directory = C:\Users\user
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@1ae81ab
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.org.glassfish.external.,com.sun.org.glassfish.gmbal.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: --- parseCommandLine converted : -Djava.net.preferIPv4Stack=true
into:
[-Djava.net.preferIPv4Stack=true]
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@8bbbf4
basic: Plugin2ClassLoader.addURL parent called for http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
network: Cache entry found [url: http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar, version: null] prevalidated=true/0
cache: Adding MemoryCache entry: http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar
cache: Resource http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar has expired.
network: Connecting http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar with proxy=DIRECT
network: Connecting http://10.100.1.61:80/ with proxy=DIRECT
network: Connecting http://10.100.1.61/patholog/java/patholog/dist/PathologLibS.jar with cookie "Patholog=vl141e491gffhpc07aupt0rnq5"
What is most irritating is that a local instance for debugging (i.e. apache2.4.3 x64) running locally and running the application on the same machine) passes perfectly so it appears that it involves a network connection rather than a localhost operation.
I noticed on a good connection the server returns with ResponseCode 304. I do not see that line in the log on the failing applet load. Apache logs set at debug show no errors even though the operation hangs the server.
Anyone got any ideas on how to debug and resolve this?
-Thanks
-GMore information:
Installed jre.1.6.37 (x32 version) along with 1.7.10 (x32 version) and the applet loads. Installed 1.7.10 (x32 version) only on the windows 7 x64 client fails. I've done both the x-java-applet method and the JNLP method and both hang. The JNLP j2se version is set to "1.6+" so in theory 1.7 should jre should work fine without a 1.6.37 loaded.
I've got wireshark dumps that I'm analyzing and noticed that there two OCSP responses (successful) but nothing after that, specifically where it hangs. Any ideas on how to debug this further? -
How to Debug Java Applet called in a BSP Component
Hi All,
In CRM Marketing->Segments->Graphical Modeler
A click on settings button will load a Java Applet window.
The settings window displays some elements. I want to translate a text displayed in that Java Applet window.
Please let me know the ways to debug a Java applet loaded from BSP Component or ways the data is loaded into Java applet from SAP.
Your help would be appreciated and points will be rewarded.
Thanks a lot in advance.For the newbies, like me:
Instruction to setup and debug an applet in Eclipse IDE via your Browser
Java Console Setup for Applet debugging:
1. Open up the Java Console Application by double clicking on it at C:\Program Files (x86)\Java\jre1.6.0_03\bin\javacpl.exe
2. Select the Java Tab
3. View Applet Runtime Settings button
4. Enter in the Java Runtime Parameters the following: -Xdebug -Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=y
5. Note: the port address 5555 can be anytime you want. You will need to enter whatever number you select into Eclipse IDE.
6. Note: if you don�t need to debug code in the Applet�s init() method, then use....suspend=n (Not tested yet.)
Eclipse setup for Applet debugging:
1. Open up Eclipse and create your Applet. Once you are ready to debug go to the next step.
2. Select the top level Run menu
3. Pick the Open Debug Dialog� option
4. In the left column select Remote Java Application
5. Then select the �New� button to create a debug configuration for the remote session (the new button looks like a page with a yellow plus in the upper right hand corner)
6. Give your session a name. I used the class name followed with the work remote for example: mainclassnameRemote
7. Set connection type to Standard (Socket Attached)
8. Host to localhost
9. Port to 5555, or whatever you used in Java Console Setup step 5.
10. Due not check the �Allow termination of remote VM�
11. Due not close this window.
Start debugging:
1. Go to your Applet html launch file and launch in a browser
2. Then go back to eclipse and select the debug button
3. Eclipse should now throw you into the debugger mode.
4. If it hangs, just retry again. It seems to work ok most of the time. A few time I need to close the browser and start over and then it seems to work. -
Safari 6.0.4 - java applet keeps running when not in use?
Mac OS X 10.7.5
Safari 6.0.4
all the latest updates (software) as of 4/27/13
Oracle's Java r 21 also installed (latest)
website: http://javatester.org/version.html
NOTE: I have seen this on more than 1 computer that the 1st time running the Java applet (after clicking on the plugin missing placeholder, the app appears to begin loading, but 'hangs' as far as UI is concerned, although it is using CPU and accessing the disk the whole time.
Refreshing the page then allows you to see the Oracle java version displayed in the pink box
However, what I notice is that if you enter a new URL and go there, blowing away the Java applet page, guess what's still running in the background (via Activity Monitor) "Java Applet - javatester.org", occupying memory and using some small CPU.
this seems like ridiculously bad behavior in general. Has anyone else seen similar issues? is this related to an outstanding memory leak (bigger problem) in Safari? Any way to get java to behave if you aren't possibly using an applet?
could it be lazy cleanup/garbage collection in Safari? meaning it might vanish from the process list at some indeterminate point in the future? closing the tab it was running on (before a new URL was loaded) outright doesn't seem to kill it.I have not used Onyx recently, although i use a number of other utils, and reset safari periodically.
It seems that it may be a delayed garbage collection issue. If I leave it for a bit and then come back it seems that the process is disappearing. If I can isolate anything more reliably I'll post again, but for now I'm going to stop worrying about it.
It was lingering long enough I thought maybe was a leak, but i guess I'm just not patient enough...
Also, I haven't reliably reproduced the high CPU cycle / hung applet condition on the 1st load. that may be something that shouldn't be going on (regarding the new security around java probably) but low pain point once I reload the page and tell safari to let the app run all the time.
so just to recap
- looks like the applet persistence in the process table is a delayed disposal issue that eventually gets done
- hanging applet on 1st load post security patch may be something, but hitting cmd-R is a lot more satisfying than devoting a lot of time to tracking that down right now
thanks for your suggestion -
Java Applet not kicking off thru "Self Service"
Cloned New Application Environment using production alike environment, I could login and navigate and view forms for various application users.
But After login thru self service and click on any options under right panel, it hangs with out kicking off Java Applet and next screens.
Any help is highly appreciated.
Regards
Raosorry, I could login and navigate and view forms for various application users using normal login "host:8582/dev60cgi/f60cgi?" But not thru self service.
Thanks -
Forms Applet hangs after configuration of webutil
Hi,
I have Oracle Application Server 10g Release 2 with Oracle Database 10g on Windows 2000 server. Browser is IE6
Our application was working fine. But for one of the functionality, we used webutil and after configuration of webutil on AS, the application is not launching.
Applet hangs showing applet initiated and in java console it shows
Downloading http://localhost/forms/java/frmwebutil.jar to JAR cache
RegisterWebUtil - Loading WebUtil Version 1.0.6.
I have signed both frmwebutil.jar and jacob.jar.
I have followed all steps mentioned in the document for configuration.
I think still there is something missing.
Please give some pointers on resolving this issue.
Thanks
ATDo the following:
1. On client machine, exit all open browsers.
2. If you are running Developer Suite, stop OC4J.
3. Manually delete JAR cache. Delete all files in:
C:\Documents and Settings\<USER NAME>\Oracle Jar Cache
4. Delete the following file (your JInitiator version may be different):
C:\Documents and Settings\<USER NAME>\jinitiator13129.trace
5. Open the Jinitiator Control Panel which can be found on the Windows Control Panel and add the following to the "Java Runtime Parameters" on the Basic tab:
-Djavaplugin.trace=true -Djavaplugin.trace.option=basic
Click on Apply and exit the Control Panel
6. On the server, add the following to the formsweb.cfg:
WebUtilLogging=on
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
6. If the server is a Unix platform, recompile the form and ensure that you use the COMPILE_ALL=YES option.
7. Retest one time. Do not try more than one time as this will create too many entries in the trace file.
8. After the failure has reproduced, exit the form and the browser. Open the new jinitiator13129.trace file and carefully review. It is likey you will find the cause of the problem in this file. At minimum, a hint should be offered. -
JavaFX applets hang on Vista 64
I'm unable to run any applet that uses JavaFX on my 64-bit Vista machine (Vista Business 64-bit, SP2). The applet hangs during the Java loading animation. It consumes no CPU. For example, the Vancouver Olympics medal viewer (http://www.vancouver2010.com/olympic-medals/geo-view/). This happens on both Firefox (v3.6) and IE 8. On Firefox, it hangs the whole browser until I use Process Explorer to kill the Java subprocess. On IE, it does not hang the browser; the loading animation just spins forever. On Firefox, I turned on logging in the Java console (which also hangs) but saw nothing obvious. The last four lines are
Load Geographic View
reset view 2010
getEligibleCountriesForCurrentYear
network: Cache entry found [url: http://www.vancouver2010.com//api/country/list.json, version: null] prevalidated=false/0
I'm using Sun JDK 1.6.0_18, and it happens with both the 32- and the 64-bit versions. (Also, I have the JavaFX 1.2 SDK installed). Note that non-JavaFX applets work fine, for example the demo applets that ship with the JDK. One more data point: the Java EE 6 installer hangs also. The splash screen appears, then it opens a new window, then it hangs. The new window never fully paints. I don't know if this is related to my JavaFX troubles.
I'm a developer evaluating Java EE 6 and JavaFX for a possible RIA, but this has me completely stuck. Any help much appreciated.Okay, here's the stack traces, split across multiple replies to handle the 7,500 character limit:
Full thread dump Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing):
"AWT-EventQueue-3" prio=4 tid=0x062fd400 nid=0xe80 runnable [0x0b31e000]
java.lang.Thread.State: RUNNABLE
at sun.java2d.d3d.D3DRenderQueue.flushBuffer(Native Method)
at sun.java2d.d3d.D3DRenderQueue.flushBuffer(Unknown Source)
at sun.java2d.d3d.D3DRenderQueue.flushNow(Unknown Source)
at sun.java2d.d3d.D3DBlitLoops.Blit(Unknown Source)
at sun.java2d.d3d.D3DSwToSurfaceBlit.Blit(Unknown Source)
at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
at sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.SunGraphics2D.copyImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.renderClip(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.SGGroup.renderContent(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.doRender(Unknown Source)
at com.sun.scenario.scenegraph.SGNode.render(Unknown Source)
at com.sun.scenario.scenegraph.JSGPanel.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown S
ource)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at com.sun.scenario.scenegraph.JSGPanel.repaintDirtyRegions(Unknown Sour
ce)
at com.sun.scenario.scenegraph.JSGPanelRepainter.repaintAll(Unknown Sour
ce)
at com.sun.scenario.scenegraph.JSGPanelRepainter$FrameDisplay.run(Unknow
n Source)
at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(Unknown
Source)
at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(Unknown S
ource)
at com.sun.embeddedswing.EmbeddedEventQueue.doPulse(Unknown Source)
- locked <0x24591090> (a java.lang.Object)
at com.sun.embeddedswing.EmbeddedEventQueue.access$000(Unknown Source)
at com.sun.embeddedswing.EmbeddedEventQueue$2.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.sun.embeddedswing.EmbeddedEventQueue.dispatchEvent(Unknown Source
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Locked ownable synchronizers:
- <0x29b02850> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
"pool-1-thread-1" daemon prio=4 tid=0x062fd000 nid=0xd64 waiting on condition [0
x0b28f000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x2459cf08> (a java.util.concurrent.locks.Abstra
ctQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
.await(Unknown Source)
at java.util.concurrent.DelayQueue.take(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.tak
e(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.tak
e(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Locked ownable synchronizers:
- None
"Long sleeping thread" daemon prio=4 tid=0x062fc800 nid=0x1300 waiting on condit
ion [0x0b1ff000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at com.sun.scenario.animation.MasterTimer$LongSleepingThread.run(Unknown
Source)
Locked ownable synchronizers:
- None
"ConsoleWriterThread" daemon prio=6 tid=0x062fc400 nid=0x13a0 in Object.wait() [
0x0a84f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x29ac88c0> (a java.lang.Object)
at java.lang.Object.wait(Object.java:485)
at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unkn
own Source)
- locked <0x29ac88c0> (a java.lang.Object)
Locked ownable synchronizers:
- None -
Easy way to convert javascript to a java applet?
Hello all! I am relatively new to java and java programming and had a question about converting a JavaScript to a java applet or even a standalone application. I included the JavaScript code for a checkers game below and wanted to know what would be the easiest way to convert this code if at all possible?
Thanks in advance,
Bob
<SCRIPT language=JavaScript>
<!--
version = 1.0;
// -->
</SCRIPT>
<SCRIPT language=JavaScript1.1>
<!--
version = 1.1;
// -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
if (version==1.0)
document.write("Your browser doesn't have JavaScript 1.1 capabilities. "
+ "This checkers game script only works on Netscape 3+ and MSIE 4+.");
// -->
</SCRIPT>
<SCRIPT language=JavaScript1.1>
<!--
// Checkers Game
// black.gif
// gray.gif
// you1.gif -- normal piece (player/red)
// you2.gif -- highlighted piece
// you1k.gif -- kinged normal piece
// you2k.gif -- kinged highlighted piece
// me1.gif -- normal piece (computer/black)
// me2.gif -- highlighted piece
// me1k.gif -- kinged normal piece
// me2k.gif -- kinged highlighted piece
function preload() {
this.length = preload.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = new Image();
this.src = preload.arguments[i];
var pics = new preload("black.gif","gray.gif",
"you1.gif","you2.gif","you1k.gif","you2k.gif",
"me1.gif","me2.gif","me1k.gif","me2k.gif");
var black = -1; // computer is black
var red = 1; // visitor is red
var square_dim = 35;
var piece_toggled = false;
var my_turn = false;
var double_jump = false;
var comp_move = false;
var game_is_over = false;
var safe_from = safe_to = null;
var toggler = null;
var togglers = 0;
function Board() {
board = new Array();
for (var i=0;i<8; i++) {
board[i] = new Array();
for (var j=0;j<8;j++)
board[i][j] = Board.arguments[8*j+i];
board[-2] = new Array(); // prevents errors
board[-1] = new Array(); // prevents errors
board[8] = new Array(); // prevents errors
board[9] = new Array(); // prevents errors
var board;
Board(1,0,1,0,1,0,1,0,
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,-1,0,-1,0,-1,0,-1,
-1,0,-1,0,-1,0,-1,0,
0,-1,0,-1,0,-1,0,-1);
function message(str) {
if (!game_is_over)
document.disp.message.value = str;
function moveable_space(i,j) {
// calculates whether it is a gray (moveable)
// or black (non-moveable) space
return (((i%2)+j)%2 == 0);
function Coord(x,y) {
this.x = x;
this.y = y;
function coord(x,y) {
c = new Coord(x,y);
return c;
document.write("<table border=0 cellspacing=0 cellpadding=0 width="+(square_dim*8+8)
+"<tr><td><img src='black.gif' width="+(square_dim*8+8)
+" height=4><br></td></tr>");
for(var j=0;j<8;j++) {
document.write("<tr><td><img src='black.gif' width=4 height="+square_dim+">");
for(var i=0;i<8;i++) {
if (moveable_space(i,j))
document.write("<a href='javascript:clicked("+i+","+j+")'>");
document.write("<img src='");
if (board[i][j]==1) document.write("you1.gif");
else if (board[i][j]==-1) document.write("me1.gif");
else if (moveable_space(i,j)) document.write("gray.gif");
else document.write("black.gif");
document.write("' width="+square_dim+" height="+square_dim
+" name='space"+i+""+j+"' border=0>");
if (moveable_space(i,j)) document.write("</a>");
document.write("<img src='black.gif' width=4 height="+square_dim+"></td></tr>");
document.write("<tr><td><img src='black.gif' width="+(square_dim*8+8)
+" height=4><br></td></tr></table><br>"
+"<form name='disp'><textarea name='message' wrap=virtual rows=2 cols=40></textarea><br><input "
+"type=button value=\"Start the Game Over\" onClick=\"location.href+=''\"></form>");
function clicked(i,j) {
if (my_turn) {
if (integ(board[i][j])==1) toggle(i,j);
else if (piece_toggled) move(selected,coord(i,j));
else message("First click one of your red pieces, then click where you want to move it");
} else {
message("It's not your turn yet. Hang on a sec!");
function toggle(x,y) {
if (my_turn) {
if (piece_toggled)
draw(selected.x,selected.y,"you1"+((board[selected.x][selected.y]==1.1)?"k":"")+".gif");
if (piece_toggled && (selected.x == x) && (selected.y == y)) {
piece_toggled = false;
if (double_jump) { my_turn = double_jump = false; computer(); }
} else {
piece_toggled = true;
draw(x,y,"you2"+((board[x][y]==1.1)?"k":"")+".gif");
selected = coord(x,y);
} else {
if ((piece_toggled) && (integ(board[selected_c.x][selected_c.y])==-1))
draw(selected_c.x,selected_c.y,"me1"+((board[selected_c.x][selected_c.y]==-1.1)?"k":"")+".gif");
if (piece_toggled && (selected_c.x == x) && (selected_c.y == y)) {
piece_toggled = false;
} else {
piece_toggled = true;
draw(x,y,"me2"+((board[x][y]==-1.1)?"k":"")+".gif");
selected_c = coord(x,y);
function draw(x,y,name) {
document.images["space"+x+""+y].src = name;
function integ(num) {
if (num != null)
return Math.round(num);
else
return null;
function abs(num) {
return Math.abs(num);
function sign(num) {
if (num < 0) return -1;
else return 1;
function concatenate(arr1,arr2) {
// function tacks the second array onto the end of the first and returns result
for(var i=0;i<arr2.length;i++)
arr1[arr1.length+i] = arr2[i];
return arr1;
function legal_move(from,to) {
if ((to.x < 0) || (to.y < 0) || (to.x > 7) || (to.y > 7)) return false;
piece = board[from.x][from.y];
distance = coord(to.x-from.x,to.y-from.y);
if ((distance.x == 0) || (distance.y == 0)) {
message("You may only move diagonally.");
return false;
if (abs(distance.x) != abs(distance.y)) {
message("Invalid move.");
return false;
if (abs(distance.x) > 2) {
message("Invalid move.");
return false;
if ((abs(distance.x) == 1) && double_jump) {
return false;
if ((board[to.x][to.y] != 0) || (piece == 0)) {
return false;
if ((abs(distance.x) == 2)
&& (integ(piece) != -integ(board[from.x+sign(distance.x)][from.y+sign(distance.y)]))) {
return false;
if ((integ(piece) == piece) && (sign(piece) != sign(distance.y))) {
return false;
return true;
function move(from,to) {
my_turn = true;
if (legal_move(from,to)) {
piece = board[from.x][from.y];
distance = coord(to.x-from.x,to.y-from.y);
if ((abs(distance.x) == 1) && (board[to.x][to.y] == 0)) {
swap(from,to);
} else if ((abs(distance.x) == 2)
&& (integ(piece) != integ(board[from.x+sign(distance.x)][from.y+sign(distance.y)]))) {
double_jump = false;
swap(from,to);
remove(from.x+sign(distance.x),from.y+sign(distance.y));
if ((legal_move(to,coord(to.x+2,to.y+2)))
|| (legal_move(to,coord(to.x+2,to.y-2)))
|| (legal_move(to,coord(to.x-2,to.y-2)))
|| (legal_move(to,coord(to.x-2,to.y+2)))) {
double_jump = true;
message("You may complete the double jump or click on your piece to stay still.");
if ((board[to.x][to.y] == 1) && (to.y == 7)) king_me(to.x,to.y);
selected = to;
if (game_over() && !double_jump) {
setTimeout("toggle("+to.x+","+to.y+");my_turn = double_jump = false;computer();",1000);
return true;
function king_me(x,y) {
if (board[x][y] == 1) {
board[x][y] = 1.1; // king you
draw(x,y,"you2k.gif");
} else if (board[x][y] == -1) {
board[x][y] = -1.1; // king me
draw(x,y,"me2k.gif");
function swap(from,to) {
if (my_turn || comp_move) {
dummy_src = document.images["space"+to.x+""+to.y].src;
document.images["space"+to.x+""+to.y].src = document.images["space"+from.x+""+from.y].src;
document.images["space"+from.x+""+from.y].src = dummy_src;
dummy_num = board[from.x][from.y];
board[from.x][from.y] = board[to.x][to.y];
board[to.x][to.y] = dummy_num;
function remove(x,y) {
if (my_turn || comp_move)
draw(x,y,"gray.gif");
board[x][y] = 0;
function Result(val) {
this.high = val;
this.dir = new Array();
function move_comp(from,to) {
toggle(from.x,from.y);
comp_move = true;
swap(from,to);
if (abs(from.x-to.x) == 2) {
remove(from.x+sign(to.x-from.x),from.y+sign(to.y-from.y));
if ((board[to.x][to.y] == -1) && (to.y == 0)) king_me(to.x,to.y);
setTimeout("selected_c = coord("+to.x+","+to.y+");piece_toggled = true;",900);
setTimeout("bak=my_turn;my_turn=false;toggle("+to.x+","+to.y+");my_turn=bak;",1000);
if (game_over()) {
setTimeout("comp_move = false;my_turn = true;togglers=0;",600);
message("Ok. It's your turn. You may make your move.");
return true;
function game_over() { // make sure game is not over (return false if game is over)
comp = you = false;
for(var i=0;i<8;i++) {
for(var j=0;j<8;j++) {
if(integ(board[i][j]) == -1) comp = true;
if(integ(board[i][j]) == 1) you = true;
if (!comp) message("You beat me!");
if (!you) message("Gotcha! Game over.");
game_is_over = (!comp || !you)
return (!game_is_over);
// the higher the jump_priority, the more often the computer will take the jump over the safe move
var jump_priority = 10;
function computer() {
// step one - prevent any jumps
for(var j=0;j<8;j++) {
for(var i=0;i<8;i++) {
if (integ(board[i][j]) == 1) {
if ((legal_move(coord(i,j),coord(i+2,j+2))) && (prevent(coord(i+2,j+2),coord(i+1,j+1)))) {
return true;
} if ((legal_move(coord(i,j),coord(i-2,j+2))) && (prevent(coord(i-2,j+2),coord(i-1,j+1)))) {
return true;
} if (board[i][j] == 1.1) {
if ((legal_move(coord(i,j),coord(i-2,j-2))) && (prevent(coord(i-2,j-2),coord(i-1,j-1)))) {
return true;
} if ((legal_move(coord(i,j),coord(i+2,j-2))) && (prevent(coord(i+2,j-2),coord(i+1,j-1)))) {
return true;
// step two - if step one not taken, look for jumps
for(var j=7;j>=0;j--) {
for(var i=0;i<8;i++) {
if (jump(i,j))
return true;
safe_from = null;
// step three - if step two not taken, look for safe single space moves
for(var j=0;j<8;j++) {
for(var i=0;i<8;i++) {
if (single(i,j))
return true;
// if no safe moves, just take whatever you can get
if (safe_from != null) {
move_comp(safe_from,safe_to);
} else {
message("You beat me!!");
game_is_over = true;
safe_from = safe_to = null;
return false;
function jump(i,j) {
if (board[i][j] == -1.1) {
if (legal_move(coord(i,j),coord(i+2,j+2))) {
move_comp(coord(i,j),coord(i+2,j+2));
setTimeout("jump("+(i+2)+","+(j+2)+");",500);
return true;
} if (legal_move(coord(i,j),coord(i-2,j+2))) {
move_comp(coord(i,j),coord(i-2,j+2));
setTimeout("jump("+(i-2)+","+(j+2)+");",500);
return true;
} if (integ(board[i][j]) == -1) {
if (legal_move(coord(i,j),coord(i-2,j-2))) {
move_comp(coord(i,j),coord(i-2,j-2));
setTimeout("jump("+(i-2)+","+(j-2)+");",500);
return true;
} if (legal_move(coord(i,j),coord(i+2,j-2))) {
move_comp(coord(i,j),coord(i+2,j-2));
setTimeout("jump("+(i+2)+","+(j-2)+");",500);
return true;
return false;
function single(i,j) {
if (board[i][j] == -1.1) {
if (legal_move(coord(i,j),coord(i+1,j+1))) {
safe_from = coord(i,j);
safe_to = coord(i+1,j+1);
if (wise(coord(i,j),coord(i+1,j+1))) {
move_comp(coord(i,j),coord(i+1,j+1));
return true;
} if (legal_move(coord(i,j),coord(i-1,j+1))) {
safe_from = coord(i,j);
safe_to = coord(i-1,j+1);
if (wise(coord(i,j),coord(i-1,j+1))) {
move_comp(coord(i,j),coord(i-1,j+1));
return true;
} if (integ(board[i][j]) == -1) {
if (legal_move(coord(i,j),coord(i+1,j-1))) {
safe_from = coord(i,j);
safe_to = coord(i+1,j-1);
if (wise(coord(i,j),coord(i+1,j-1))) {
move_comp(coord(i,j),coord(i+1,j-1));
return true;
} if (legal_move(coord(i,j),coord(i-1,j-1))) {
safe_from = coord(i,j);
safe_to = coord(i-1,j-1);
if (wise(coord(i,j),coord(i-1,j-1))) {
move_comp(coord(i,j),coord(i-1,j-1));
return true;
return false;
function possibilities(x,y) {
if (!jump(x,y))
if (!single(x,y))
return true;
else
return false;
else
return false;
function prevent(end,s) {
i = end.x;
j = end.y;
if (!possibilities(s.x,s.y))
return true;
else if ((integ(board[i-1][j+1])==-1) && (legal_move(coord(i-1,j+1),coord(i,j)))) {
return move_comp(coord(i-1,j+1),coord(i,j));
} else if ((integ(board[i+1][j+1])==-1) && (legal_move(coord(i+1,j+1),coord(i,j)))) {
return move_comp(coord(i+1,j+1),coord(i,j));
} else if ((board[i-1][j-1]==-1.1) && (legal_move(coord(i-1,j-1),coord(i,j)))) {
return move_comp(coord(i-1,j-1),coord(i,j));
} else if ((board[i+1][j-1]==-1.1) && (legal_move(coord(i+1,j-1),coord(i,j)))) {
return move_comp(coord(i+1,j-1),coord(i,j));
} else {
return false;
function wise(from,to) {
i = to.x;
j = to.y;
n = (j>0);
s = (j<7);
e = (i<7);
w = (i>0);
if (n&&e) ne = board[i+1][j-1]; else ne = null;
if (n&&w) nw = board[i-1][j-1]; else nw = null;
if (s&&e) se = board[i+1][j+1]; else se = null;
if (s&&w) sw = board[i-1][j+1]; else sw = null;
eval(((j-from.y != 1)?"s":"n")+((i-from.x != 1)?"e":"w")+"=0;");
if ((sw==0) && (integ(ne)==1)) return false;
if ((se==0) && (integ(nw)==1)) return false;
if ((nw==0) && (se==1.1)) return false;
if ((ne==0) && (sw==1.1)) return false;
return true;
message("You may begin! Select a piece to move.");
my_turn = true;
// -->
</SCRIPT>Well, you can get a free tutorial to Java at http://www.mindview.net/. It's the "Thinking In Java" book. You can download the whole book from that site, it's about a thousand pages. If you read that whole book, you'll know exactly where to start and probably how to finish it too.
As a gimmie, think about it -- you'll have to remove all of the browser-detect code, since browser-detection is only done to determine which version of JavaScript is supported by the browser. -
Java applet works in windows and does not work in linux
Hello, guys!
I'm working with site which is located in vpn network at work.
I use browsers firefox 3 and opera.
When I want to open java applet using firefox or opera at first everything is fine then on the last stage of loading(judging by progress bar) applet hangs(progress bar hangs) and when I reload page firefox shows in the bottom bar: applet <applet's name> bail.
In windows everything works both in ie6 and firefox 3.
On both environments I have the jre 6 installed.
please help!Ok, I installed ies4linux and jre 1.5.16. I can work with that but when I start applet screen goes black and window frames dissapear.
To solve this problem(feature?) I disabled DirectX-based acceleration for Java 2D but that works for javacpl.exe and does not work for my applet. -
Hi !
I am trying to print using a java applet using the printable interface.I am using jdk1.3.1 and OS
is windows 2000 or windows NT.
I'm imporing the following packages.
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.net.*;
import java.awt.print.*;
import java.awt.image.*;
import java.awt.geom.*;
public class image_applet extends Applet implements Printable
The problem is that this requires java runtime environment1.4.01 as default plugin in the client
and works only in higher versions of IE(5.5 and above ) and does not work in netscape.
I would really appreciate if anyone tells me how to make this work in all the client browsers,
without having to worry about the plugin.
Bye,
SudhakapI too am havin the same problem
Using the print option of the browswer gives results which arent constant with all browsers and
if i dont implement Printable then the Applet hangs wihtout printing
I am sending the code pls let me know if it helps
When i try it out it is not working
public class MyApplet extends Applet
public static void main(String[] args)
MyApplet a = new MyApplet();
a.init();
a.setSize(300,300);
a.setVisible(true);
public void init()
Button b = new Button("Printxx");
b.addActionListener(new MyAL());
add(b);
class MyAL implements ActionListener
public void actionPerformed(ActionEvent arg0)
printComponents(MyApplet.this);
private void printComponents(Component c)
{System.out.println("printint1");
Toolkit tk = Toolkit.getDefaultToolkit();
Frame frame = getFrame(c);
Properties props = new Properties();
props.put("awt.print.printer","HP DeskJet 810C");
props.put("awt.print.numCopies","2");
if(tk!= null)
System.out.println("printint2" frame " " + c.getName());
String name = c.getName()+" print job";
PrintJob pj = tk.getPrintJob(frame, name , props);
if(pj != null)
{System.out.println("printint3");
Graphics pg = pj.getGraphics();
if(pg!= null)
try
System.out.println("printint4");
c.printAll(pg);
}finally
pg.dispose();
pj.end();
System.out.println(props);
static Frame getFrame(Component c)
System.out.println("while 1"+c);
while((c=c.getParent())!= null )
{System.out.println("while 2"+c);
if (c instanceof Frame)
System.out.println("while 3 "+c);
return (Frame)c;
return null;
public void paint(Graphics g)
g.drawString("hello ", 40, 40); -
Forms9i/applet hanging (9.0.2.3.0)
We are experiencing problems with hanging forms aplications or hanging java applet. We don't see any error messages at all in any of the log files and the java console even if debugging is turned on. The problem is seen in two cases. The first one is if a user is repeating a delete operation by pressing the the F6 button and keeping it down. From time to time it ends up in a hang situation. The task manager is the only solution.
The second case is when we run a load job more than 2 times without existing the forms application completely. Again the task manager is the only solution.
How can we get information about what is going on when the system is hanging?There is a very good diagnostic paper on otn.oracle.com/products/forms and click on the 9i papers - this will explain the steps you need to follow.
Regards
Grant Ronald
Forms Product Management -
I am trying to run a java applet on the following site (not mine):
http://iaks-www.ira.uka.de/home/matteck/QuaSi/applet.html
The program seems to hang at some point, and I cannot kill the
java process because it doesn't seem to create one. To reproduce
the problem try the following:
Click the "Start Quasi" button. In the upper left window click
"Demo Circuits"->"Grover Circuit"
Then Click "Build this circuit".
A circuit should show up in the window. Try it a few times until it
doesn't show up (It seems to always fail at some point.).
If that doesn't work, navigate off the applet page and go back and
restart it. It seems to "crash" then.
Then try to kill the window without killing the browser--
I can't seem to do it because I see no java process in Task Manager, and
I cannot
Also, sometimes when I navigate off the applet page, the applet is still
running. I am not sure, but maybe this is only after it has crashed.
So, the two questions:
1) Can anybody see why it stops working? The Java console shows no
errors or anything.
2) Why is there no Java process?
Thanks,
Chuck.Hold on, I now see an error:
AWT blocker activation interrupted:
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Unknown Source)
at sun.awt.AWTAutoShutdown.activateBlockerThread(Unknown Source)
at sun.awt.AWTAutoShutdown.notifyThreadBusy(Unknown Source)
at java.awt.EventQueue.initDispatchThread(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Not sure what the problem is, but it has crashed. For some reason if I
navigate off the page and back on, it still acts as if crashed. Also, the
window will not go away--no matter how I try to kill it, I cannot, unless I
kill the browser--actually all browsers, it seems.
So, what could be causing the crash, and why no java process?
I would like to use this applet in a talk I am giving next week, so I would
like to know it will work so I don't look like an idiot...
Maybe you are looking for
-
Change/modify Purchase info records (EINE table)
Hi, Could you pls help to in providing FM to change/modify purchase info record. I have tried to use FM - > ME_UPDATE_INFORECORD and ME_DB_UPDATE_INFORECORDS. but, it's not working . Kindly advice. Regards, Bharat
-
How do I make a pdf file! Sorry am an adobe virgin!
Hello, probably an easy one for most of you out there.. Just joined this site- so I could ask someone about this as when I called the support- they pretty much told me all answers are online- well, I cant find any! I have a journal and need to make a
-
Validation or User-Exit during AuC settle (AIBU)
Hi Gurus I'd like to perform some checks during AuC Settle using AIBU Transaction. Someone knows if is possible to do it using Exit, Badi oìr Validation ???? Thanks in advance for your reply. Claudio
-
PO Partial confirmation Quantity not updated for non-catalog items in SRM
Hi Experts, Partial Confirmation plus Partial Rejection from Ariba(Suppliers network) could not be processed. Steps to Reproduce: 1) Create a purchase order. 2) Confirm some part of the quauntity and reject the balance part in Ariba. 3) Open the link
-
Sort Albums - within albums - by title
Hi there. When I import a compilation into iTunes, one album with different artists, I get an image for every track instead of just one image for the album. It's irritating as I like to keep my library tidy and have just one album image per album. Wh