red6 / pdfcompare

A simple Java library to compare two PDF files
Apache License 2.0
220 stars 66 forks source link

Problem with configuration seting #92

Closed Tomasz190 closed 3 years ago

Tomasz190 commented 3 years ago

Hello, I got an error message: merge of env variables, system properties: No configuration setting found for key 'parallelProcessing'. When I tried to create environmental variable: parallelProcessing=true there is another error about STRING and BOOLEAN types incompatibility. How can I resolve this ?

Regards, Tomasz

finsterwalder commented 3 years ago

How exactly are you using and configuring PdfCompare? Defaults are configured in the library file reference.conf. It seams you are missing that or the file is not processed. You can overwrite settings via application.conf (see Readme). When you specify a replacement config file somehow via lightbend settings, this might disable the reference.conf file. May that be a problem? I don't know, why the true-String is not properly converted right now. Would have to try that myself later.

Tomasz190 commented 3 years ago

Thank you very much for your quick feedback. I am fine with default settings. The only place I can find reference.conf is inside the jar (pdfcompare-1.1.58.jar) . Is this correct ?

wt., 2 mar 2021 o 16:41 Malte Finsterwalder notifications@github.com napisał(a):

How exactly are you using and configuring PdfCompare? Defaults are configured in the library file reference.conf. It seams you are missing that or the file is not processed. You can overwrite settings via application.conf (see Readme). When you specify a replacement config file somehow via lightbend settings, this might disable the reference.conf file. May that be a problem? I don't know, why the true-String is not properly converted right now. Would have to try that myself later.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/red6/pdfcompare/issues/92#issuecomment-789001185, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBYVXVXUFMP34J4NS4HZTTTBUBLFANCNFSM4YPFND6A .

-- T.Siedlaczek

finsterwalder commented 3 years ago

That's correct. The lightbend library tries to find "reference.conf" on the classpath and should find it in the jar. reference.conf includes a setting: parallelProcessing=true So I don't quite understand, why your app is not finding this setting. And also when I set an environment variable, I don't get the string to bool error.

Tomasz190 commented 3 years ago

Thank you, so it looks like I'm doing something wrong though.

wt., 2 mar 2021 o 22:32 Malte Finsterwalder notifications@github.com napisał(a):

That's correct. The lightbend library tries to find "reference.conf" on the classpath and should find it in the jar. reference.conf includes a setting: parallelProcessing=true So I don't quite understand, why your app is not finding this setting. And also when I set an environment variable, I don't get the string to bool error.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/red6/pdfcompare/issues/92#issuecomment-789230721, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATBYVXTNKYFQU5M5DX2LQ7DTBVKOBANCNFSM4YPFND6A .

-- T.Siedlaczek

finsterwalder commented 3 years ago

Maybe. If you could tell me more about how exactly you use PdfCompare, I might help. Maybe send a striped down example project to my Github Email?

YashUoM commented 3 years ago

I think you're using addParallelProcessing(true) instead of setParallelProcessing(true). I had the same issue with addEqualPagesToResult. Then I used setAddEqualPagesToResult and that worked.

finsterwalder commented 3 years ago

Since there was no response, I will close this issue now. Please reopen when your problem is not solved.