Jmc.dll crashes java.exe
First of thanks Sun's engineers for hard work on Java and JavaFX! I really enjoyed the features and demos from javafx.com.
Unfortunatly all of the demos involving media playback are crashing java.exe with jmc.dll being guilty (probably access violation - jmc.dll in the error dialog reports 0.0.0.0 version - but not sure). Well, I think it is my system's fault, because when I got rid of all codecs that could play mp3, java.exe stopped crashing (at least for DraggableMP3Player demo, SimpleVideoPlayer crashes without writing hs_err), but gave me MediaUnsupportedException. Regarding fixing my system - I'd like to avoid the pleasure of reinstalling Windows and I think it would be good for others having this problem to nail the cause of it. Could you explain how jmc.dll is dealing with platform codecs? How it checks what is installed? Does anyone else seen jmc.dll crashing java? Could it be hardware issue (I have nforce2 sound card)?
I've created issue [http://javafx-jira.kenai.com/browse/RT-2530] if you have the same problem please vote for it (you first need to register for free :))
I sure have put some work in this bug. I hope this will be gone soon :). I'm somewhat surprised that nobody seen it beside me - no votes, no blogs about it. But UnsupportedMediaException is known for sure and I believe it is related (that's why I've voted for it). Thanks for all your sweat, tears and blood you put in JavaFX! :)
Similar Messages
-
My Applet crashes java.exe to crash
Ok, I'm not sure why, but on some computers my applet is making java.exe crash. When i attach a debugger to java.exe when it crashes I see a "Access Violation Error". The oddest part is that while one computer will crash and another identical computer with the exact same setup wont. The crash happens the moment the applet starts.
Now I've done just about everything i could to figure this out. I've installed uninstalled and reinstalled java. I've run ram, hard drive, cpu, ect tests all reporting no problem. I've disabled anti-virus and did the uninstall and reinstall again. I've installed older versions of the java. I've resigned my jar file, created a new key and then resigned. Practically the only thing i have not done and is not a viable solution is reformat/replace the computers. So I'm left thinking it might be something in the applet that is causing it.
It could be in the applet parameters but i doubt it.
Pram fp is about 5,000 characters long
Pram VerfyType is about 1 character long
Pram Arg1 is a max of 11 characters long
Pram Arg2 is a max of 11 characters long
This applet is meant to interact with a program on the computer that connects to a variety of fingerprint scanners that we use and passes information form the internal site to the scanner and vice versa. So it just starts a loop back socket. For the loop back socket, i have tired 127.0.0.1 and localhost which still yield the same result.
Here is the applet. It's very simple.
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.Image;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.net.UnknownHostException;
import java.security.AccessController;
import java.security.PrivilegedAction;
public class Verify extends JApplet {
private static final long serialVersionUID = 908206045464466336L;
public JLabel jLabel1;
public jPanel jPanel1;
public String Template = "";
public String VerfyType = "";
public String Arg1 = "";
public String Arg2 = "";
public Thread t;
Socket socket = null;
public void stop()
jPanel1.threadRun = false;
if (socket != null)
try {
socket.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
public void init()
//Execute a job on the event-dispatching thread:
try {
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
Template = getParameter("fp").trim();
VerfyType = getParameter("VerfyType").trim();
Arg1 = getParameter("Arg1").trim();
Arg2 = getParameter("Arg2").trim();
initComponents();
} catch (Exception e) {
System.err.println("getParameter didn't successfully complete");
StartVerify();
private void initComponents() {
jPanel1 = new jPanel();
jLabel1 = new JLabel();
jPanel1.setPreferredSize(new java.awt.Dimension(66, 66));
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Initializing Please Wait.");
setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 66, Short.MAX_VALUE)
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 66, Short.MAX_VALUE)
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 536, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(224, 224, 224)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1)
.addContainerGap(116, Short.MAX_VALUE))
public void StartVerify()
t = new Thread() {
public void run()
AccessController.doPrivileged(new PrivilegedAction() {
public Object run()
PrintWriter out = null;
BufferedReader in = null;
try {
socket = new Socket("localhost", 4001);
out = new PrintWriter(socket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch (UnknownHostException e) {
jLabel1.setText("Unkown Host Error.");
return null;
} catch (IOException e) {
jLabel1.setText("Unable to get communication streams..");
return null;
String reponse = "";
try {
reponse = in.readLine();
if (reponse.equalsIgnoreCase("cmd"))
out.write("v\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("send"))
out.write(Template+"\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("finger"))
jLabel1.setText("Please Have the client place their finger on the scanner.");
while (true)
reponse = in.readLine();
if (!reponse.equalsIgnoreCase("pulse"))
break;
if (reponse.equalsIgnoreCase("good"))
try {
DoRedirect();
socket.close();
} catch (IOException ex) {
else if (reponse.equalsIgnoreCase("bad"))
int _return = LoopTellCanceled(socket, out, in);
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
else
jLabel1.setText("Unexpected response from finger print server.");
catch (IOException ex)
jLabel1.setText("We lost connection to the finger print reader.");
System.err.println(ex);
try {
out.close();
in.close();
socket.close();
} catch (IOException e) {
System.err.println("Couldn't get I/O for the connection");
return null;
return null;
t.start();
private int LoopTellCanceled(Socket socket, PrintWriter out, BufferedReader in)
int res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
while (res == JOptionPane.YES_OPTION)
String reponse = "";
try {
out.write("v\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("send"))
out.write(Template+"\n");
out.flush();
reponse = in.readLine();
if (reponse.equalsIgnoreCase("finger"))
jLabel1.setText("Please Have the client place their finger on the scanner.");
while (true)
reponse = in.readLine();
if (!reponse.equalsIgnoreCase("pulse"))
break;
if (reponse.equalsIgnoreCase("good"))
try {
DoRedirect();
socket.close();
} catch (IOException ex) {
else
res = JOptionPane.showConfirmDialog(null, "Incorrect Finger Print. Would you like to try again?", "Finger Print was Bad", JOptionPane.YES_NO_OPTION);
} catch (IOException ex) {
System.err.println(ex);
return res;
public void DoRedirect()
try
if (Arg1.equalsIgnoreCase(""))
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+");"));
else
if (Arg2.equalsIgnoreCase(""))
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+");"));
else
getAppletContext().showDocument(new URL("javascript: fprintVerified("+VerfyType+", "+Arg1+", "+Arg2+");"));
catch (MalformedURLException ex)
ex.printStackTrace();
}Edited by: Pyromanci on Mar 1, 2011 7:58 AMWhat does your error console report? - Which one? Browser, PC, ect
How about your java console say? - I have no clue what it could be saying since java.exe crashes the moment the applet starts the console is no longer accessible.
What browser and version? - Firefox v3.6.13
Have you tried a different one? - Yes Ie 6,7, and 8. Though the site the applet runs form was designed specifically for firefox (internal site)
Have you tried Appletviewer? - Yes applet runs as intended.
Did you give the Applet permission? I know you said you signed it - did it all go right? - Yes. Gave me the usual response of will expire in x months -
WDContextMenuHandler.dll crashes Explorer.exe
After updating to the latest WDSmartware on my laptop running Windows 7 x64 the Explorer.exe process crashes once in a while with the following error in the event log. Any suggestions as how I can fix this? Error: (03/30/2015 08:51:38 AM) (Source: Application Error) (User: )
Description: Faulting application name: Explorer.EXE, version: 6.1.7601.17567, time stamp: 0x4d672ee4
Faulting module name: WDContextMenuHandler.dll, version: 2.0.0.3, time stamp: 0x54dd49f6
Exception code: 0xc0000005
Fault offset: 0x000000000001f786
Faulting process id: 0x15c0
Faulting application start time: 0xExplorer.EXE0
Faulting application path: Explorer.EXE1
Faulting module path: Explorer.EXE2
Report Id: Explorer.EXE3Hi... I have run into the same problem today... and I've found a solution... kind of. I hope it's not too late for my answer. 1) download ShellExView from here: http://www.nirsoft.net/utils/shexview.html#DownloadLinks 2) disable the two items highlighted in the image: The context menu problem will be solved... for a little benefit of (probably) not having those shortcuts for WD utilities in the context right-click menu, but I guess you can still use them elsehow. Hope this helped you. I've found the solution myself and it worked for me.
-
Our app is running on jre 1.3.1_01. When we try j2re 1.4.0 we get the following dialog:
java.exe - DLL Initialization Failed
Initialization of the dynamic link library C:\WINNT\System32\ddraw.dll failed. The process is terminating abnormally.
It occurs when the application attempts to paint the splash screen for our server application. It also occurs with our client GUI.
This is the same for 6 different machines running Windows NT 4.0 service packs 5 and 6.
I don't want to make this a bug yet because it seems to work on my laptop with exactly the same software. We have sync'd the environment and verified the classpaths.I've seen potentially related problems on NT4-SP6a with J2RE 1.4.2_01. I did not get the "can't init" error that you are discussing, but I have seen other problems related to "ddraw.dll". When I run Swing applications that use viewports, scrolling causes very bad repainting problems. I think this is related to "ddraw.dll" because of the "BIT_BLIT" optimization for repainting.
Also, when I ran the Java application after running some other sequence of applications (I have not been able to duplicate the startup sequence), Java crashed with the message below rather than repainting poorly. This crash was repeatable -- I repeated it four times with identical exception traces. The stack trace indicates that the failure is in "blitWindowGraphics", and the problem was detected inside of "ddraw.dll".
I'm including this in this thred in the hopes that somebody can find a thread of commonality and fix the root cause of these "ddraw.dll" problems.
NOTE: I have not found a workaround to the problems I'm having --- I cannot run Java GUI applications on this PC.
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77132F58
Function=DllCanUnloadNow+0x665
Library=C:\WINNT\System32\ddraw.dll
Current Java thread:
at sun.awt.windows.Win32Renderer.devCopyArea(Native Method)
at sun.awt.windows.Win32SurfaceData.copyArea(Unknown Source)
at sun.java2d.SunGraphics2D.copyArea(Unknown Source)
at javax.swing.JViewport.blitWindowGraphics(Unknown Source)
at javax.swing.JViewport.blitDoubleBuffered(Unknown Source)
at javax.swing.JViewport.windowBlitPaint(Unknown Source)
at javax.swing.JViewport.setViewPosition(Unknown Source)
at com.sun.javaws.ui.general.GeneralUtilities$4.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at com.sun.javaws.ui.general.GeneralUtilities.showAboutDialog(Unknown Source)
at com.sun.javaws.ui.player.Player$13.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
Dynamic libraries:
0x00400000 - 0x00407000 D:\jre\j2re1.4.2_01\bin\javaw.exe
0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll
0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll
0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll
0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll
0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78040000 C:\WINNT\system32\MSVCRT.dll
0x08000000 - 0x08136000 D:\jre\j2re1.4.2_01\bin\client\jvm.dll
0x77FD0000 - 0x77FFA000 C:\WINNT\System32\WINMM.dll
0x77FC0000 - 0x77FC8000 C:\WINNT\System32\mmdrv.dll
0x74BD0000 - 0x74BE7000 C:\WINNT\System32\SNDBLST.DLL
0x716F0000 - 0x7177A000 C:\WINNT\system32\COMCTL32.dll
0x10000000 - 0x10007000 D:\jre\j2re1.4.2_01\bin\hpi.dll
0x00910000 - 0x0091E000 D:\jre\j2re1.4.2_01\bin\verify.dll
0x00920000 - 0x00938000 D:\jre\j2re1.4.2_01\bin\java.dll
0x00940000 - 0x0094D000 D:\jre\j2re1.4.2_01\bin\zip.dll
0x18270000 - 0x1837F000 D:\jre\j2re1.4.2_01\bin\awt.dll
0x77C00000 - 0x77C18000 C:\WINNT\System32\WINSPOOL.DRV
0x76AB0000 - 0x76AB5000 C:\WINNT\System32\IMM32.dll
0x77B20000 - 0x77BD1000 C:\WINNT\system32\ole32.dll
0x18380000 - 0x183D0000 D:\jre\j2re1.4.2_01\bin\fontmanager.dll
0x77130000 - 0x77156000 C:\WINNT\System32\ddraw.dll
0x18650000 - 0x1865A000 D:\jre\j2re1.4.2_01\javaws\javawspl.dll
0x77C40000 - 0x77D7C000 C:\WINNT\system32\SHELL32.dll
0x18C40000 - 0x18C5E000 D:\jre\j2re1.4.2_01\bin\jpeg.dll
0x18C60000 - 0x18C6F000 D:\jre\j2re1.4.2_01\bin\net.dll
0x776B0000 - 0x776C4000 C:\WINNT\system32\WS2_32.dll
0x776A0000 - 0x776A7000 C:\WINNT\system32\WS2HELP.dll
0x74FF0000 - 0x74FFE000 C:\WINNT\System32\rnr20.dll
0x77660000 - 0x7766F000 C:\WINNT\system32\msafd.dll
0x77690000 - 0x77699000 C:\WINNT\System32\wshtcpip.dll
0x776D0000 - 0x776D8000 C:\WINNT\system32\WSOCK32.dll
0x71280000 - 0x71286000 C:\WINNT\system32\MSIDLE.DLL
0x77BF0000 - 0x77BF7000 C:\WINNT\System32\rpcltc1.dll
0x75360000 - 0x75367000 C:\WINNT\System32\rasadhlp.dll
0x76AC0000 - 0x76ADD000 C:\WINNT\System32\imagehlp.dll
0x731B0000 - 0x731BA000 C:\WINNT\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 576K, used 408K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 79% used [0x10010000, 0x10076340, 0x10090000)
from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 2136K, used 1280K [0x104f0000, 0x10706000, 0x14010000)
the space 2136K, 59% used [0x104f0000, 0x10630030, 0x10630200, 0x10706000)
compacting perm gen total 6656K, used 6474K [0x14010000, 0x14690000, 0x18010000)
the space 6656K, 97% used [0x14010000, 0x14662a48, 0x14662c00, 0x14690000)
Local Time = Tue Nov 25 21:44:39 2003
Elapsed Time = 26
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode) -
Calling back c++ method in an exe (not a dll) from java?
Hi all,
I have to make an hybrid C++/java from an existing C++
application that compiled is a big single exe not a dll.
I'm running under win32.
The application consists of several windows. The hybrid
will have widows in C++ and some in java. They have the
same menu and tool bar. In the C++, there are some
callbacks called when a button is pressed. How to call
these callback from java given the fact that the JVM and
the java classes are launched by the exe file.
I know how, from C++, start JVM and call my java window.
I also know how to call a C++ method that is in a dll from
java. It's from the tutorial
http://java.sun.com/docs/books/tutorial/native1.1/index.html
But I don't know how to call a C++ method that is in in an
exe which has launch a JVM from an object running in this
JVM.
Is there somewhere an example like this?
Thanks,
Xavier.Thanks this helped.
For those who want a complete example, here it is:
Tested on XP, java 1.4.2, VC++ 6.0.
************ File invoke.cpp *****************************
#include <stdlib.h>
#include <jni.h>
#ifdef _WIN32
#define PATH_SEPARATOR ';'
#else /* UNIX */
#define PATH_SEPARATOR ':'
#endif
#define USER_CLASSPATH "." /* where Prog.class is */
void JNICALL displayHelloWorld(JNIEnv *env, jobject obj)
printf("Hello world: made by printf from C++\n");
return;
void main() {
JNIEnv *env;
JavaVM *jvm;
JavaVMInitArgs vm_args;
jint res;
jclass cls;
jmethodID mid;
jstring jstr;
jobjectArray args;
char classpath[1024];
int result;
/* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
JavaVMOption options[3];
options[0].optionString = "-verbose:gc";
sprintf (classpath, "-Djava.class.path=%s", USER_CLASSPATH);
options[1].optionString = classpath;
options[2].optionString = "-Djava.compiler=NONE";
vm_args.options = options;
vm_args.nOptions = 3;
vm_args.ignoreUnrecognized = JNI_TRUE;
vm_args.version = JNI_VERSION_1_4;
/* IMPORTANT: Note that in the Java 2 SDK, there is no longer any need to call
* JNI_GetDefaultJavaVMInitArgs. It causes a bug
/* Append USER_CLASSPATH to the end of default system class path */
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm,(void**)&env, &vm_args);
if (res < 0) {
fprintf(stderr, "Can't create Java VM\n");
exit(1);
cls = env->FindClass("mypackage/Prog");
if (cls == 0) {
fprintf(stderr, "Can't find mypackage/Prog class\n");
exit(1);
JNINativeMethod nm;
nm.name = "displayHelloWorld";
/* method descriptor assigned to signature field */
nm.signature = "()V";
nm.fnPtr = displayHelloWorld;
env->RegisterNatives(cls, &nm, 1);
mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
if (mid == 0) {
fprintf(stderr, "Can't find Prog.main\n");
exit(1);
jstr = env->NewStringUTF(" from C++! calleded by C++, using argument from C++ but java method");
if (jstr == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
args = env->NewObjectArray(1,
env->FindClass("java/lang/String"), jstr);
if (args == 0) {
fprintf(stderr, "Out of memory\n");
exit(1);
env->CallStaticVoidMethod(cls, mid, args);
jvm->DestroyJavaVM();
}********************* File ./mypackage/Prog.java **************************
package mypackage;
public class Prog {
public native void displayHelloWorld();
public static void main(String[] args) {
System.out.println("Hello World" + args[0] +"\n");
Prog prog = new Prog();
prog.displayHelloWorld();
System.out.println("(called from java)");
System.out.println("\nSo to sumurize:");
System.out.println(" -1 Starting point is an exe (not DLL, there is no DLL) so C++ code");
System.out.println(" -2 From C++ call java method using argument from C++");
System.out.println(" -3 From java, that was launched by the exe, call to");
System.out.println(" a native using the RegisterNatives in C++\n");
System.out.println("You got a bidirectional example with as starting point");
System.out.println("a single exe, launching JVM, loading class call back C++!");
}******************* Command line for all ****************************************
javac mypackage/Prog
cl -I"D:\Program Files\j2sdk1.4.2_03\include" -I"D:\Program Files\j2sdk1.4.2_03\include\win32" -MT
invoke.cpp -link D:\PROGRA~1\j2sdk1.4.2_03\lib\jvm.lib
(Remark, the last path is using the short name for "Program Files" because with the blank
even adding double quotes result into an error)
You must have jvm.dll in your path for me it's Path=D:\Program Files\j2sdk1.4.2_03\jre\bin\client;
Then simply call invoke and see the result. :-) -
Java.exe crashing with Dr Watson access violation at address 500bf974
We have been sucessfully runing an application delveloped with JDK 1.2.2 on a Pentium III machine with Windows NT 4 SP5 (384Mb RAM). I have replaced the Pentium III machine with a pentium 4 with 1Gb RAM (still running NT4 SP5). In fact, I simply took the HDD out of the PIII and installed it in the P4.
All applications work correctly (Sybiz Vision, MS Office 97 suite), however, when I go to run the java application is crashes and a Dr Watson Access Violation in java.exe error is generated.
I have:
1. Reinstalled the JDK 1.2.2.
2. Confirmed that all hardware drivers (new NIC, Video and Sound Card) were updated with the appropriate versions from the hardware suppliers web pages.
3. Read thru previous posts on this site (and others) for similar errors, but have only been able to find similar questions.
4. Lowered the video card display colours to 256 rather than 65,536.
None of the above have made any difference.
I hope this question will prompt the java/Dr Watson gurus out there to help me resolve this frustrating problem.
Thanks in anticipation.
GregConsider getting 1.2.2_014, or whatever is the latest version of 1.2.2. I think there were some issues with Pentium IV processors which were fixed in one of the later incarnations of the JDK.
You can get the latest version of 1.2.2 from the following url:
http://java.sun.com/products/jdk/1.2/download.html -
We have a customer that has been receiving the following error for the last 6 to 8 weeks (about once or twice a week) while running our application:
Faulting application java.exe, version 0.0.0.0, faulting module jvm.dll, version 0.0.0.0, fault address 0x000449f7
Our application is running on Java 1.4.2_04-b05 and uses Tomcat 4.1.30 (or thereabouts). The OS is Windows 2003 Server. We have many other customers running the application on the same version of Java and Tomcat on a variety of OS versions, but have not seen this problem before.
We have replaced the java .exe's and .dll's to make sure one had not been corrupted, but to no avail.
There is another similar thread that has no resolution already out there:
http://forum.java.sun.com/thread.jspa?messageID=9961112
but I wanted to put some Duke dollars on this post, so I posted it separately.
If anyone has seen this problem and found some way around it (no matter how severe the remedy) please respond.
Thanks.do you see any core/dump files??
-
Java.exe crash with MS Application Verifier
Dear Java users,
I developed a Java application to be deployed on windows server 2003. But when run the application with Application Verifier to check for runtime resource handling, the java.exe crashed with messsage: java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
I tried several times with JRE1.4 and 1.5 but get the same result.
Any advice should be appreciated.
Thanks.
Message was edited by:
khanhtranJim,
This question is best suited to the Oracle9i Application Server forum.
Thanks -
Java.exe crashes with windows access exception
When OracleASHome102HTTPServer starts I get a Win2000 access exception c0000005 on java.exe. Little DrWatson window pops up... O9i logs Logs show nothing. Only drwatson shows problem info, assembler dump, ets...
Anyone know what's wrong? I've got O9iAS 1.0.2.0, Win2000SP1, Pentium 4, 1.4GHz, 512Mg RAM?
I know there is a problem with the jre JIT compiler on the P4. Got around this during O9iAS installation by using the '-nojit' parameter on all invocations of jrew.exe and jre.exe. Is my java.exe problem still with the P4 chip?
Regards,
Jim Andersonsolution
I have solved the problem,and the method as follows:
1.look for the dll file:symcjit.dll(the path is %oracle_home%\Apache\jdk\jre\bin) ,
2.change the extension to .old
3.restart the httpServer
4.ok
try it,and hope you good luck -
Difference between java.exe and java.dll
can some one tell me the difference between java.exe under bin directory of jdk and java.dll under bin directory of jre under jdk. and how to determine jre the application is using.How to locate istalled jres in windows registry
can some one tell me the difference between
java.exe under bin directory of jdk and
java.dll under bin directory of jre under jdk.java.dll is the library containing the Java Virtual Machine. java.exe is the
program you execute to run Java. It uses java.dll. The java.dll can also be used
to invoke Java classes from other languages using the Java Native Interface (JNI), see
http://java.sun.com/j2se/1.4.2/docs/guide/jni/index.html for more information.
Steve Dever -
Java.exe crash on P4 machine
Is anyone aware of issues with running jdk1.2.2_008 or later on Pentium 4 machines?
I installed a app server on Windows 2000 on my home machine and when I try and start it, a Windows popup window appears saying java.exe has generated errors. Where should I look for a more detailed error message?
The software runs fine on my laptop running 2000 and the only major difference I can think of is the Pentium 4 architecture.
Any help appreciated!Have you found a solution to this problem? I am running java applications on numerous IBM desktops (not P4's)running Windows 2000, but have tried installing JDK1.2.2_006 on a Dell desktop with P4 processor and java.exe aborts with exception nr c0000005 (access violation). I have been cussing Dell, but is it the P4?
-
Java.exe crash upon O9iAS startup
When OracleASHome102HTTPServer starts I get a Win2000 access exception c0000005 on java.exe. Little DrWatson window pops up... O9i logs Logs show nothing. Only drwatson shows problem info, assembler dump, ets...
Anyone know what's wrong? I've got O9iAS 1.0.2.0, Win2000SP1, Pentium 4, 1.4GHz, 512Mg RAM?
I know there is a problem with the jre JIT compiler on the P4. Got around this during O9iAS installation by using the '-nojit' parameter on all invocations of jrew.exe and jre.exe. Is my java.exe problem still with the P4 chip?
Regards,
nullJim,
This question is best suited to the Oracle9i Application Server forum.
Thanks -
BOXI 4 SP2 Patch 11 - Constant awt.dll crashes in the Event Log
Hi All,
Since implementing BOXI 4 SP2 Patch 11 I have noticed very frequent awt.dll crash error messages triggered by SAP JVM throughout the event log.
Does anyone know what is causing this and how to resolve?
=================================================================
Faulting application name: java.exe, version: 6.0.170.4, time stamp: 0x4c3bb897
Faulting module name: awt.dll, version: 6.0.170.4, time stamp: 0x4c3bfa5f
Exception code: 0xc0000005
Fault offset: 0x00000000000d2210
Faulting process id: 0x1c80
Faulting application start time: 0x01ccefaba2a15b7a
Faulting application path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\bin\java.exe
Faulting module path: C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\sapjvm\jre\bin\awt.dll
Report Id: a6ef5e00-5ba2-11e1-a8c2-da6052897efd
====================================================================
Also notice this error immediately afterwards reporting Transaction Deadlocks in our repository and auditing databases on SQL Server :-
=====================================================================
Database access error. Reason [Microsoft][SQL Server Native Client 10.0][SQL Server]Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction..
=====================================================================
SQL Server version is 2008 Release 2.
Have deployed BOXI 4 using Tomcat 6/Java platform.
O/S in Windows Server 2008 Release 2.
This should be a supported configuration so need ideas on why this is happening?
Cheers,
GaryHi All,
SAP Support finally came through for us on this.
The issue is due to the version of the SAP JVM that comes bundled with BOXI 4 SP2 Patches 11 and 12.
If you download the latest version of the SAP JVM from the SAP support portal and install this instead then the problems are resolved.
Thanks,
Gary -
[CS5 Windows] LBQ crashes Java
Hi all,
I'm trying to follow the instructions in the "Working With Load Balancing and Queueing" document for CS5 server. I've run four instances of ID Server using the recommended CORBA parameters in that document. Then I started LBQ by running the "clover.cmd" batch file (after tweaking it a bit, because they forgot to set the JAVA_HOME path). All seems well.
However, when I ping the LBQ as recommended, by opening this URL:
http://localhost:8080/com.adobe.clover.application/api/GetVersion
I get a message that Java has crashed. Specifically, it says "Java(TM) Platform SE binary has stopped working." Then Windows helpfully offers to find a solution (I've never actually experienced Windows finding a solution, ever). Of course then the browser request times out, and we're back to using QuarkXPress.
This is using Windows Server 2008 R2 Standard, Service Pack 1 (say that fast, 3 times), and InDesign CS5 Server 7.0.0.355.
I thought perhaps the Java version was suspect, so I uninstalled it (both 32- and 64-bit versions) and installed fresh versions from www.java.com. Still the same problem. Then I thought, maybe it needs more memory, so I changed the command line -Xmx parameter from 512M to 1024M. Still the same problem.
The problem isn't InDesign Server, because it never actually gets to that point; it's in the LBQ Java code (I think) and/or some mystical Java configuration.
So I'm stumped. Has anyone successfully used Adobe's load balancing solution as documented?
Thanks in advance for any advice.
Regards,
Chuck WegerAdditional information, in case it helps. Here's what the error window said:
Problem Event Name: BEX64
Application Name: java.exe
Application Version: 6.0.250.6
Application Timestamp: 4da6a804
Fault Module Name: dt_socket.dll
Fault Module Version: 6.0.250.6
Fault Module Timestamp: 4da6d3bf
Exception Offset: 0000000000001309
Exception Code: c0000409
Exception Data: 0000000000000000
OS Version: 6.1.7601.2.1.0.272.7
Locale ID: 1033
Additional Information 1: e1a6
Additional Information 2: e1a6289dc6d17c927f01230bffde4c5c
Additional Information 3: 3393
Additional Information 4: 3393c470574ba36965c268b6192f4966
Since it refers to "dt_socket.dll," I thought perhaps there was a firewall issue, so I made sure port 8080 was opened (even though since I'm pinging localhost, I think it doesn't matter). No success. -
CoreFoundation.dll crash followed by iTunes Stops Working on Win7 x64
Hello
I had a Sony Vaio laptop (64 Bit Win 7 Pro and Office etc) for almost 2 years. After running latest windows updates (I think) iTunes started stopping at launch.
After searching thru support forums and testing various suggestions, I thought my Win 7 installation got old and corrupted and I was already thinking of upgrading my laptop to i5 or i7, I asked my company to renew my laptop. I started installing my new Sony Vaio.
Same problem reappeared
Safari Quicktime all works. Only iTunes crashes.
Win 7 64 bit Pro
iTunes 10.4.1.10
On event viewer, on iTunes launch, corefoundation.dll crashes, few secs later, I receive
iTunes.exe
10.4.1.10
4e4e1904
CoreFoundation.dll
1.630.14.0
4e0373f7
c0000005
0004bd33
278c
01cc87c8fafbb85e
C:\Program Files (x86)\iTunes.exe
C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.dll
3c09b303-f3bc-11e0-8034-c0f8daf75f5d
Version=1
EventType=APPCRASH
EventTime=129627786618304736
ReportType=2
Consent=1
UploadTime=129627786624065066
ReportIdentifier=3c09b304-f3bc-11e0-8034-c0f8daf75f5d
IntegratorReportIdentifier=3c09b303-f3bc-11e0-8034-c0f8daf75f5d
WOW64=1
Response.BucketId=2575568783
Response.BucketTable=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=iTunes.exe
Sig[1].Name=Application Version
Sig[1].Value=10.4.1.10
Sig[2].Name=Application Timestamp
Sig[2].Value=4e4e1904
Sig[3].Name=Fault Module Name
Sig[3].Value=CoreFoundation.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=1.630.14.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=4e0373f7
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=0004bd33
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1055
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=9e27
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=9e2778096e7e1e2a2e0302fe58f3eea8
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=9e27
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=9e2778096e7e1e2a2e0302fe58f3eea8
UI[2]=C:\Program Files (x86)\iTunes.exe
UI[3]=iTunes has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a soHello
I had a Sony Vaio laptop (64 Bit Win 7 Pro and Office etc) for almost 2 years. After running latest windows updates (I think) iTunes started stopping at launch.
After searching thru support forums and testing various suggestions, I thought my Win 7 installation got old and corrupted and I was already thinking of upgrading my laptop to i5 or i7, I asked my company to renew my laptop. I started installing my new Sony Vaio.
Same problem reappeared
Safari Quicktime all works. Only iTunes crashes.
Win 7 64 bit Pro
iTunes 10.4.1.10
On event viewer, on iTunes launch, corefoundation.dll crashes, few secs later, I receive
iTunes.exe
10.4.1.10
4e4e1904
CoreFoundation.dll
1.630.14.0
4e0373f7
c0000005
0004bd33
278c
01cc87c8fafbb85e
C:\Program Files (x86)\iTunes.exe
C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.dll
3c09b303-f3bc-11e0-8034-c0f8daf75f5d
Version=1
EventType=APPCRASH
EventTime=129627786618304736
ReportType=2
Consent=1
UploadTime=129627786624065066
ReportIdentifier=3c09b304-f3bc-11e0-8034-c0f8daf75f5d
IntegratorReportIdentifier=3c09b303-f3bc-11e0-8034-c0f8daf75f5d
WOW64=1
Response.BucketId=2575568783
Response.BucketTable=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=iTunes.exe
Sig[1].Name=Application Version
Sig[1].Value=10.4.1.10
Sig[2].Name=Application Timestamp
Sig[2].Value=4e4e1904
Sig[3].Name=Fault Module Name
Sig[3].Value=CoreFoundation.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=1.630.14.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=4e0373f7
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=0004bd33
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1055
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=9e27
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=9e2778096e7e1e2a2e0302fe58f3eea8
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=9e27
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=9e2778096e7e1e2a2e0302fe58f3eea8
UI[2]=C:\Program Files (x86)\iTunes.exe
UI[3]=iTunes has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a so
Maybe you are looking for
-
Joining Sales Orders and Delivery Notes in Query
Hi Experts Please could someone provide me with the correct SQL syntax for joining tables ORDR, RDR1, ODLN and DLN1 in a query? I need to show a list of the (rows of all open sales orders) and (closed sales order (which have a delivery note) between
-
Can't move messages in Mail Inbox to Trash
When I try to empty my unwanted Inbox messages into Trash I get the following window opening in Apple Mail: "6593.emlx" couldn't be copied to "Messages" because an item with the same name already exists. The same applies whether I go for Select All o
-
Need to generate unique sequence number based on category
Hi, I have to update the NEW_NUMBER column with unique number ,taking into category column consideration. Here is the table structure and data. {code} create table sample( CATEGORY VARCHAR2(100), NUMBER VARCHAR2(100), NEW_NUMBER VARCHAR2(100)) {co
-
Hi Gurus I want to make the GL account field (SAKNR) in MB21 as display only. Please guide me with the procedure. thanks Best regards
-
Stock transfer order (STO) Accounting
Hi Gururs, When stock transfer is done from plant to plant for a material which is maintained at different price at the different plants.How we can check which plant is bearing the loss or profit. This loss or gain will be posted to expense/revenue