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

IOFactory error when used in Uberjar #66

Open
jkutner opened this issue Aug 26, 2015 · 4 comments
Open

IOFactory error when used in Uberjar #66

jkutner opened this issue Aug 26, 2015 · 4 comments

Comments

@jkutner
Copy link

jkutner commented Aug 26, 2015

When postal is used in a uberjar, it fails trying to read the pom.properties file with this error:

java.lang.IllegalArgumentException: No implementation of method: :make-input-stream of protocol: #'clojure.java.io/IOFactory found for class: nil

Stack trace:
https://gist.github.com/kirillsalykin/011e5479d0f2b9c2a81d

WORKAROUND:
Add -Dpostal.version=1.11.3 to java process

Here is a reproducible example:
https://github.com/InspireNL/TeamHappiness

See stackoverflow for discussion:
http://stackoverflow.com/questions/32235680/sending-email-with-postal-from-heroku-fires-strange-exception/

@martinklepsch
Copy link

I also experienced this issue.

@martinklepsch
Copy link

@drewr any chance we can get a patch release if a PR is provided?

@drewr
Copy link
Owner

drewr commented Nov 5, 2015

Yes! PR welcome. The packaging is very old and needs to be redone. I use a version.txt file in resources/ in other projects which works with uberjars too. Will do it if you don't get to something like that first. Thanks!

@danielsz
Copy link

danielsz commented Nov 8, 2015

Experienced the same issue.

Dirty hack: (System/setProperty "postal.version" "1.11.3") at runtime.

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

No branches or pull requests

4 participants