Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

(SOLVED) ASM & JDBC issue. [1.11+ ?]

Featured Replies

Posted

Hallo! I lately decided to start using MySQL again as storage for my server-mod's data, but keep getting this error (since a few days) when the Driver is being loaded (and fails).
(I'm kinda clueless how to fix/rid of it.)

[15:38:46] [Server thread/ERROR] [FML]: Index: 1 Listeners:
[15:38:46] [Server thread/ERROR] [FML]: 0: NORMAL
[15:38:46] [Server thread/ERROR] [FML]: 1: ASM: net.fexcraft.mod.fsu.server.modules.nvr.events.ChunkEvents@6107bdd0 onLoad(Lnet/minecraftforge/event/world/ChunkEvent$Load;)V
[15:38:46] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoClassDefFoundError: com/mysql/jdbc/AbandonedConnectionCleanupThread
	at com.mysql.jdbc.NonRegisteringDriver.<clinit>(NonRegisteringDriver.java:105) ~[NonRegisteringDriver.class:5.1.42]
	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_65]
	at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_65]
	at net.fexcraft.mod.lib.util.common.Sql.connect(Sql.java:43) ~[Sql.class:?]
	at net.fexcraft.mod.lib.util.common.Sql.getStatement(Sql.java:74) ~[Sql.class:?]
	at net.fexcraft.mod.lib.util.common.Sql.query(Sql.java:84) ~[Sql.class:?]
	at net.fexcraft.mod.fsu.server.modules.nvr.data.Chunk.<init>(Chunk.java:27) ~[Chunk.class:?]
	at net.fexcraft.mod.fsu.server.modules.nvr.events.ChunkEvents.onLoad(ChunkEvents.java:15) ~[ChunkEvents.class:?]
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_18_ChunkEvents_onLoad_Load.invoke(.dynamic) ~[?:?]
	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185) ~[EventBus.class:?]
	at net.minecraft.world.chunk.Chunk.onChunkLoad(Chunk.java:919) ~[Chunk.class:?]
	at net.minecraftforge.common.chunkio.ChunkIOProvider.syncCallback(ChunkIOProvider.java:104) ~[ChunkIOProvider.class:?]
	at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:94) ~[ChunkIOExecutor.class:?]
	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:125) ~[ChunkProviderServer.class:?]
	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:96) ~[ChunkProviderServer.class:?]
	at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:142) ~[ChunkProviderServer.class:?]
	at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:382) ~[MinecraftServer.class:?]
	at net.minecraft.server.MinecraftServer.loadAllWorlds(MinecraftServer.java:352) ~[MinecraftServer.class:?]
	at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:270) ~[DedicatedServer.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:549) [MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65]
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.AbandonedConnectionCleanupThread
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	... 22 more
Caused by: java.lang.RuntimeException: JSR/RET are not supported with computeFrames option
	at org.objectweb.asm.Frame.execute(Frame.java:1282) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.MethodWriter.visitJumpInsn(MethodWriter.java:1011) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.MethodVisitor.visitJumpInsn(MethodVisitor.java:528) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1382) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1032) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:708) ~[asm-debug-all-5.2.jar:5.2]
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:521) ~[asm-debug-all-5.2.jar:5.2]
	at net.minecraftforge.fml.common.asm.transformers.DeobfuscationTransformer.transform(DeobfuscationTransformer.java:51) ~[forgeSrc-1.12-14.21.0.2327.jar:?]
	at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) ~[launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_65]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_65]
	... 22 more

 

I'm using 1.11.2 / 1.12 forge, (last time I successfully used JDBC was 1.8, around 1-2 years ago). Also the code where it throws the exception:

public Connection connect() throws Exception{
	if(isConnected()){
		return c;
	}
	String url = "jdbc:mysql://" + hostname + ":" + port + (database == null ? "" : "/" + database);
	Print.debug(url);
	try{
		Class.forName("com.mysql.jdbc.Driver");//here
	}
	catch(Exception e){
		e.printStackTrace();
	}
	c = DriverManager.getConnection(url, user, password);
	return c;
}

Any suggestions what to do?



(also I hope I didn't post in the wrong place)

Edited by Ferdinand

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.