Java CLI-Application: Works in Netbeans, crashes on CLI - java

I have created a simple Java CLI application. It uses a 3rd party lib which uses native code through JNI (swig). When using the "Run" function in Netbeans, the application runs perfectly fine and has acceptable performance.
The application reads a file, iterates over all records in it, performs a calculation and then writes an output file.
Now when I build the app and use it from the CLI (Win 7) the application starts and performs the calculation mostly for the first 3 records and then fails. Rarely it fails later and removing the 4th record does not change that, meaning the failure is not due to bad input or as missing link to native library. The crash is without error message, just the Java Dialog Box:
[Window Title]
Java(TM) Platform SE binary
[Main Instruction]
Java(TM) Platform SE binary has stopped working
[Content]
A problem caused the program to stop working correctly. Please close the program.
[Close the program]
Even more confusing is, that this did once work. I have rebooted at least once since then (friday). It could be an issue with windows settings or environment variables?
Windows Event Viewer says the following:
Faulting application name: java.exe, version: 7.0.450.18, time stamp: 0x525404d0
Faulting module name: ntdll.dll, version: 6.1.7601.18205, time stamp: 0x51db96c5
Exception code: 0xc0000374
Fault offset: 0x000c385b
Faulting process id: 0xd38
Faulting application start time: 0x01ceea75b763490c
Faulting application path: C:\Windows\system32\java.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: fc71e0fd-5668-11e3-a3f1-083e8e9dc95b
Now I'm confused? How can I solve this issue? What is different in netbeans than on the cli?

Related

Failed to locate library: liblwjgl.dylib

I am trying to create a Minecraft mod using this tutorial, altering the version to work with 1.15.1.
I moved a few files around to get it to work, but then this happened:
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 12/04/20 1:44 PM
Description: Initializing game
java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.dylib
at org.lwjgl.system.Library.loadSystem(Library.java:147)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:61)
at net.minecraft.client.MainWindow.func_211162_a(MainWindow.java:121)
at com.mojang.blaze3d.platform.GLX._initGlfw(GLX.java:69)
at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(RenderSystem.java:530)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:367)
at net.minecraft.client.main.Main.main(Main.java:138)
at inject.mcp.client.Start.main(Start.java:19)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at org.lwjgl.system.Library.loadSystem(Library.java:147)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:61)
at net.minecraft.client.MainWindow.func_211162_a(MainWindow.java:121)
at com.mojang.blaze3d.platform.GLX._initGlfw(GLX.java:69)
at com.mojang.blaze3d.systems.RenderSystem.initBackendSystem(RenderSystem.java:530)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:367)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:138)
at inject.mcp.client.Start.main(Start.java:19)
-- System Details --
Details:
Minecraft Version: 1.15.1
Minecraft Version ID: 1.15.1
Operating System: Mac OS X (x86_64) version 10.15.2
Java Version: 1.8.0_241, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 547425376 bytes (522 MB) / 862978048 bytes (823 MB) up to 1908932608 bytes (1820 MB)
CPUs: 8
JVM Flags: 0 total;
Launched Version: mcp
Backend library: LWJGL version 3.2.1 build 12
Backend API: ~~ERROR~~ NoClassDefFoundError: Could not initialize class org.lwjgl.system.Library
GL Caps:
Using VBOs: Yes
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
CPU: <unknown>
It seems that it cannot locate the library "liblwjgl.dylib".
Upon checking for this library, I found a file that might match:
liblwjgl.dylib.sha1 is located within the Project and external dependencies under lwjgl-3.2.1.jar
For some reason, however, that doesn't seem to work. I've not seen a file suffixed .sha1 before, what is it's a function? It contains one line, a hash (I am assuming sha1).
I am using macOS Catalina, Java 8 and Gradle 4.8.1 with Eclipse 4.15.0.
As I understand its a dylib file (dynamic library) that is somewhere in the game files or forge files, and files that are missing in game files can be easily fixed by reinstalling the game. And if that doesn't fix it try reinstalling the mod loader.

Error Installing Websense Software on Windows Server 2012 R2

I am trying to upgrade my current websense proxy manager (windows 2012 R2), and continuously get the below JDK error, approx 1 minute into install, then it crashes out.
Its an in place upgrade, so next step might be to wipe and build a new server, but id really rather avoid that if possible, as its a significant piece of work.
I've been researching online, and it seems to be a graphics related issue, but can't see why it causing an app install to crash :(
Would anyone have recommendations? I'm wondering is there a JAVA or GPU service i can disable while running upgrade?
Openjdk platform binary has stopped working.
Problem signature:
Problem Event Name: BEX64
Application Name: javaw.exe
Application Version: 8.0.1520.16
Application Timestamp: 5a29ef24
Fault Module Name: MSVCR80.dll
Fault Module Version: 8.0.50727.8428
Fault Module Timestamp: 520b0ac2
Exception Offset: 000000000001d4d4
Exception Code: c000000d
Exception Data: 0000000000000000
OS Version: 6.3.9600.2.0.0.400.8
Locale ID: 6153
Additional Information 1: 588f
Additional Information 2: 588f2731257bb39c514cfe32b2a220be
Additional Information 3: d3ad
Additional Information 4: d3adc5abebf62b1e9b56224c436950af
I rebuilt server and install worked successfully. Still non the wiser on root cause though.
Replacing javaw.exe with java.exe worked at other instance.

JVM Crash in VLCJ based recording application

I have a recording application which uses vlcj. Usually application works fine, without ant problem. But sometimes it crashes. I have following crash error:
Problem signature:
Problem Event Name: APPCRASH
Application Name: javaw.exe
Application Version: 8.0.31.13
Application Timestamp: 54926713
Fault Module Name: StackHash_fd70
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: PCH_F6_FROM_ntdll+0x0000000000096B2A
OS Version: 6.3.9600.2.0.0.400.8
Locale ID: 1033
Additional Information 1: fd70
Additional Information 2: fd708418e0c0196a5239016586aeb518
Additional Information 3: be53
Additional Information 4: be534f1b8c904d81a83bb96df947b1c7
Sometimes this project works 2-3 days without crash, but sometimes crashs after 4-5 hour. I restarted project every day, but this doesn't help.
I use java 8, VLC 2.2.0, vlcj 3.0.1, jna 3.5.2

faulting module msvcr100.dll,exception code 0xc0000417

When I run a self written java program and after a certain time the JVM crashes, but no JVM log is saved.
The only thing I find is following event in Windows Event Viewer:
Faulting application java.exe, version 7.0.670.1, time stamp 0x53d28725, faulting module msvcr100.dll, version 10.0.40219.1, time stamp 0x4d5f0c22, exception code 0xc0000417, fault offset 0x0008af3e, process id 0x14fc, application start time 0x01cfb572d3b64c7f.
Any ideas where it could come from ?
My own program was using a 3rd party program.
An update of that program did solve the issue.
If reinstalling MS C++ 2010 package doesn't help, does it run without error on another machine?

Invalid memory access of location Java - AWT-AppKit Thread - launching Web Application

my configuration:
Mac OS X 10.8.4
Processor 2.4 GHz Intel Core i7
Memory 8GB
JDK 1.6.0_38-b04-436.jdk
I think, but I am not sure, this error started to show up after a App Store Java Update...
When I launch my web application, I keep getting this error:
2013-07-09 14:13:41.831 java[588:707] NSSoftLinking - The Librarian framework's library couldn't be loaded from (null).
2013-07-09 14:13:41.832 java[588:707] NSSoftLinking - The function 'LBCurrentProcessHasUbiquityContainer' can't be found in the Librarian framework.
Invalid memory access of location 0x38 rip=0x7fff9115e284
Also, the problem reported show up with some content:
... quit unexpectedly while using the Java plug-in.
The report will be send to Apple automatically.
Process: java [3237]
Path: /usr/bin/java
Identifier: com.apple.javajdk16.cmd
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: bash [3236]
User ID: 3443
PlugIn Path: /Library/Java/Home/bin/java
PlugIn Identifier: java
PlugIn Version: 1.0 (1.0)
Java information:
Exception type:
Bus Error (0xa) at pc=7fff9115e284
...
related thread:
JavaThread "AWT-AppKit" daemon
I tried a different version of my web server, Tomcat 5, Tomcat 6.
I tried resting the PRAM memory. http://support.apple.com/kb/ht1379
I tried installing the JavaForOSX2013-004. http://support.apple.com/kb/DL1572
Did not solve the problem.
Anybody has a clue?
Thanks
I just deleted all Java directories in my Mac and install a previous version of Java and it is working again.
edit: JavaForOSX2013-003
I fixed this by installing the latest jdk 7 and then pointing to it in catalina.sh :
JRE_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home"

Categories