JInitiator with JRE 1.6
Hi,
It its possible to run JInitiator 1.3.1.28 using JRE 1.6 instead of the JRE 1.3.1.28 version? If so, how?
Thanks for the help,
Francisco
Just configure your server to use the Java Plugin instead. Wilfred wrote some good articles on it. http://www.oratransplant.nl/2005/05/24/settings-for-dynamic-versioning-with-sun-jpi-and-oracle-forms/
JInitiator is a deprecated product, which can't be recommended. Oracle now recommends using the latest Java plug-in, 1.6.0_16 or newer. See http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html.
Hope this helps,
Jacob
Similar Messages
-
Security Exception in Oracle Forms when using with JRE.
Hi,
I am am getting an exception whenl I try to dispose a message box(FWindow) received as a popup from an Oracle form page(configured using JRE).
When I hit over the OK/Cancel button to dispose off the messagebox,it is not I get the following error.
Exception in thread "AWT-EventQueue-2" java.lang.SecurityException: this KeyboardFocusManager is not installed in the current thread's context
at java.awt.KeyboardFocusManager.getGlobalFocusOwner(Unknown Source)
at java.awt.KeyboardFocusManager.processSynchronousLightweightTransfer(Unknown Source)
at sun.awt.windows.WComponentPeer.processSynchronousLightweightTransfer(Native Method)
at sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)
at java.awt.Component.requestFocusHelper(Unknown Source)
at java.awt.Component.requestFocusHelper(Unknown Source)
at java.awt.Component.requestFocus(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.requestFocus(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMousePressed(Unknown Source)
at oracle.ewt.lwAWT.AbstractButton.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
at oracle.ewt.event.tracking.GlassMouseGrabProvider$Proxy.processEventImpl(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.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)
I am able to dispose the messagebox, when I configure the oracle form with Jinitiator, the issue happens only with JRE.
These are the configurations I use.
10g Release2
Windows XP Professional Version 2002, Service Pack 3
IE version 6.0.2900.5512.xpsp_sp3_gdr.090804-1435
JInit-JInitiator 1.3.1.22, Sun JRE- 1.6.0_17
I am working on Developer suite.
Privilege: Windows Administrator
Kindly guide.
Thanks & Regards
SunilHi Sunil,
Did you ever find a fix for this problem?
I'm having exactly the same issue.
I have an oracle form with a java bean that runs against J Initiator 1.3.1.28, and it works fine, with J Initiator. The java code was compiled against JDK 1.3.
My form now uses the Sun JRE 1.6, update 16. I've recompiled the java code against JDK 1.6.
And now when the java code sends an event to the form and I show an alert I get the same error you were getting:
Exception in thread "AWT-EventQueue-2" java.lang.SecurityException: this KeyboardFocusManager is not installed in the current thread's context.
I recompiled the java code against JDK 1.3, and ran it through the Sun JVM 1.6, and I still get the error.
Any idea how to fix this?
Regards,
Chris. -
To run webutil application with jre
Hi All,
I have successfully configure webutil on both DS and AS. In my application server when i try to run my form only the project name [webutil] runs with jinitiator but with the others with different name which include jre not working the webutil part in the formweb.cfg file. I used the [webutil] configuration as follows-
[webutil]
workingDirectory=/home/oracle/support/aiblss_forms
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=server
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=basejpi.htm
baseHTMLjinitiator=webutiljini.htm
baseHTML=webutilbase.htm
baseHTMLjpi=webutiljpi.htm
#archive_jini=frmall_jinit.jar
lookAndFeel=oracle
form=LOGON_FORM.fmx
width=100%
height=100%
jpi_download_page=https://java.sun.com/products/archive/j2se/1.4.2_09/index.html
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93what i need to change or add to run my application with jre and webutil?
Regards
ArifHi,
I have used the following conf in formsweb.cfg file but not works properly. I m getting the error of loading webutil settings.
[sunwebutil]
IE=native
baseHTMLJInitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
jpi_classid=clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA
jpi_codebase=http://57.200.1.63:52003/forms/jinitiator/jre16016.exe#Version=1,6,0,16
jpi_mimetype=application/x-java-applet;version=1.6
jpi_download_page=/forms/jinitiator/us/jinit_download.htm
#jpi_download_page=https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProduct
#Detail-Start?ProductRef=jre-1.5.0_06-oth-JPR@CDS-CDS_Developer
# Webutil:
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
# archive including rich text editor
archive=frmall.jar,hst65.jar,HTMLEditorLight.jar
# application-specific
#workingDirectory=/home/oracle/support/aiblss_forms
#otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% query_only=%query_only% quiet=%q
#uiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log%
form=LOGON_FORM.fmx
#term=/software/dutrf65w.res
#envFile=/software/ontw/<application>/<application>.env
height=100%
width=100%
record=forms
#tracegroup=33,35,39,45,64-69,98,101
separateFrame=true
splashScreen=no
lookAndFeel=Generic
colorScheme=blaf
background=NO
pageTitle=Welcome to AIBL Online Support System
# to find *.gif files in jars
imageBase=codebase
what to change more. please specify.
Arif -
Dear professionals,
how to configure BI graph demo (Forms10gR2 demos) to work on AS along with JRE (instead with Jinitiator)?
I copied .jar file at /forms/java folder, change formsweb.cfg and run form, but there is no graph on the form... :(Andreas Weiden wrote:
did you put the appropiate jar's in your archive-tag in the formsweb.cfg? You also may have a look at the java-console.archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,my_icons.jar,*frame*.jar,accordion.jar,gmap.jar,FormsGraph.jar,demo.jar
archive=frmall.jar,formsframes5.jar,formsframe.java,frmwebutil.jar,jacob.jar,frame.jar,*accordion*.jar,*gmap*.jar,demo.jar
Andreas,
thx for quick response. As you could see, I already use some of the PJCs developed by you and Francois (so these jars works fine). I'm trying now to include chart in my Forms application.
I also tried to use jar from this site, but unfortunately with the same result - don't work...
http://www.bincsoft.com/articles/forms-wrapper-for-oracle-data-visualization-components/
I'm getting next message:
java.lang.ClassNotFoundException: oracle.forms.demos.bigauge.FormsGauge
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source) -
My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
Thanks in advance for any help you can provide!
Abbreviated Java Console output:
Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
load: class ZeroApplet.class not found.
java.lang.ClassNotFoundException: ZeroApplet.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:680)
load: class JavaToJS.class not found.
java.lang.ClassNotFoundException: JavaToJS.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:680)I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).
-
JVM Crash: with jre 1.6.0_18 but not with 1.5.0_14
Hello everyone,
I got the problem that my JVM crashes when I am using the jre 1.6.0_18 but the same code runs with an jre 1.5.0_14. The code contains some JNI parts and
is compiled with a JDK 1.5.0_14. The crash can not be reporduced within a debugger. The crash either occurs in the jvm.dll - as in the error log below - or when acessing the ntdll.dll.
Any help is appreciated!
Thanks in Advance!
Here is the JVM crash report:
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d979ba7, pid=10932, tid=12276
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing windows-x86 )
# Problematic frame:
# V [jvm.dll+0x179ba7]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x02afa800): VMThread [stack: 0x02be0000,0x02c30000] [id=12276]
siginfo: ExceptionCode=0xc0000005, reading address 0x706d7953
Registers:
EAX=0x706d7953, EBX=0x00000000, ECX=0x37387a88, EDX=0x00000000
ESP=0x02c2f79c, EBP=0x02c2f7ac, ESI=0x00000080, EDI=0x02bc7460
EIP=0x6d979ba7, EFLAGS=0x00010246
Top of Stack: (sp=0x02c2f79c)
0x02c2f79c: 02c2f890 373851d0 02c2fa8c 02bc7464
0x02c2f7ac: 02c2f7c4 6d8d8c66 02afaab4 00000000
0x02c2f7bc: 02c2f7f8 37387a88 02c2f7dc 6d96b704
0x02c2f7cc: 02afaab4 00000000 02c2f7f8 02afaab0
0x02c2f7dc: 02c2f840 6d8b3449 00000000 02c2f7f8
0x02c2f7ec: 05b30400 02c2f890 00000001 00000000
0x02c2f7fc: 02c20000 0000ffff 00000000 00000000
0x02c2f80c: 00000000 6da187a4 02c2f890 02c2fa8c
Instructions: (pc=0x6d979ba7)
0x6d979b97: 80 79 05 48 83 c8 e0 40 8d 1c 40 8b 07 8d 04 d8
0x6d979ba7: 39 08 75 09 0f b7 58 04 3b 5d 0c 74 34 42 83 fa
Stack: [0x02be0000,0x02c30000], sp=0x02c2f79c, free space=13d02c2f310k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x179ba7]
V [jvm.dll+0xd8c66]
V [jvm.dll+0x16b704]
V [jvm.dll+0xb3449]
V [jvm.dll+0xb3562]
V [jvm.dll+0x1db5f5]
V [jvm.dll+0x1db9ca]
V [jvm.dll+0x1a1af4]
V [jvm.dll+0xc834f]
V [jvm.dll+0xa443c]
V [jvm.dll+0xc9398]
V [jvm.dll+0x7e7cb]
V [jvm.dll+0x1f442b]
V [jvm.dll+0x1f6ed3]
V [jvm.dll+0x1f615e]
V [jvm.dll+0x1f64ac]
V [jvm.dll+0x1f68d2]
V [jvm.dll+0x17f9cc]
C [msvcr71.dll+0x9565]
C [kernel32.dll+0xb50b]
VM_Operation (0x0a09e2dc): GenCollectForAllocation, mode: safepoint, requested by thread 0x05c54800
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x05b30400 JavaThread "persistance manager service activator" daemon [_thread_blocked, id=6588, stack(0x0a230000,0x0a280000)]
0x05b38400 JavaThread "task queue worker" daemon [_thread_blocked, id=9788, stack(0x0a1e0000,0x0a230000)]
0x05c5b800 JavaThread "PSJ-Subsystem" [_thread_blocked, id=11024, stack(0x0a140000,0x0a190000)]
0x05c5a400 JavaThread "HDM-Subsystem" [_thread_blocked, id=8296, stack(0x0a0f0000,0x0a140000)]
0x05c61000 JavaThread "CSM-Subsystem" [_thread_blocked, id=5272, stack(0x0a0a0000,0x0a0f0000)]
0x05c54800 JavaThread "XPS-Subsystem" [_thread_blocked, id=10064, stack(0x0a050000,0x0a0a0000)]
0x05c59400 JavaThread "GUI-Subsystem" [_thread_blocked, id=7596, stack(0x0a000000,0x0a050000)]
0x05c5f800 JavaThread "TimerServices" [_thread_blocked, id=5760, stack(0x09fb0000,0x0a000000)]
0x05af9800 JavaThread "Thread-2" [_thread_in_native, id=11624, stack(0x03d30000,0x03d80000)]
0x02b0b000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=8092, stack(0x02dc0000,0x02e10000)]
0x02b07c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2696, stack(0x02d70000,0x02dc0000)]
0x02b06400 JavaThread "Attach Listener" daemon [_thread_blocked, id=1444, stack(0x02d20000,0x02d70000)]
0x02b05000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10896, stack(0x02cd0000,0x02d20000)]
0x02afd000 JavaThread "Finalizer" daemon [_thread_blocked, id=8084, stack(0x02c80000,0x02cd0000)]
0x02afbc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=10636, stack(0x02c30000,0x02c80000)]
0x002a7000 JavaThread "MasterControl" [_thread_blocked, id=11412, stack(0x008c0000,0x00910000)]
Other Threads:
=>0x02afa800 VMThread [stack: 0x02be0000,0x02c30000] [id=12276]
0x02b0d000 WatcherThread [stack: 0x02e10000,0x02e60000] [id=11048]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x002a61c0] Threads_lock - owner thread: 0x02afa800
[0x002a65d0] Heap_lock - owner thread: 0x05c54800
Heap
def new generation total 4928K, used 4783K [0x22970000, 0x22ec0000, 0x27ec0000)
eden space 4416K, 100% used [0x22970000, 0x22dc0000, 0x22dc0000)
from space 512K, 71% used [0x22dc0000, 0x22e1bf30, 0x22e40000)
to space 512K, 0% used [0x22e40000, 0x22e40000, 0x22ec0000)
tenured generation total 10944K, used 697K [0x27ec0000, 0x28970000, 0x32970000)
the space 10944K, 6% used [0x27ec0000, 0x27f6e4e0, 0x27f6e600, 0x28970000)
compacting perm gen total 12288K, used 5037K [0x32970000, 0x33570000, 0x36970000)
the space 12288K, 40% used [0x32970000, 0x32e5b4c8, 0x32e5b600, 0x33570000)
ro space 10240K, 51% used [0x36970000, 0x36e97b58, 0x36e97c00, 0x37370000)
rw space 12288K, 54% used [0x37370000, 0x37a04ce0, 0x37a04e00, 0x37f70000)
Dynamic libraries:
0x00400000 - 0x00424000 c:\windows\system32\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre6\bin\msvcr71.dll
0x6d800000 - 0x6da97000 C:\Program Files\Java\jre6\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 c:\windows\system32\WINMM.dll
0x6d7b0000 - 0x6d7bc000 C:\Program Files\Java\jre6\bin\verify.dll
0x6d330000 - 0x6d34f000 C:\Program Files\Java\jre6\bin\java.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre6\bin\hpi.dll
0x76bf0000 - 0x76bfb000 c:\windows\system32\PSAPI.DLL
0x6d7f0000 - 0x6d7ff000 C:\Program Files\Java\jre6\bin\zip.dll
0x6d610000 - 0x6d623000 C:\Program Files\Java\jre6\bin\net.dll
0x71ab0000 - 0x71ac7000 c:\windows\system32\WS2_32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x71aa0000 - 0x71aa8000 c:\windows\system32\WS2HELP.dll
0x6d630000 - 0x6d639000 C:\Program Files\Java\jre6\bin\nio.dll
0x02eb0000 - 0x02f59000 C:\mod_s14\bin\stlport.5.2.dll
0x7c3a0000 - 0x7c41b000 c:\windows\system32\MSVCP71.dll
[snip]
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 2094652k(589592k free), swap 4032296k(2558960k free
vm_info: Java HotSpot(TM) Client VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:35:55 by "java_re" with MS VC++ 7.1 (VS2003)I have the Java console open and after 10 seconds it closes and the applet becomes unresponsive. Usually when an applet crashes, some error messages show up in the console before it closes. That does not appear to happen in this case.
If I load a webpage with an applet (http://java.sun.com/applets/jdk/1.4/demo/applets/Fractal/example1.html) and then move to a non-applet webpage, and have the Java console up, it stays up (alive) for about a minute before it closes. In the case of my applet it closes much faster.
When I refresh, the second instance of the applet might be starting in the same process as the first process which is in the middle of closing (I am new to Java and JNI, so I might be using the wrong terminology). But with JRE 1.6.0.25 I was not seeing the crash on refresh. It manifested itself with the update to JRE 1.6.0.31
I did realize the codebase was wrong. This is what I have now:
<!--[if IE 9]>
<object
id="myApplet"
name="myApplet"
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
type="application/x-java-applet;version=1.6"
width="800"
height="600">
<![endif]-->
<!--[if IE 8]>
<object
id="myApplet"
name="myApplet"
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
type="application/x-java-applet;version=1.6"
width="800"
height="600">
<![endif]-->
<!--[if IE 7]>
<object
id="myApplet"
name="myApplet"
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
type="application/x-java-applet;version=1.6"
width="100%"
height="90%">
<![endif]-->
<![if !IE]>
<object
id="myApplet"
name="myApplet"
type="application/x-java-applet;version=1.6"
width="800"
height="600">
<![endif]> -
Jar files download problems in Java Webstart with JRE 1.6
We have encountered a few problems in Java Webstart with JRE 1.6
In JRE 1.5, the jar files are getting downloaded onto the client
machine with it's original names.
Example :
Server File Name : acm.jar
Client File Name : RMacm.jar
But in JRE 1.6, the jar files are getting downloaded with improper file names.
Example :
Server File Name : acm.jar
Client File Name : 4fb074cc-66fc7407
Moreover the path itself seems to be invalid.
Example Path :
JRE 1.5 path:
C:\Documents and Settings\Administrator\Application
Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
JRE 1.6 path:
C:\Documents and Settings\Administrator\Application
Data\Sun\Java\Deployment\cache\6.0\12
Due to this, we are facing Classpath problems.
What changes do we have to make to the code, for Java
Webstart to work ?
We are using JBoss 4.0.4 and JDK 1.5 in the Server
On the client machine, we have IE 6 and JRE 1.6.01
Help would be appreciated.Ask your Java Web Start question at:
http://forum.java.sun.com/forum.jspa?forumID=38 -
JDK 1.6 update n and compile with JRE
With the new optimizations of the install of a JRE with java 6 update n, is it possible to compile with jre and just the parts of the jre that you need for your application? That is can we distribute a java application that only have the parts of the JRE that it needs to a user that do not have any JRE isntalled and he can run it?
Thanks
WildChildThe license of Sun does not allow you to distribute just part of the JVM. The only solution to run your application in a computer without JVM is bundle your whole JRE folder together with your application.
At first it sounds bad, but if you use an installer to compress your files, the JRE will be around 14mb.
Check this tool -
Troubles with JRE 1.4.2 and iReport (with db2 connection)
Hello everyone. My company is developing a product, and the client is working with JRE 1.4.2 . They (the client) are using db2 Database. We are using iReport to generate the product reports, but we encounter a problem with it - the report will compile and report (in any format) only once - afterwards, iReport will suddenly freeze and will stop to respond.
Trying the same thing with JRE 5.0 worked perfectly, with not troubles at all (but we cannot ask our client to upgrade to JRE 5.0, of course)
Anyone has any idea about how to fix this problem? perhaps there's a patch or something of the sort?
I forgot to mention, there's no error message at all, and if any, it's a javaw.exe application hang.
Any idea's?
Thanks,
Matt.Have you tried this on another machine?Yes ... actually this has happened on a few workstations here ... all of them are Pentium IV based dell workstations running Windows 2000.
What exact version of 1.4.2 did you download?Java(TM) Plug-in: Version 1.4.2_04
Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
Have you searched the bug database? This one could be related to yours:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4673572
This sounds similar but the difference is its not just the app that feezes up (so that you could do an alt+ctrl+del and kill it)..... the OS freezes up and you can move the mouse around still the system even queu e is not full and eventuall all I hear is the beeping. At this point I've to power cycle.
Is there any way you could post the code or is it too big? Or, have you tried just creating a very small >application or applet that just shows one dialog, and if so, does that show the same problem? (What I'm >trying to get at here is - is it something in your code that is causing this, or something in the JRE, or >perhaps something to do with your machine's configuration/OS?)Unfortunately I cannot post the code ... its company rules and regulations. I've tried creating a very small app and it appears to work ok .... but randomly causes this freeze up. There is no definate pattern (except that it happens when you move around a JDialog or a JInternalFrame) . It could freeze up some time and work perfectly fine at other times. It has actually happened on other applications too (Netbeans, JEdit etc). That's why I suspect this might be a obscure bug in the JRE.
I'll try to find a pattern so that it can be re-produced by everyone.
Thanks for the help. -
Sending "Cookie" header with JRE 1.5.0_07 doesn't work with JWS
Hi
I have a JWS application that runs from JRE 1.4.0_XX to JRE 1.5.0_06
The app sends a "Cookie" header to our webserver
HttpURLConnection tc = (HttpURLConnection)repository.openConnection();
tc.setRequestProperty("Cookie", "GLINK=TOKENID");
Now this has worked thru 20 different runtime versions since 1.4.0_xx until JRE 1.5.0_07 was released. My code has remained unchanged for 3 years. And with JRE 1.5.0_07 the "Cookie" header is simply gone in the webserver or never sent at all. The changelog for 1.5.0_07 only has a rough description of what has changed. I can see that SUN has made som changes to class HttpUrlConnection in 1.5.0_07 by comparing class files against 1.5.0_06 and apparently disturbed som funtionality that worked before. Other headers are received but not the "Cookie" header. If the application is executed without JWS, for example with Eclipse or Jbuilder, the "Cookie" header is received by the web server and all other headers as well.
Any ideas what SUN has done in 1.5.0_07 and JWS ?? and more specifically in class URLConnection or HttpURLConnection.
Here is some code example to test the issue:
Run this code with and without Java Web Start
With JWS, the "Cookie" header is never received by the server.
without JWS, the header value is reveived.
import java.net.*;
import java.io.*;
public class HTTPTest
public static byte[] crLfArr = {13,10};
public static String contenttype_ = "text/plain";
public static BufferedReader retval = null;
public static void main(String[] args) throws IOException
int tecken = (int)'X';
String boundary = "12345xyzzy";
URL repository = new URL("http://myserver");
URLConnection tc = (URLConnection)repository.openConnection();
tc.setDoOutput(true);
tc.setDoInput(true);
tc.setAllowUserInteraction(false);
tc.setRequestProperty("Content-Type"," multipart/form-data; boundary=" + boundary);
tc.setRequestProperty("Cookie", "GLINK=TOKENID");
OutputStream out = tc.getOutputStream();
printPartHeader(out, boundary, "filtag" , "filnamn");
out.write(tecken);
printEndBoundary(out,boundary);
out.close();
retval = new BufferedReader(new InputStreamReader(tc.getInputStream()));
public static void printEndBoundary(OutputStream out, String boundary) throws IOException
String str;
str = "--" + boundary + "--";
out.write(str.getBytes());
out.write(crLfArr);
out.write(crLfArr);
public static void printPartHeader(OutputStream out,
String boundary,
String field,
String filename) throws IOException
String str;
printBoundary(out,boundary);
str = "Content-Disposition: form-data; name=\"" + field + "\"";
out.write(str.getBytes());
if (filename.length() > 0) {
str = "; filename=\"" + filename + "\"";
out.write(str.getBytes());
out.write(crLfArr);
str = "Content-Type: " + contenttype_;
out.write(str.getBytes());
out.write(crLfArr);
out.write(crLfArr);
public static void printBoundary(OutputStream out, String boundary) throws IOException
String str;
str = "--" + boundary;
out.write(str.getBytes());
out.write(crLfArr);
Regards
JojjeHi,
I decompiled the HttpURLConnection implementation in question from the rt.jar file. I do not think that you can find the source code for these SUN-specific implementations anywhere (except maybe through the new Java 6.0 collaboration process).
JAD did the trick.
For the standard classes (packages java.*, javax.*), I think that the most current source code is included in the corresponding JDK download.
As to the JWS vs. standalone effect, I do not know what happens there.
Maybe Java uses a different HttpURLConnection implementation when running as a standalone application?
For our applet, the problem is definitely there. The cookie header was set but already removed when the CookieHandler method was called.
The trouble is, that our applet can operate multiple independent sessions (with different session-ids), so a global CookieHandler is not an option. The only reason why I previously had to implement my own CookieHandler implementation in 1.5 was in order to remove unwanted Cookies which were otherwise inherited from the browser session by the CookieHandler�s applet default implementation.
I also entered a bug report (on Wednesday already)...
regards,
Gunnar -
IE hang (Freeze) if use applet/javascript with JRE 1.4.2_06
When i run my applet on IE 6 with JRE 1.4.2_06 and try to close IE window it freezes the IE window, while if i run the same code in 1.4.1_05 it works fine.
The OS is windows 2000 Professional and IE is 6.0.2800.1106.
Also the same applet works fine on Windows XP with IE 6.0.2900.2180 SP2 with JRE 1.4.2_06
Please help....I was having similar problem earlier. Check if you are closing all the open resources (threads etc etc)
-
Hi,
Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08?
Why or why not? No guesses please.
ThanksNo such hope. The alternative to testing is to review changes made to each version leading up to 14. This is spelled out in each version's Release Document. There are a lot of changes. Most will not affect your program. Each change is relatively well described, but your problem will be to decide if your program will be affected by the change.
Or, do nothing, hope like hell that nothing breaks, and have an up-to-date copy of your resume.
If someone came to me saying a program couldn't be tested, I'd have serious concerns for that person's future. -
Mozilla 1.7.x hangs in applet code on RH Linux with JRE 1.5.0
Hi all,
From my applet code when an URLConnection.getInputStream() method is called the browser hangs, if authentication is turned on the webserver.
This works with jre 1.4.2 on linux, for the matter on windows with Jre1.5 also.
Also it works on 1.5 if suthentication is not set.
So it is this particular combination of (jre1.5/mozilla on linux/authentication) that doesnot work :):).
I tried to set the auth header, but nothing seem to help.
String login = "userid"+":"+"password";
String encodedLogin = new sun.misc.BASE64Encoder().encode(login.getBytes());
httpsCon.setRequestProperty("Authorization", "Basic " + encodedLogin);
Searched on the sun/mozilla sites to see if any known issues, couldn't find any.
Thanks
RTJust to add upon that a simple code like this will hang
String str = "https://ppp.qqq.com/admin/50_splash.gif";
try {
URL url = new URL(str);
URLConnection con = url.openConnection();
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
con.setDoInput(true);
try {
con.connect(); //-->hangs here
It looks to me like at this point plugin tries to popup the authentication dialog box but it cannot.
Thanks
RT -
Applet work with JRE 7_51 but NOT with JRE 7_45
Hello,
My major problem is, that my Applet signed with COMODO certificate DOES NOT WORK with JRE 7_45.
The SAME applet works fine with JRE 7_45, if I sign this applet WITH A SELFMADE UNTRUSTED certificate.
WHY the comodo signed applet doesn't run in JRE 7_45 ???
If i launch the comodo signed applet with JRE 7_51 it works perfect !!!
But in our company we got JRE 7_45 and I have to deal with JRE 7_45. That’s my problem.
Could you please tell me a solution what I have to do that the comodo signed applet works also in JRE 7_45.
Thank you!
PhilippThanks gimbal2.
I agree the problem may be in the proxy or in the firewall but I don' to know how to prove it as if i call the servlet url from browser I dont have problems .
The version im using is 6.45 but im sure the same problem occurs also with other versions of JRE6 .
... and the problem disappear with JRE7 ...
trouble is my company want people to use JRE6
any idea ?
Gio -
Discoverer 11g certification with JRE 1.7
Hello,
Oracle Support Note 1469683.1 "Discoverer 11g With Java 1.7 (JDK or JRE) Fails With Exceptions" states that Discoverer 11.1.1.6 is certified
with Java 1.7 when using Weblogic 10.3.6. It indicates that this information can be found in the certification matrix. I have looked at the most recent certification matrix and I have found where it says JDK 1.7 (server-side) is certified with FMW 11.1.1.6.0. However, for Discoverer, the certification matrix specifically states that JDK 1.7 is NOT supported with Discoverer. So I am curious, which document is correct?
As for the JRE, the certification matrix mentions that Forms is certified with JRE 1.7 but it does not say anything about Discoverer and JRE 1.7. I want to make sure I am using an "Oracle certified" configuration.
I have Discoverer 11.1.1.6.0 and WebLogic 10.3.6. My server-side JDK is 1.6.x. My client-side JRE will be 1.7.x. Is this an Oracle certified configuration?
Thank you.Pl open an SR with Support for this issue
Srini
Maybe you are looking for
-
I'm working on a text processing extension and want to implement a "Convert special characters to safe HTML entities" (that's just a working title!) menu option. When I copy and paste some blocks of text from Word into the editor, then right-click m
-
Wait step taking longer time than the defined wait time
Hi, We have very simple BPM with 3 steps: Receive, Wait and Send. Wait step has following parameters: Type: Wait Specified Time Period Duration: 1 Unit: Minutes From the above parameters idelly it should wait only for 60 sec and start the next step w
-
Web service client needs to share data with a SOAP Message Handler
I have a web service client that is built using WebLogic 10 clientgen. I also have a Soap Message Handler configured that will create the required Soap Headers for the web service call. Creating these Soap Headers works great as long as the header da
-
Is it possible to make a CD/DVD cover from exisitng Mac OSX software?
Is it possible to make a CD/DVD cover from existing Mac OSX software?
-
Hello- My question is: When using the "Retime Menu" and you select "Video Quality", lets say, "Optical Flow", do you need to render this before exporting the video? I have background rendering turned off, I'm under the assumption that background re