Jump to content


yttrium's Content

There have been 12 items by yttrium (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#32908 [Error] Null pointer exception on boot

Posted by yttrium on 20 September 2012 - 12:55 PM in Ask a Pro

Will do.

I don't know why it's accessing the world "world" though. The map data is actually being loaded from the map set in server.properties - why is it making a ComputerCraft folder (and using it) in a different world?



#32670 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 11:55 PM in Ask a Pro

Cloudy, you must be a genius.

You said that it can't write a folder.

I decided I would try giving the launch script root permissions.

Suddenly, it works.



#32669 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 11:49 PM in Ask a Pro

Works fine in SSP, and on my friend's server.

Those files are all there:
[email protected]:~/tekkit$ cd ./mods/ComputerCraft/dan200/computer/core
[email protected]:~/tekkit/mods/ComputerCraft/dan200/computer/core$ ls
Computer$10.class  Computer$25.class  Computer$3.class	 Computer$53.class  Computer$68.class				   ComputerThread.class
Computer$11.class  Computer$26.class  Computer$40.class    Computer$54.class  Computer$69.class				   ComputerThread$Task.class
Computer$12.class  Computer$27.class  Computer$41.class    Computer$55.class  Computer$6.class				    Computer$Timer.class
Computer$13.class  Computer$28.class  Computer$42.class    Computer$56.class  Computer$70.class				   FileSystem.class
Computer$14.class  Computer$29.class  Computer$43.class    Computer$57.class  Computer$71.class				   FileSystemException.class
Computer$15.class  Computer$2.class   Computer$44.class    Computer$58.class  Computer$7.class				    FileSystem$Mount.class
Computer$16.class  Computer$30.class  Computer$45.class    Computer$59.class  Computer$8.class				    HTTPRequest$1.class
Computer$17.class  Computer$31.class  Computer$46.class    Computer$5.class   Computer$9.class				    HTTPRequest.class
Computer$18.class  Computer$32.class  Computer$47$1.class  Computer$60.class  Computer$Alarm.class			    HTTPRequestException.class
Computer$19.class  Computer$33.class  Computer$47.class    Computer$61.class  Computer.class					  IComputerEnvironment.class
Computer$1.class   Computer$34.class  Computer$48.class    Computer$62.class  Computer$Event.class			    Terminal.class
Computer$20.class  Computer$35.class  Computer$49.class    Computer$63.class  Computer$PeripheralWrapper$1.class
Computer$21.class  Computer$36.class  Computer$4.class	 Computer$64.class  Computer$PeripheralWrapper$2.class
Computer$22.class  Computer$37.class  Computer$50.class    Computer$65.class  Computer$PeripheralWrapper.class
Computer$23.class  Computer$38.class  Computer$51.class    Computer$66.class  ComputerThread$1$1.class
Computer$24.class  Computer$39.class  Computer$52.class    Computer$67.class  ComputerThread$1.class


There is no Computer or ComputerCraft folder (or anything of the sort) in my world folder.



#32626 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 07:04 PM in Ask a Pro

mod_ComputerCraft.cfg in ~/tekkit/config/ ?

These are the lines in that file:
#MLProperties: name (type:default) min:max -- information
#MLProp : computerBlockID (int:207)
#MLProp : diskDriveBlockID (int:208)
#MLProp : diskItemID (int:4000)
#MLProp : diskDriveGUIID (int:100)
#MLProp : enableAPI_http (int:0)
#MLProp : modem_range (int:64)
#MLProp : modem_rangeDuringStorm (int:1)
#
#Tue Sep 18 11:25:04 EDT 2012
terminal_width=50
terminal_textColour_g=255
modem_rangeDuringStorm=16
computerBlockID=207
diskItemID=4000
diskDriveBlockID=208
enableAPI_http=0
terminal_textColour_b=255
checksum=440
terminal_textColour_r=255
modem_range=64
diskDriveGUIID=100
terminal_height=18

Changing
enableAPI_http=0
to
enableAPI_http=1
doesn't fix anything. Adding a line
enable_http=1
also doesn't fix anything.



#32586 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 04:03 PM in Ask a Pro

Are we talking tekkit settings or OS settings?

I'm hosting it on GNU/Linux Ubuntu 12.04 LTS (32bit).

I don't see why HTTP settings would mess ComputerCraft up though, it isn't like it doesn't work - people can access the server externally.



#32582 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 03:41 PM in Ask a Pro

Do you mean my server.properties?
#Minecraft server properties
#Mon Sep 10 19:39:03 EDT 2012
allow-nether=true
level-name=AlexDoomFortress
enable-query=false
allow-flight=false
server-port=25565
level-type=DEFAULT
enable-rcon=false
level-seed=
server-ip=
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
online-mode=true
pvp=true
difficulty=1
gamemode=0
max-players=20
spawn-monsters=true
generate-structures=true
view-distance=10
motd=lol



#32577 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 03:14 PM in Ask a Pro

The only issue I've found is on line 329 of the server.log:
2012-09-18 10:27:41 [WARNING] Configuration for mod_ComputerCraft.enableAPI_http found value 0 outside acceptable range 4.9E-324,1.7976931348623157E308



#32573 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 02:49 PM in Ask a Pro

Yeah, they're pretty similar, but are indeed different.



#32542 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 11:25 AM in Ask a Pro

I'll pastebin ForgeModLoader-0.log as soon as I have time to TV into the server again.

I know for a fact the folder is named ComputerCraft, though.

EDIT: Here's the log.
http://pastebin.com/a8K8CRy2

And here's the server.log in case you want to check that out, too.
http://pastebin.com/bw60UPFB

The tidbit at the end there is because there's a computer block in a chunk that contains a World Anchor, so it loads automatically when the server starts.



#32505 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 05:08 AM in Ask a Pro

I'm not trying to do anything with Thaumcraft, I don't even know what that is.

I'm trying to figure out why CC doesn't work out of the box stock.



#32498 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 03:25 AM in Ask a Pro

I'm on Tekkit's latest version. I don't know which version of CC it uses, or Forge, but I've literally just reinstalled Tekkit so it's the latest on their site.

It's extracted, so is ccSensors - that's how it came. Should it not be?

EDIT: Just checked, that makes CC on 1.33.

EDIT2: I tried downloading stock CC 1.33, and it appears that it has two .class files in the root directory which Tekkit did not have.

Upon trying to copy those files to the directory and reloading the server, I get this error:

23:45:58 [INFO] [WeaponMod] Properties file read succesfully!
23:45:58 [SEVERE] java.lang.NoClassDefFoundError: ni
23:45:58 [SEVERE]	 at java.lang.Class.getDeclaredConstructors0(Native Method)
23:45:58 [SEVERE]	 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
23:45:58 [SEVERE]	 at java.lang.Class.getConstructor0(Class.java:2714)
23:45:58 [SEVERE]	 at java.lang.Class.newInstance0(Class.java:343)
23:45:58 [SEVERE]	 at java.lang.Class.newInstance(Class.java:325)
23:45:58 [SEVERE]	 at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:107)
23:45:58 [SEVERE]	 at cpw.mods.fml.common.Loader.preModInit(Loader.java:235)
23:45:58 [SEVERE]	 at cpw.mods.fml.common.Loader.loadMods(Loader.java:607)
23:45:58 [SEVERE]	 at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:134)
23:45:58 [SEVERE]	 at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)
23:45:58 [SEVERE]	 at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)
23:45:58 [SEVERE]	 at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
23:45:58 [SEVERE] Caused by: java.lang.ClassNotFoundException: ni
23:45:58 [SEVERE]	 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
23:45:58 [SEVERE]	 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
23:45:58 [SEVERE]	 at java.security.AccessController.doPrivileged(Native Method)
23:45:58 [SEVERE]	 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
23:45:58 [SEVERE]	 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
23:45:58 [SEVERE]	 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
23:45:58 [SEVERE]	 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
23:45:58 [SEVERE]	 ... 12 more
23:45:58 [SEVERE] Unexpected exception
java.lang.NoClassDefFoundError: ni
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
	at java.lang.Class.getConstructor0(Class.java:2714)
	at java.lang.Class.newInstance0(Class.java:343)
	at java.lang.Class.newInstance(Class.java:325)
	at cpw.mods.fml.common.modloader.ModLoaderModContainer.preInit(ModLoaderModContainer.java:107)
	at cpw.mods.fml.common.Loader.preModInit(Loader.java:235)
	at cpw.mods.fml.common.Loader.loadMods(Loader.java:607)
	at cpw.mods.fml.server.FMLBukkitHandler.onPreLoad(FMLBukkitHandler.java:134)
	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:135)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438)
	at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.ClassNotFoundException: ni
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	... 12 more

Removing them does not fix it - only a complete reinstall of Tekkit fixes it.

There also seems to be a few conflicts when booting the server, though it does manage to continue booting.

23:51:30 [WARNING] Configuration for mod_ComputerCraft.enableAPI_http found value 0 outside acceptable range 4.9E-324,1.7976931348623157E308
23:51:30 [INFO] Loading ComputerCraft: To change block IDs, modify config/mod_ComputerCraft.cfg
23:51:30 [INFO] ComputerCraft: computerBlockID 207
23:51:30 [INFO] ComputerCraft: diskDriveBlockID 208
23:51:30 [INFO] ComputerCraft: diskItemID 4000
23:51:30 [INFO] CONFLICT @ -49 item slot already occupied by [email protected] while adding [email protected]
23:51:30 [INFO] ComputerCraft: Searching for RedPowerLib...
23:51:30 [INFO] ComputerCraft: RedPowerLib and methods located.
23:51:30 [INFO] CONFLICT @ -48 item slot already occupied by [email protected] while adding [email protected]




#32494 [Error] Null pointer exception on boot

Posted by yttrium on 18 September 2012 - 03:11 AM in Ask a Pro

Whenever I place a ComputerCraft Computer in SMP, it tries to boot and instantly gives this error:

bios:377: vm error: java.lang.NullPointerException

The server's log also shows something similar:

22:31:40 [SEVERE] dan200.computer.core.FileSystemException: No such directory
22:31:40 [SEVERE]     at dan200.computer.core.FileSystem.<init>(FileSystem.java:67)
22:31:40 [SEVERE]     at dan200.computer.core.Computer.initFileSystem(Computer.java:759)
22:31:40 [SEVERE]     at dan200.computer.core.Computer.access$30(Computer.java:753)
22:31:40 [SEVERE]     at dan200.computer.core.Computer$58.execute(Computer.java:1794)
22:31:40 [SEVERE]     at dan200.computer.core.ComputerThread$1$1.run(ComputerThread.java:50)
22:31:40 [SEVERE]     at java.lang.Thread.run(Thread.java:722)
22:31:40 [INFO] org.luaj.vm2.LuaError: bios:377: vm error: java.lang.NullPointerException
22:31:40 [INFO] stack traceback:

Any idea what might be causing this?