A Java exception ha...
 
Share:
Notifications
Clear all

2023-09-28: APP 2.0.0-beta24 has been released !

 

Improved application startup, fixed application startup issues, upgraded development platform to Oracle GraalVM JDK21

We are very close now to  releasing APP 2.0.0 stable with a complete printable manual...

Astro Pixel Processor Windows 64-bit

Astro Pixel Processor macOS Intel 64-bit

Astro Pixel Processor macOS Apple M Silicon 64-bit

Astro Pixel Processor Linux DEB 64-bit

Astro Pixel Processor Linux RPM 64-bit

[Solved] A Java exception has ocurred

31 Posts
6 Users
7 Likes
354 Views
(@zumix)
White Dwarf
Joined: 1 year ago
Posts: 12
Topic starter  

Hello. I have been using APP without problems, but after a few weeks without using it I get an error when trying to start it on a Windows 10 machine. After clicking the icon to start the program it says "A java exception has ocurred" and ir doesn't start. I have installed the latest version right now (beta 16) but it says the same...

Any clues?

Thanks

Juan


   
ReplyQuote
(@zumix)
White Dwarf
Joined: 1 year ago
Posts: 12
Topic starter  

No ideas?

I have updated java machine to the latest version available (ver8, 361). I have uninstalled and installed again APP but the problem persists.

Maybe I can run something from the command prompt to ask java for more information about the problem, but I don't know how to do it...

 


   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 6 years ago
Posts: 5701
 

APP does not rely on an external Java implementation, it has its own JVM. So maybe try to uninstall Java (if not needed for anything else), uninstall APP and check if the folders are indeed gone and then reinstall APP?


   
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

 

Hello, I have a similar problem, since recently I have been using the application with the free license, two days after buying the license, I have no option to start the application. It shows me the following error:

Unable to execute file:
C:/Program Files/AstroPixelProcessor/AstroPixelProcessor.exe

CrateProcessFailed code 740

And when I start the application again it gives me the error:

A Java Exception has occurred.

I have reinstalled the application several times but always the same, error. I don't have java installed.

Any ideas to solve the problem?

Thank you.
Captura de pantalla 2023 05 30 195722
Captura de pantalla 2023 05 30 195916

   
ReplyQuote
(@zumix)
White Dwarf
Joined: 1 year ago
Posts: 12
Topic starter  

Hello.

My problem persists, but as I am also running the program in a second PC normally I had forgot this. I have not uninstalled JAVA, it is used by a lot of pieces of software... Also, the JAVA was already installed and working normally until it stopped doing it. I hope a coming version don't shows the error...

 


   
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

It worked perfectly without having Java installed, but I tried with the latest version of Java and also with the same error. I want to think that there must be some solution, that I don't have to wait for the next update...

Thanks for the information.


   
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

Hello, the problem persists and I have had a computer expert check my computer to solve the error mentioned above. The technician tells me that he doesn't know why this Java error occurs, that I contact the application developer to find a solution.

Can you tell me how to proceed to solve the problem, since I cannot install the program on the computer and use it.

Windows 11 X64

Thanks, Alex .

This post was modified 4 months ago by Alex Capdevila Corral

   
ReplyQuote
(@vincent-mod)
Universe Admin
Joined: 6 years ago
Posts: 5701
 

Do you require Java to be installed on your machine? It seems to interfere with APP, do you have any JAVA specific settings in your environment variables? You can check by clicking on the start button and the typing "environment var" and it should show the option to see those. If there are Java settings in there they may be causing interference somehow as well. We usually don't see this issue, so it must be a configuration problem on the computer.


   
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

After assessing the case with the technician, checking all administrator permissions, possible configurations with Java and without Java, antivirus protection completely disabled, installing the application for one or all users, we have not found any solution to be able to install the latest version or some beta version, but with version -1.083-Windows-64bits I have been able to start the application normally.

Waiting for any possible solution.

Thank you so much.

Alex

This post was modified 4 months ago 2 times by Alex Capdevila Corral

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Hi Alex @acc and Juan @zumix,

I am investigating this issue to understand why this is happening. I can not reproduce the problem. Can you check for me the following:

Is Java installed on your computer?

If so, which Java is installed? Maybe multiple java versions are installed so please check 😉

Can you confirm that the problem does not occur if you remove java from your computer? (After which you can re-install it if you need it)

Mabula


   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

Hi Mabula,

Just another one facing the same issue. Let me provide some feedback and also make some questions:

 

1/ My current setup is Windows 11 x64, [Version 10.0.22621.1778]

2/ Problem remain with and with no Java installed on the system.

3/ I've removed APP, cleaned all the Reg entries, deleted Userdata files, etc, reinstall and same issue (with and without Java on the system)

4/ I've also tried it in another computer with almost same specs and SO and for whatever unknow reason it worked. I run procmon on both machines and also compared all the system triggers if you want to have a look (I didn't find nothing relevant).

Few questions:

- Vincent mentioned that the Java binaries and libraries used by APP are contained within the install package (under jre/bin), so no system libraries used, right?.

- Is there any way to launch the APP exe from the cmd and increase the verbosity and log potential events?.

 

Hope that helps


   
Mabula-Admin reacted
ReplyQuote
(@dheyergmail-com)
White Dwarf
Joined: 2 years ago
Posts: 7
 

Simple mosaic will not go together and I am about to give up. Why is it so difficult for any astrophotography software develops to make a good mosaic building engine. The follow error has happened AGAIN. And the only way to get APP or any other software on my computer to work correctly again is to reboot the computer.
Encountered error in module:
MultipleViewFullCameraCalibrationSimpleDistortionCorrectionNotSameCameraIncomplete

Error message:
java.lang.ArrayIndexOutOfBoundsException: Index -6 out of bounds for length 111

Cause:
Index -6 out of bounds for length 111
dv.a(Unknown Source)
dv.doInBackground(Unknown Source)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)

I can build multi gigapixel 360 panoramas that has more then 500 bracketed raw images from my Canon 90D with software called PTGui with no issues. And because I can not get APP to work I am now going to load my mosaic panels into PTGui and manually align stars.

 

The most frustrating issue with APP is it will be working fine and everything is going smoothly and then I have to reboot!

Daniel


   
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

Hi Mabula,

I don't have Java installed, but I have tried with the latest Java version "Version 8 Update 371", with JDK 20 and JDK 17. I have checked the "Java variables", checked the APP installation paths are correct, I have installed forcing the administrator rights, finally I have reinstalled windows 11.

As I said before I have tried with all Beta versions without success, however I manage to start APP with version 1.083 correctly, but when starting the stacking process also indicates another Java error:

Java.lang.OutOf.MemoryError : Java heap space

This post was modified 4 months ago by Alex Capdevila Corral

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @dheyergmail-com

Simple mosaic will not go together and I am about to give up. Why is it so difficult for any astrophotography software develops to make a good mosaic building engine. The follow error has happened AGAIN. And the only way to get APP or any other software on my computer to work correctly again is to reboot the computer.
Encountered error in module:
MultipleViewFullCameraCalibrationSimpleDistortionCorrectionNotSameCameraIncomplete

Error message:
java.lang.ArrayIndexOutOfBoundsException: Index -6 out of bounds for length 111

Cause:
Index -6 out of bounds for length 111
dv.a(Unknown Source)
dv.doInBackground(Unknown Source)
java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
java.base/java.util.concurrent.FutureTask.run(Unknown Source)

I can build multi gigapixel 360 panoramas that has more then 500 bracketed raw images from my Canon 90D with software called PTGui with no issues. And because I can not get APP to work I am now going to load my mosaic panels into PTGui and manually align stars.

 

The most frustrating issue with APP is it will be working fine and everything is going smoothly and then I have to reboot!

Daniel

Dear Daniel,

Thank you very much for reporting your mosaic issue, I will open a separate topic for your issue 😉 this is not the right topic/thread to place your issue.

Mabula

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @vocovak222vaband-com

Hi Mabula,

Just another one facing the same issue. Let me provide some feedback and also make some questions:

 

1/ My current setup is Windows 11 x64, [Version 10.0.22621.1778]

2/ Problem remain with and with no Java installed on the system.

3/ I've removed APP, cleaned all the Reg entries, deleted Userdata files, etc, reinstall and same issue (with and without Java on the system)

4/ I've also tried it in another computer with almost same specs and SO and for whatever unknow reason it worked. I run procmon on both machines and also compared all the system triggers if you want to have a look (I didn't find nothing relevant).

Few questions:

- Vincent mentioned that the Java binaries and libraries used by APP are contained within the install package (under jre/bin), so no system libraries used, right?.

- Is there any way to launch the APP exe from the cmd and increase the verbosity and log potential events?.

 

Hope that helps

Hi Fran @vocovak222vaband-com,

Thank you very much for your detailed analysis. I am also investigation the issue with top priority now, it is very weird, it is not happening on my windows machines... It almost seems to be caused by a windows update but I am not sure. Can you check on your machine with the issue if the moment the problem started to happen coincides with some windows updates?

- Vincent mentioned that the Java binaries and libraries used by APP are contained within the install package (under jre/bin), so no system libraries used, right?.

Correct, APP is installed with it's own java runtime and dependencies. No system linbraries are used.

- Is there any way to launch the APP exe from the cmd and increase the verbosity and log potential events?.

Yes, there is a way, I will check myself and i will let you know how to do it, later today, so you can check what is being reported on your machine.

Mabula


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @acc

Hi Mabula,

I don't have Java installed, but I have tried with the latest Java version "Version 8 Update 371", with JDK 20 and JDK 17. I have checked the "Java variables", checked the APP installation paths are correct, I have installed forcing the administrator rights, finally I have reinstalled windows 11.

As I said before I have tried with all Beta versions without success, however I manage to start APP with version 1.083 correctly, but when starting the stacking process also indicates another Java error:

Java.lang.OutOf.MemoryError : Java heap space

Dear Alex @acc,

With version 1.083 you will probably need to manually adjust the amount of RAM APP can use with the CFG button 😉 With 2.0, that option was deprecated but with 1.083 APP only uses 2GB by default, so you need to increase it 😉 For instance, if you have 16GB, then increase it to 14-15 GB.

I sent you an email to schedule a teamviewer session to look on your computer to fix the problem 😉

Mabula

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @vocovak222vaband-com

Hi Mabula,

...

- Is there any way to launch the APP exe from the cmd and increase the verbosity and log potential events?.

 

Hope that helps

Hi Fran @vocovak222vaband-com,

Can you open a command prompt with administrative rights?

Then cd to your installation directory like: cd "c:\Program Files\astropixelprocessor"

Then run APP with the following command

AstroPixelProcessor.exe >stdout.log 2> stderr.log

Then when the error occurs and APP is closed again, check the 2 log files that were created in the astro pixel processor installation directory. Maybe the stderr.log shows a clue about the problem?

Mabula

 

 


   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

Hi @mabula-admin

Here you are.

image

c:\Program Files\AstroPixelProcessor>type stdout.log

c:\Program Files\AstroPixelProcessor>

c:\Program Files\AstroPixelProcessor>type stderr.log
Exception in thread "main" java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.AccessBridge
at java.desktop/java.awt.Toolkit.newAWTError(Unknown Source)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
at java.desktop/java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at java.desktop/javax.swing.UIManager.<clinit>(Unknown Source)
at java.desktop/javax.swing.JComboBox.updateUI(Unknown Source)
at java.desktop/javax.swing.JComboBox.init(Unknown Source)
at java.desktop/javax.swing.JComboBox.<init>(Unknown Source)
at com.ariesproductions.astropixelprocessor.AstroPixelProcessor.<clinit>(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.java.accessibility.AccessBridge
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at java.base/java.lang.Class.forName(Unknown Source)
... 17 more

c:\Program Files\AstroPixelProcessor>

This post was modified 4 months ago by Fran Martinez

   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Hi all,

Can you also try the following:

got to the directory where Astro pixel Processor is installed with a command prompt for isntance: cd "c:\Program Files\astropixelprocessor"

Then go to the directory where the Java runtime is that is installed together with Astro Pixel Processor: cd jre\bin

Or in 1 go: cd "c:\Program Files\astropixelprocessor\jre\bin"

then execute the following command:  java -version

It should show (depending on the actual APP version) something like:

openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08, mixed mode)

Mabula

 

 

 

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @vocovak222vaband-com

Hi @mabula-admin

Here you are.

image

c:\Program Files\AstroPixelProcessor>type stdout.log

c:\Program Files\AstroPixelProcessor>

c:\Program Files\AstroPixelProcessor>type stderr.log
Exception in thread "main" java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.AccessBridge
at java.desktop/java.awt.Toolkit.newAWTError(Unknown Source)
at java.desktop/java.awt.Toolkit.fallbackToLoadClassForAT(Unknown Source)
at java.base/java.util.stream....

Okay, that will helps us a lot, that is very weird indeed. It is almost as if something on your computer is causing a correct installation of APP. Maybe security software is causing this, can you check if anti-virus software is interfering?

Mabula

 


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Hi all, Fran's error report gives a good clue, I will try to build a new windows installer and will share the download link as soon as possible so you can test if this solved the issue 😉

Mabula


   
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Hi all,

Can you download and test this version, it is 2.0.0-beta18, which is beta17 with the possible fix for this issue 😉 Beta18 is not released yet, but if you can confirm that this works, we will release this as beta18 immediately.

https://astropixelprocessor.s3.eu-central-1.amazonaws.com/AstroPixelProcessor-2.0.0-beta18-Windows-64-bit.zip

Mabula

 


   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

Hi @mabula-admin

1/ Just to confirm:

C:\Windows\System32>cd "c:\Program Files\AstroPixelProcessor"

c:\Program Files\AstroPixelProcessor>cd jre\bin

c:\Program Files\AstroPixelProcessor\jre\bin>java --version
openjdk 19.0.1 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08, mixed mode)

c:\Program Files\AstroPixelProcessor\jre\bin>

 

2/Also, I can confirm that disabling all the Windows Security stuff on Windows11 the result is exactly the same:

image

   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

it WORKED! (2.0.0-beta18) 😊 

image
This post was modified 4 months ago by Fran Martinez

   
Mabula-Admin reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Posted by: @vocovak222vaband-com

it WORKED! (2.0.0-beta18) 😊 

image

👍 😊 excellent ! Thank you very much Fran for confirming so quickly ! I will release this now since several windows users were clearly affected by this problem.

 

 


   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

You're welcome, and its fair to say thank to you also for fixing it. Can I ask what the issue was? 🙂


   
ReplyQuote
(@zumix)
White Dwarf
Joined: 1 year ago
Posts: 12
Topic starter  

It worked for me as well. Thanks a lot!


   
Mabula-Admin reacted
ReplyQuote
(@acc)
Brown Dwarf
Joined: 5 months ago
Posts: 6
 

It also just worked for me. Thank you so much.


   
Mabula-Admin reacted
ReplyQuote
(@mabula-admin)
Universe Admin
Joined: 6 years ago
Posts: 3875
 

Hi @acc @zumix @vocovak222vaband-com,

Excellent, I am very glad this solved the issue ! Thank you very much for confirming that APP starts okay now on your computers 🙂

Fran, the issue in fact was a packaging issue. The development platform which is installed alongside Astro Pixel Processor, java 19, was stripped to make the installer and installation smaller, but apparently this stripping has a bug in the java 19 JDK which I need to understand still. If we use JLink, part of the JDK, to strip the java runtime, the jdk.accessibility module is not included but it is needed on your systems apparently. I guess it is needed because you all use operating system accessibility options I think in some degree. So I decided to make an installer with the java runtime fully intact, I did not strip it and now that dependency is included in the installer and thus it will start correctly. It is rather technical, but that is the reason. So stripping the JDK is a bit dangerous and I will not do it again unless I know 100% that all dependencies that we need are still there 😉

Mabula


   
ReplyQuote
(@vocovak222vaband-com)
Brown Dwarf
Joined: 4 months ago
Posts: 6
 

Thanks for the detailed response Mabula. I've noticed that we all are Spaniards (Alex, Juan), even though I use my SO in pure native English. Quite weird indeed, just in case helps.


   
Mabula-Admin reacted
ReplyQuote
Page 1 / 2
Share: