Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem Java - Alternativa za vnořené cykly?

Ano, jen jsem pochopitelně navýšil počet znaků (počet písmen pořád 4, ale délku jsem nastavil na 14)

Ale jde hlavně o to, že pokud jsem vytvořil několik vnořených cyklů (viz než 4), tak to crashlo kvůli nedostatku paměti, k této chybě nikdy nedošlo.

Toto je její úplné znění

Exception in Application start method
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1081)
Caused by: java.lang.RuntimeException: Exception in Application start method
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
	at java.base/java.lang.Thread.run(Thread.java:1623)
Caused by: java.lang.OutOfMemoryError: Java heap space
	at java.base/java.lang.StringConcatHelper.newString(StringConcatHelper.java:331)
	at java.base/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder)
	at java.base/java.lang.invoke.LambdaForm$MH/0x00000008010a2800.invoke(LambdaForm$MH)
	at java.base/java.lang.invoke.Invokers$Holder.linkToTargetMethod(Invokers$Holder)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.getVariation(Variation.java:60)
	at combination.Variation.start(Variation.java:47)
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
	at javafx.graphics@20.0.1/com.sun.javafx.application.LauncherImpl$$Lambda$102/0x0000000801087528.run(Unknown Source)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl$$Lambda$95/0x0000000801084e88.run(Unknown Source)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl$$Lambda$97/0x00000008010860b0.run(Unknown Source)
	at java.base/java.security.AccessController.executePrivileged(AccessController.java:778)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
	at javafx.graphics@20.0.1/com.sun.javafx.application.PlatformImpl$$Lambda$96/0x0000000801085850.run(Unknown Source)
	at javafx.graphics@20.0.1/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at javafx.graphics@20.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
Exception running application combination.Variation

Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny