FamilySearch / gedcom5-conversion

Utilities for GEDCOM 5.5 to GEDCOM X Conversion
Other
32 stars 22 forks source link

Crash on Conversion #8

Closed casualgecko closed 7 years ago

casualgecko commented 11 years ago

Running Java 7 Update 9 on Windows 7

Pulled gedcom5-conversion-0.2.0-SNAPSHOT-full.jar

When converting my GEDCOM pulled from ancestry I get the following error:

Exception in thread "main" java.lang.NullPointerException at org.gedcomx.conversion.gedcom.dq55.SubmitterMapper.toContributor(Subm itterMapper.java:34) at org.gedcomx.conversion.gedcom.dq55.GedcomMapper.toGedcomx(GedcomMappe r.java:43) at org.gedcomx.tools.Gedcom2Gedcomx.convert55File(Gedcom2Gedcomx.java:20 6) at org.gedcomx.tools.Gedcom2Gedcomx.doMain(Gedcom2Gedcomx.java:159) at org.gedcomx.tools.Gedcom2Gedcomx.main(Gedcom2Gedcomx.java:216)

bdefore commented 9 years ago

I had this issue too. Apparently the submitter is a required field for some silly reason. It worked for me after adding:

1 SUBM Foo

right above the entry for GEDC

stoicflame commented 9 years ago

Weird. Thanks for the tip.

bipvanwinkle commented 7 years ago

I just had this occur to me as well. I'll try your fix @bdefore

bipvanwinkle commented 7 years ago

@bdefore yeah, adding a Submitter solved this issue. Is this a bug with the converter?

bdefore commented 7 years ago

@Bipsy i'd say it is a bug if a submitter is not a required field. i had a look through the GEDCOM 5.5 specifications, but unless i'm missing something it does not say that it is. see http://www.gedcomx.org/GEDCOM-5.5.1.pdf page 28 ... perhaps @casualgecko could retitle this?

bdefore commented 7 years ago

and if required, a helpful error message is much preferable to a null pointer exception

bdefore commented 7 years ago

13 may be a duplicate of this, and based on the conversation there this may be fixed with 1.4.0

stoicflame commented 7 years ago

I'm pretty sure I fixed this in the latest release, version 1.4.0.

Is that not correct?

bipvanwinkle commented 7 years ago

@stoicflame I downloaded the jar file yesterday and am still getting this error.

bdefore commented 7 years ago

@stoicflame i no longer have steps i can reproduce to verify

stoicflame commented 7 years ago

@Bipsy, there's no way you're getting the same stack trace if you've downloaded the latest jar, version 1.4.0. There's no executable code at SubmitterMapper.java:34, see:

https://github.com/FamilySearch/gedcom5-conversion/blob/master/src/main/java/org/gedcomx/conversion/gedcom/dq55/SubmitterMapper.java#L34

So you're either getting a different error or you didn't get the latest code.

bipvanwinkle commented 7 years ago

@stoicflame I guess I may have assumed it was the same stack trace because the adding a submitter fixes my problem, but here is the stack trace:

Exception in thread "main" java.lang.NullPointerException
    at org.gedcomx.conversion.gedcom.dq55.SubmitterMapper.toContributor(SubmitterMapper.java:34)
    at org.gedcomx.conversion.gedcom.dq55.GedcomMapper.toGedcomx(GedcomMapper.java:42)
    at org.gedcomx.conversion.gedcom.dq55.GedcomMapper.toGedcomx(GedcomMapper.java:33)
    at org.gedcomx.tools.Gedcom2Gedcomx.convert55File(Gedcom2Gedcomx.java:202)
    at org.gedcomx.tools.Gedcom2Gedcomx.doMain(Gedcom2Gedcomx.java:156)
    at org.gedcomx.tools.Gedcom2Gedcomx.main(Gedcom2Gedcomx.java:222)

This is using the jar that I just downloaded a few minutes ago from the link in the README. https://repository-gedcom.forge.cloudbees.com/release/org/gedcomx/gedcom5-conversion/1.0.0.M1/gedcom5-conversion-1.0.0.M1-full.jar

stoicflame commented 7 years ago

Oh, that's just an out-of-date link in the README.

Try again.

bipvanwinkle commented 7 years ago

@stoicflame Thanks for updating the link and fixing the bug. Works fine now.