Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollateX crashes with «Unexpected error null» #22

Open
gioele opened this issue Jul 28, 2015 · 4 comments
Open

CollateX crashes with «Unexpected error null» #22

gioele opened this issue Jul 28, 2015 · 4 comments

Comments

@gioele
Copy link
Contributor

gioele commented Jul 28, 2015

CollateX will crash with the following error

Unexpected error
null

when run with the following JSON input file:

{
    "witnesses" : [
        {
            "id" : "base",
            "tokens" : [
                { "t" : "id " },
                { "t" : "est " },
                { "t" : "sexaginta ", "n": "[num]" },
                { "t" : "solidos " }
            ]
        },
        {
            "id" : "w1",
            "tokens" : [
                { "t" : "solidos " },
                { "t" : "triplo " }
            ]
        },
        {
            "id" : "w2",
            "tokens" : [
                { "t" : "nostrum " },
                { "t" : "cogatur " },
                { "t" : "id " },
                { "t" : "xl ", "n": "[num]" },
                { "t" : "solidos " },
                { "t" : "in " }
            ]
        },
        {
            "id" : "w3",
            "tokens" : [
                { "t" : "nostrum " },
                { "t" : "in " },
                { "t" : "triplo " },
                { "t" : "conpon " },
                { "t" : ". " },
                { "t" : ". " },
                { "t" : "id " },
                { "t" : "lx ", "n": "[num]" }
            ]
        },
        {
            "id" : "w4",
            "tokens" : [
                { "t" : "est " },
                { "t" : ". " },
                { "t" : ". " },
                { "t" : ". " },
                { "t" : "solidos " },
                { "t" : "in " }
            ]
        }
    ]
}

The error started appearing after we normalized the token sexaginta to [num].

Please note that this JSON file is a reduced minimal test case, the original was much longer and very different.

@tla
Copy link
Member

tla commented Nov 10, 2021

Hi all - it seems this problem is still around. I tried to introduce CollateX in my seminar on Monday and three of the four students (both Mac and Windows) had this error when trying to collate plaintext files... Is there any idea meanwhile what is causing it?

@rhdekker
Copy link
Member

Hi Tara, I was never able to find the origin of this bug. The mistake is not in the location where the error is thrown, but happens much earlier. I suspect it happens in the processing of the input. The earliest I could take a look at it is in December.

There is a workaround that you can use in the meantime and that is to switch to the Needlemann Wunsch algorithm by setting the option "algorithm" to "needleman-wunsch". That algorithm has no transposition detection however, which may not care about in all use cases.

@tla
Copy link
Member

tla commented Nov 16, 2021 via email

@skurzinz
Copy link

Just confirming: The command line interface demands an earlier Java version. I got it to work using Java 8…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants