RPTools.net

Discussion and Support

Skip to content

It is currently Wed Apr 26, 2017 6:25 pm 






Reply to topic  [ 6 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Mon Aug 22, 2016 4:55 pm
Posts: 3
 Post subject: chartool - nullPointer error - a partial fix
PostPosted: Mon Aug 22, 2016 5:08 pm 
Hi,

I've been trying to use the rptools to setup a game and ran into the chartool error that seems to be effecting everyone these days.

I don't know who the main developer is but I've done some fixes so that it mostly works.

You need to overwrite the existing jar with this new one (remove the .txt extension first)

The parser code doesnt seem to be checking for nulls anywhere which is the issue but why it's getting them in the first place is a whole new issue.

It could be a problem with the javascript execution as that errors (property/propertyDescriptorSet.xml in d20fantasy.rpgame) but I dont know much about that yet ....

Enjoy

bz


Addition.java.txt [2.26 KiB]
Downloaded 30 times
parser-1.1.b23.jar.txt [78.22 KiB]
Downloaded 38 times
Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Aug 22, 2016 4:55 pm
Posts: 3
 Post subject: chartool - nullPointer error - a partial fix
PostPosted: Mon Aug 22, 2016 5:23 pm 
Hi,

I've found a partial fix to this issue. I dont know why it's happening, the List param object has nulls in it which is causing the failures.

I think the javascript excutution failing (d20fantasy.rpgame file, propertyDescriptorSet.xml) might be the root cause ...

When I made changes to src/main/java/net/rptools/parser/function/impl/Addition.java and did additional checks for nulls it made chartool usable ...

Enjoy

BZ


Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Aug 22, 2016 4:55 pm
Posts: 3
 Post subject: Re: chartool - nullPointer error - a partial fix
PostPosted: Mon Aug 22, 2016 10:40 pm 
or the quickest way is to install java 1.6 then dont have any issues at all ....


Top
 Profile  
 
User avatar  Offline
RPTools Team
 
Joined: Tue Feb 07, 2006 1:07 am
Posts: 1766
Location: Austin, Tx
 Post subject: Re: chartool - nullPointer error - a partial fix
PostPosted: Tue Aug 23, 2016 10:24 am 
The character tools was written in Java 6. I never tested on any other version.


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3467
Location: Austin, Tx
 Post subject: Re: chartool - nullPointer error - a partial fix
PostPosted: Tue Aug 23, 2016 12:04 pm 
It would be great if Jay or a volunteer would port CharTool over to the GitHub repository and get it up to snuff with the latest version of Java.

/fingerscrossed

_________________
ImageImage ImageImageImageImage
MapTool/Savage Worlds Blog
Free SW/MT Modules
SW Framework for MT


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12064
Location: Tampa, FL
 Post subject: Re: chartool - nullPointer error - a partial fix
PostPosted: Tue Aug 23, 2016 9:32 pm 
BZ, I sent you an emailed reply to your code submission asking for the stacktrace. If you have one, can you send it along? I don't run CT myself, so I'm not familiar with it at all. (I could try bringing it up to snuff for Java 8, but that's time that can't be spent somewhere else.)

But I'm willing to at least look at it and see what the options are.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 6 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 0 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman