Unable to launch local server

  • Hello there!


    I had a working local server running couple of months ago, put it together following various posts in here and some tutorial videos.


    Now, after a long pause I tried to fire it up again, but with no success. I've tried to look trough the forums, but have not found the exact same errors that I get.


    I pulled the latest holocore and installed all the latest versions of the needed software as per Tacef's DEVGUIDE post:


    • Eclipse Neon.1 Release (4.6.1)
    • Apache Maven 3.3.9
    • JDK 8u102
    • M2E 1.7.0
    • PostgreSQL 9.4.4 (from the old installation)

    Set up everything according the guides/posts, did the database restore + user, JDK+Maven JAVA_HOME Env variable and mvn -v test. I Imported the project to Eclipse as Maven project. Had my old clientdata in the holocore folder, but tried to replace it with Obique's one from other thread.


    But still getting this error when trying to run the project from Eclipse:




    29-09-16 14:39:24.912 I: Generating CRCs...
    29-09-16 14:39:26.501 I: Created new manager in 1994,774ms
    29-09-16 14:39:26.505 I: Initializing...
    29-09-16 14:39:26.505 I: Loading client objects...



    .. a lot of 'building not found' errors here ..



    29-09-16 14:39:34.567 I: Finished loading 112661 client objects. Time: 8061,905517ms
    29-09-16 14:39:34.567 I: Loading objects from ObjectDatabase...
    29-09-16 14:39:34.583 E: Error while loading file. NegativeArraySizeException: null
    29-09-16 14:39:34.584 E: Exception in thread"main.ProjectSWG.main()" java.lang.NegativeArraySizeException: null
    29-09-16 14:39:34.584 E: Caused by: class java.lang.NegativeArraySizeException: null
    29-09-16 14:39:34.584 E: resources.network.NetBuffer.getAscii(NetBuffer.java:166)
    29-09-16 14:39:34.584 E: resources.network.NetBufferStream.getAscii(NetBufferStream.java:198)
    29-09-16 14:39:34.584 E: resources.persistable.SWGObjectFactory.create(SWGObjectFactory.java:44)
    29-09-16 14:39:34.584 E: resources.persistable.InputPersistenceStream.read(InputPersistenceStream.java:68)
    29-09-16 14:39:34.584 E: resources.server_info.CachedObjectDatabase.load(CachedObjectDatabase.java:108)
    29-09-16 14:39:34.584 E: services.objects.ObjectManager.loadObjects(ObjectManager.java:122)
    29-09-16 14:39:34.585 E: services.objects.ObjectManager.initialize(ObjectManager.java:106)
    29-09-16 14:39:34.585 E: resources.control.Manager.initialize(Manager.java:59)
    29-09-16 14:39:34.585 E: services.galaxy.GalacticManager.initialize(GalacticManager.java:84)
    29-09-16 14:39:34.585 E: resources.control.Manager.initialize(Manager.java:59)
    29-09-16 14:39:34.585 E: services.CoreManager.initialize(CoreManager.java:118)
    29-09-16 14:39:34.585 E: main.ProjectSWG.initialize(ProjectSWG.java:122)
    29-09-16 14:39:34.585 E: main.ProjectSWG.run(ProjectSWG.java:94)
    29-09-16 14:39:34.585 E: main.ProjectSWG.main(ProjectSWG.java:53)
    29-09-16 14:39:34.585 E: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    29-09-16 14:39:34.585 E: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    29-09-16 14:39:34.586 E: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    29-09-16 14:39:34.586 E: java.lang.reflect.Method.invoke(Method.java:498)
    29-09-16 14:39:34.586 E: org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:294)
    29-09-16 14:39:34.586 E: java.lang.Thread.run(Thread.java:745)
    29-09-16 14:39:34.586 E: ObjectManager failed to initialize!
    29-09-16 14:39:34.586 E: GalacticManager failed to initialize!
    29-09-16 14:39:34.586 E: Shutting down. Reason: Failed to initialize.
    29-09-16 14:39:34.586 E: Exception in thread"main.ProjectSWG.main()" main.ProjectSWG$CoreException: Failed to initialize.
    29-09-16 14:39:34.586 E: Caused by: class main.ProjectSWG$CoreException: Failed to initialize.
    29-09-16 14:39:34.587 E: main.ProjectSWG.initialize(ProjectSWG.java:123)
    29-09-16 14:39:34.587 E: main.ProjectSWG.run(ProjectSWG.java:94)
    29-09-16 14:39:34.587 E: main.ProjectSWG.main(ProjectSWG.java:53)
    29-09-16 14:39:34.587 E: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    29-09-16 14:39:34.587 E: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    29-09-16 14:39:34.587 E: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    29-09-16 14:39:34.587 E: java.lang.reflect.Method.invoke(Method.java:498)
    29-09-16 14:39:34.587 E: org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:294)
    29-09-16 14:39:34.587 E: java.lang.Thread.run(Thread.java:745)
    29-09-16 14:39:34.587 I: Stopping...
    29-09-16 14:39:34.599 I: Stopped. Time: 8093,745ms
    29-09-16 14:39:34.599 I: Terminating...
    29-09-16 14:39:34.602 E: Not saving 'odb\objects.db', file not loaded yet!
    29-09-16 14:39:34.603 E: Not saving 'odb\chat_rooms.db', file not loaded yet!
    29-09-16 14:39:34.603 E: Not saving 'odb\mails.db', file not loaded yet!
    29-09-16 14:39:34.604 I: Terminated. Time: 8099,126ms
    29-09-16 14:39:34.604 I: Server shut down.

    Files

    • PSWG.txt

      (11.28 kB, downloaded 11 times, last: )
  • Thank you for a prompt reply :)


    Yes, I have. I had the server up and running months before and now I even substituted my original clientdata folder with Obique's one. The size of the clientdata folder is ~3.1Gb so it should all be there.

  • I tried that too, to no avail. I even tried to import and run the project as normal Java Application instead of Maven, as you suggested on some other thread, but had the exact same result :( .


    Could it be the JDK version I am using? JDK 8u102 is the latest one and I use that one, downloaded it today. I also use the x64 version of it, dunno if that's an issue nowadays anymore.

  • Hello Obique!


    Yes, there is odb folder inside the holocore and it has chat_rooms.db, mails.db and objects.db in it.


    In the meanwhile I uninstalled all of my JDK's and JRE's and installed latest x86 JDK, configured the Eclipse project to use that one and now when running, it at least doesnt throw so many errors anymore, but has outputted in the console in the past 10mins or so:


    29-09-16 20:52:34.811 I: Generating CRCs...
    29-09-16 20:52:36.569 I: Created new manager in 2033,231ms
    29-09-16 20:52:36.571 I: Initializing...
    29-09-16 20:52:36.572 I: Loading client objects...
    29-09-16 20:57:36.422 E: Not saving 'odb\objects.db', file not loaded yet!
    29-09-16 20:57:36.550 E: Not saving 'odb\chat_rooms.db', file not loaded yet!
    29-09-16 20:57:36.555 E: Not saving 'odb\mails.db', file not loaded yet!
    29-09-16 21:02:36.425 E: Not saving 'odb\objects.db', file not loaded yet!
    29-09-16 21:02:36.553 E: Not saving 'odb\chat_rooms.db', file not loaded yet!
    29-09-16 21:02:36.558 E: Not saving 'odb\mails.db', file not loaded yet!


    I guess it takes a while for the server to start up, or is this normal?

  • That's most likely due to permissions when trying to save the file.. but I'm not sure. That shouldn't happen anymore (used to be an issue).


    On my laptop it takes 10 seconds to start the server with an SSD. Hopefully it's close on your machine, if not, it's probably because you have an HDD and we load a lot of data on startup.

    bc4l2rt.png

  • If I use the x86 JDK it just stops at Loading client objects... Yesterday I waited for 2h, but it did not progress from there. PSWG is located on 5*RAID0 Sata3 disks, so speed should not be an issue. With x64 JDK if still gives me the OP error.


    I think that next I will wipe and uninstall everything, the repo files, dev/build tools and javas and try to start from scratch :(

  • If this was indeed an old install, chances are you have objects in your ODB that can't be loaded, simply because we didn't implement backwards compatibility for a long time. The negative array size exception points in that direction.


    We do implement backwards compatibility now, so it should not happen again.


    As for solving your problem, I believe the following should work:


    • Definitely stick with the x64 JDK
    • Setting WIPE-ODB-FILES=1 and CLEAN-CHARACTER-DATA=1 in cfg/nge.cfg
    • You can set those two back to 0 after succesfully booting Holocore once

    xI45L74.png

  • Thank you Ziggy :thumbsup: This worked, using the x64 JDK did one start with those changes in nge.cfg and another with them back to 0 and now the server starts. It also wiped and then recreated the .db files in odb.


    Thank you Very Much ! :dancing_trooper:


    Still getting a lot of Building not found errors though, is that normal?

  • Thank you Ziggy :thumbsup: This worked, using the x64 JDK did one start with those changes in nge.cfg and another with them back to 0 and now the server starts. It also wiped and then recreated the .db files in odb.


    Thank you Very Much ! :dancing_trooper:


    Still getting a lot of Building not found errors though, is that normal?

    You're quite welcome.


    That is normal for now, yes.

    xI45L74.png

  • Undercova

    Closed the thread.