|
Rank: Newbie Groups: Member
Joined: 5/22/2019 Posts: 2
|
We're seeing the following null object reference when populating a PDF document from an ASP.net Core 3.1 (netcoreapp31) Web API running on Windows. This exception does not always occur, and it does not seem to be specific to the document that we are saving. Sometimes rebuilding / redeploying the application will get it to work again. I can reproduce it fairly easily by creating a framework independent (self-contained) deployment of the WebAPI.
Based on the fact that it occurs with multiple documents, we don't believe it to be related to the PDF file or the data that's being added to the forms.
Any thoughts or help would be appreciated.
Here's the exception:
Object reference not set to an instance of an object. at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsc() at EO.Internal.sqwt.kgsj() at EO.Pdf.PdfField.eniw() at EO.Pdf.PdfField.aqtg() at EO.Pdf.PdfField.eniw() at EO.Pdf.PdfField.aqtg() at EO.Pdf.PdfField.eniw() at EO.Pdf.PdfField.aqtg() at EO.Pdf.PdfField.eniw() at EO.Pdf.PdfField.aqtg() at EO.Pdf.PdfField.eniw() at EO.Pdf.PdfField.aqtg() at EO.Internal.sqwy.aqtg() at EO.Pdf.PdfDocument.lllv() at EO.Pdf.PdfDocument.Save(Stream stream)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Which version do you use? We will need your version number in order to decode the stack trace. Most likely we will need a repro in order to get to the bottom of the issue because this appears have to do with specific field values you are trying to set. So if you can isolate it into a test project please send it to us. See here for more details: https://www.essentialobjects.com/forum/test_project.aspxThanks
|
|
Rank: Newbie Groups: Member
Joined: 5/22/2019 Posts: 2
|
Hello,
The version is 20.1.45 via NuGet running in .net Core 3.1 on Windows x64. While we can reproduce the issue by deploying the WebAPI as self-contained, the issue will also sometimes occur using a framework-dependent deployment. We have not been able to reliably reproduce it other than that. It occurs with several PDF files, so we suspect that the problem is not the PDF itself, especially because it will start to work again with the same PDF.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Please try to log the PDF file name when this error occurs. This appears to be caused by some contents in your existing PDF file that our code could not parse correctly. However because we only parse data related to a field when it has been changed, so it is possible that the same file will cause problems sometimes (when the problematic field has been changed) but not others (when it has not been changed). So you may want to log down which field you were trying to change as well. Once you identify that, you can send those information as long as the file in question to us and we will debug into the code to find out the root cause. See here for how to send test files to us: https://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|