Long time lurker, active maybe 10 years ago when v62 was still a thing and the community was growing. Decided to make use of my free time to port over the guide written on Discord. Hopefully this helps more people to get into some sort of mushroom-game dev
Full credits to the Swordie team & contributors, especially Asura and Sjonnie who originally wrote this guide.
大神你好,感谢分享。运行server后,提示Exception in thread "main" org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:181)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:312)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:728)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:744)
at net.swordie.ms.connection.db.DatabaseManager.init(DatabaseManager.java:138)
at net.swordie.ms.Server.init(Server.java:61)
at net.swordie.ms.Server.main(Server.java:144)
Caused by: org.hibernate.InstantiationException: could not instantiate test object : net.swordie.ms.client.character.Char
at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:43)
at org.hibernate.engine.internal.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:68)
at org.hibernate.tuple.PropertyFactory.buildIdentifierAttribute(PropertyFactory.java:65)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:142)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:612)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:126)
at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 9 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:40)
... 18 more
Caused by: java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
该用户从未签到
初级会员
使用道具 举报
2020-10-9 11:18
签到天数: 22 天
[LV.4]偶尔看看III
中级会员
有架设好的 但是修复一般 建议自己源码调试比较好的
使用道具 举报
该用户从未签到
新人上路
使用道具 举报
该用户从未签到
新人上路
求助!
本人新手,第一次就失败还请高手求助一下
1.请问一下不能创建一个新的模式怎么办?
2.请问一下导航至src > main > java > net.swordie.ms > Server. 右键然后run server.--->执行时出错?
3.请问一下新创建的连接--->不能运行?
4.请问一下步骤 2: 导出 WZ 文件--->(源码文件)<---这个是哪一个地方是下载这个里面文件https://bitbucket.org/swordiemen/swordie/src/master/ or 导出 Source Tree里面的文件然后再里面创造 “wz” 和 “dat”文件吗?
使用道具 举报
该用户从未签到
新人上路
mark!!!!!!!!!!!!!!!!!!!!!
使用道具 举报
2023-4-9 13:35
签到天数: 3 天
[LV.2]偶尔看看I
新人上路
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123)
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77)
at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:181)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:312)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:728)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:744)
at net.swordie.ms.connection.db.DatabaseManager.init(DatabaseManager.java:138)
at net.swordie.ms.Server.init(Server.java:61)
at net.swordie.ms.Server.main(Server.java:144)
Caused by: org.hibernate.InstantiationException: could not instantiate test object : net.swordie.ms.client.character.Char
at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:43)
at org.hibernate.engine.internal.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:68)
at org.hibernate.tuple.PropertyFactory.buildIdentifierAttribute(PropertyFactory.java:65)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:142)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:612)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:126)
at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96)
... 9 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.hibernate.engine.internal.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:40)
... 18 more
Caused by: java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
使用道具 举报
2023-2-3 09:42
签到天数: 3 天
[LV.2]偶尔看看I
初级会员
使用道具 举报
该用户从未签到
新人上路
使用道具 举报
该用户从未签到
新人上路
jdk要用16, 教程选jdk8, 是过时的.
使用道具 举报