Type 0 Null Pointer Exception error

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    Ran into a Type 0 Null Pointer Exception error on the Cake server.

    I've re-downloaded and installed full game through the launcher, and I can access single player and other servers, but Cake is still a no-go for me. Soon as it tries to load the universe to about 30%, it dies.

    Lil' help?
     
    Last edited:
    Joined
    Jan 28, 2015
    Messages
    492
    Reaction score
    149
    • Community Content - Bronze 1
    • Purchased!
    • Legacy Citizen 3
    Lil' help?
    Some things to try.

    You may need Nauvran for this because the server is white listed. Else you could have simply tried a new user name to see if your spawn point broke or your user data server side got corrupted.

    Ask Nauvran to try out these commands.

    player_info ◦DESCRIPTION: displays info about a player (even when player is not on)
    ◦PARAMETERS: Name(String)
    ◦EXAMPLE: /player_info schema

    set_spawn_player ◦DESCRIPTION: Sets the spawning point for this player to the current position
    ◦PARAMETERS: Name(String)
    ◦EXAMPLE: /set_spawn_player schema

    Let him set your spawn in another sector. Maybe that helps. He has to go to that other sector and use this /set_spawn_player Edymnion

    Incase the /player_info command gives him your last used sector or you know where it was. Then a /repair_sector x y z might sometimes also solve weird issues.

    I've re-downloaded and installed full game through the launcher
    Make sure to use a brand new directory to absolutely rule out any problems with conflicting or corrupted server/user data.

    Should everything fail then you can always become our new favorite target practice on a pvp server near you. :giggle:

    Season.jpg

    could not resist!

    Or wait for a dev to brainstorm your problem. :whistle:
     
    • Like
    Reactions: Edymnion

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    *rubs head*

    Okay, yeah, I look more like Elmer Fudd than I care to admit... :P
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Logs really help, I've had this issue where there was actually a server running in the background. Usually a reboot fixed it since I could not find it in the process list.
     

    Nauvran

    Cake Build Server Official Button Presser
    Joined
    Jun 30, 2013
    Messages
    2,346
    Reaction score
    1,195
    • Master Builder Bronze
    • Competition Winner - Small Fleets
    • Legacy Citizen 10
    Some things to try.

    You may need Nauvran for this because the server is white listed. Else you could have simply tried a new user name to see if your spawn point broke or your user data server side got corrupted.

    Ask Nauvran to try out these commands.

    player_info ◦DESCRIPTION: displays info about a player (even when player is not on)
    ◦PARAMETERS: Name(String)
    ◦EXAMPLE: /player_info schema

    set_spawn_player ◦DESCRIPTION: Sets the spawning point for this player to the current position
    ◦PARAMETERS: Name(String)
    ◦EXAMPLE: /set_spawn_player schema

    Let him set your spawn in another sector. Maybe that helps. He has to go to that other sector and use this /set_spawn_player Edymnion

    Incase the /player_info command gives him your last used sector or you know where it was. Then a /repair_sector x y z might sometimes also solve weird issues.



    Make sure to use a brand new directory to absolutely rule out any problems with conflicting or corrupted server/user data.

    Should everything fail then you can always become our new favorite target practice on a pvp server near you. :giggle:

    View attachment 40265

    could not resist!

    Or wait for a dev to brainstorm your problem. :whistle:
    That is not how you tag people, you use Batavium not the link to my profile
    *rubs head*

    Okay, yeah, I look more like Elmer Fudd than I care to admit... :P
    We can try and delete your player data although this will mean that your faction might be deleted if you're the only one in it. All your factioned entities will be unfactioned.
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    We can try and delete your player data although this will mean that your faction might be deleted if you're the only one in it. All your factioned entities will be unfactioned.
    Meh, I have local blueprints of the stuff I really want.

    Feel free to delete the faction and nuke the entire damned sector if you like.
     

    Nauvran

    Cake Build Server Official Button Presser
    Joined
    Jun 30, 2013
    Messages
    2,346
    Reaction score
    1,195
    • Master Builder Bronze
    • Competition Winner - Small Fleets
    • Legacy Citizen 10
    Meh, I have local blueprints of the stuff I really want.

    Feel free to delete the faction and nuke the entire damned sector if you like.
    No I need to delete YOUR PLAYER DATA not your faction, thats just a side effect
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    No I need to delete YOUR PLAYER DATA not your faction, thats just a side effect
    Yeah, I know.

    I'm saying I'm fine with that, I'm also fine if its something in my sector that corrupted and you have to revert the entire thing to stock.
     

    Nauvran

    Cake Build Server Official Button Presser
    Joined
    Jun 30, 2013
    Messages
    2,346
    Reaction score
    1,195
    • Master Builder Bronze
    • Competition Winner - Small Fleets
    • Legacy Citizen 10
    Yeah, I know.

    I'm saying I'm fine with that, I'm also fine if its something in my sector that corrupted and you have to revert the entire thing to stock.
    Well it's done now
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    Well it's done now
    Looks like its working now, gratci.

    Now to see if I can figure out what system I was in.

    --+Update+--

    Good: It worked.
    Neutral: Faction was still there, so name was taken.
    Bad: Admin warped to that sector to grab my stuff, right back to null pointer. The sector itself is definitely jacked.

    Gonna need to wipe all of it.
     
    Last edited:

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    You're super helpful, you know that right?

    Post about a nullpointer, without posting the logs that can lead Schine to pretty much the exact line of code causing it.

    Tell us we need to wipe a sector, but fail to actually mention where the hell that sector is.
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    Post about a nullpointer, without posting the logs that can lead Schine to pretty much the exact line of code causing it.

    Tell us we need to wipe a sector, but fail to actually mention where the hell that sector is.
    Well, ask and thy shalt receive, for the log anyway.

    As for the sector, I'd be happy to tell you except that I don't know what it is and I can't exactly get into the game right now to bring it up. Last time I was in my faction still existed even though I was no longer in it (Stellar Mechanics), and it has the home base coordinates listed. You should be able to pull from there.

    Or, if someone can wipe my data again, I can get in and check myself and report back, now that I know not to go back to that sector.
     

    Attachments

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Server shut down was the reason you were disconnected.

    However, I am unsure why, there is no indicator in the log giving a reason for the shutdown of the server. (And as it was single player, I assume it was NO automated restart)

    - Andy
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    Server shut down was the reason you were disconnected.

    However, I am unsure why, there is no indicator in the log giving a reason for the shutdown of the server. (And as it was single player, I assume it was NO automated restart)

    - Andy
    Crap, was that from a single player?

    Sorry about that, didn't realize I had logged into SP since the last MP attempt.

    There, lets try a fresh one.
     

    Attachments

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    What timezone are you in so I can get corresponding server logs?
     

    Edymnion

    Carebear Extraordinaire!
    Joined
    Mar 18, 2015
    Messages
    2,709
    Reaction score
    1,512
    • Purchased!
    • Thinking Positive Gold
    • Legacy Citizen 5
    Wowee, what did you do to my server...

    http://puu.sh/v1rTd/d1d0d74228.txt
    I murderized it, apparently. Sowwy...

    I had been working on a turret when it first happened. I believe I had accidentally deleted the turret axis the top half was on and had tried to put a new one in for it to maglock back onto instead of bouncing around doing collision checks.
     
    Last edited:

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Code:
    [2017-03-28 15:07:23] java.lang.NullPointerException: Exception: REQUESTED TYPE 0 IS NULL
    [2017-03-28 15:07:23]     at org.schema.game.common.data.element.ElementKeyMap.getInfo(SourceFile:643)
    [2017-03-28 15:07:23]     at obfuscated.aap.d(SourceFile:313)
    [2017-03-28 15:07:23]     at obfuscated.aap.b(SourceFile:294)
    [2017-03-28 15:07:23]     at obfuscated.aan.g(SourceFile:2338)
    [2017-03-28 15:07:23]     at obfuscated.aai.a(SourceFile:120)
    [2017-03-28 15:07:23]     at obfuscated.aan.a(SourceFile:591)
    [2017-03-28 15:07:23]     at obfuscated.aan.a(SourceFile:870)
    [2017-03-28 15:07:23]     at obfuscated.XR.updateLocal(SourceFile:2586)
    [2017-03-28 15:07:23]     at obfuscated.Yg.updateLocal(SourceFile:399)
    [2017-03-28 15:07:23]     at org.schema.game.common.controller.EditableSendableSegmentController.updateLocal(SourceFile:1105)
    [2017-03-28 15:07:23]     at obfuscated.Yp.updateLocal(SourceFile:576)
    [2017-03-28 15:07:23]     at obfuscated.I.update(SourceFile:1329)
    [2017-03-28 15:07:23]     at obfuscated.aFr.a(SourceFile:719)
    [2017-03-28 15:07:23]     at obfuscated.aFx.b(SourceFile:665)
    [2017-03-28 15:07:23]     at obfuscated.U.e(SourceFile:956)
    [2017-03-28 15:07:23]     at org.schema.game.common.Starter.startMainMenu(SourceFile:1435)
    [2017-03-28 15:07:23]     at org.schema.game.common.Starter.main(SourceFile:980)
    Looks like you have an invalid dock there for some reason.
    The "Requested TYPE 0 is NULL" means:
    There is a dock pointing to a non existing block.
    Air (Block ID 0) to be exact.

    So if you have backups of your stations and alike, it would be best to just stamp an empty-sector export in place.

    therimmer96 If it works, may you grab a sector export of this sector and send it to me?
    If we are able to get this broken sector on our testserver, we may be able to find a less-fatal result of an invalid dock, that does not affect the whole server from looping around to get the dock in place.

    - Andy
     

    therimmer96

    The Cake Network Staff Senior button unpusher
    Joined
    Jun 21, 2013
    Messages
    3,603
    Reaction score
    1,053
    • Legacy Citizen 10
    • Top Forum Contributor
    Just tried to export it, export came out empty (1kb, only contained the sector.cfg file) :/
    [doublepost=1490733472,1490733387][/doublepost]Nevermind, I'm an idiot, here you go http://puu.sh/v1wOl/d8f5cff2c5.smsec