Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

error during validation of io.konik.zugferd.Invoice@142ce1f #85

Closed
Frogrek opened this issue Nov 4, 2019 · 4 comments
Closed

error during validation of io.konik.zugferd.Invoice@142ce1f #85

Frogrek opened this issue Nov 4, 2019 · 4 comments

Comments

@Frogrek
Copy link

Frogrek commented Nov 4, 2019

We try to implement a ZUGFErD interface in our software on a Windows/Dotnet/C# platform on the based on your zugferd.dll. In our test project derived from your master example, it works pretty good.
But in our main project (same platform) we get during the validation phase always the following exception:
error during validation of io.konik.zugferd.Invoice@142ce1f

with the inner exception:
interface javax.validation.constraints.NotNull is not visible from class loader

We googled but found none solution for this problem. Here is the sample of our validation method:

   public List<String> Validate(Invoice invoice)
    {
        List<String> err = new List<String>();
        InvoiceValidator Validator = new InvoiceValidator();

        try
        {
            Set violations = Validator.validate(invoice);

            if (violations.size() > 0)
            {
                err.Add("....);
                foreach (ConstraintViolation violation in violations.toArray())
                {
                    err.Add(violation.getMessage() + " @ " + violation.getPropertyPath() + "\n");
                }
            }
        }
        catch (Exception ex)
        {
            err.Add(ex.Message);
        }
        return (err);
    }
@Vad1mo
Copy link
Contributor

Vad1mo commented Nov 4, 2019

can you add:

ikvm.runtime.Startup.addBootClassPathAssembly(typeof(javax.validation.constraints.NotNull).Assembly)

@Frogrek
Copy link
Author

Frogrek commented Nov 5, 2019 via email

@Vad1mo
Copy link
Contributor

Vad1mo commented Nov 5, 2019

@Frogrek
Copy link
Author

Frogrek commented Nov 5, 2019 via email

@Vad1mo Vad1mo closed this as completed Nov 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants