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

send-message in 1.11.4 results in StackOverflowError at java.io.UnixFileSystem.getBooleanAttributes0 (UnixFileSystem.java:-2) #70

Open
spacegangster opened this issue Dec 14, 2015 · 6 comments

Comments

@spacegangster
Copy link

Hello.
Trying to use Postal on my Ubuntu 14.04. Version 1.11.4 throws the Exception. Version 1.11.3 works fine.
REPL pieces.

1.11.4

app.util.mail=> (send-message {:from "[email protected]"
           #_=>                :to "[email protected]"
           #_=>                :subject "lol"
           #_=>                :body "<h1>KEKE</h1>"})

StackOverflowError   java.io.UnixFileSystem.getBooleanAttributes0 (UnixFileSystem.java:-2)
app.util.mail=> *e
#error {
 :cause nil
 :via
 [{:type java.lang.StackOverflowError
   :message nil
   :at [java.io.UnixFileSystem getBooleanAttributes0 "UnixFileSystem.java" -2]}]
 :trace
 [[java.io.UnixFileSystem getBooleanAttributes0 "UnixFileSystem.java" -2]
  [java.io.UnixFileSystem getBooleanAttributes "UnixFileSystem.java" 242]
  [java.io.File isFile "File.java" 882]
  [postal.sendmail$find_sendmail$fn__31529 invoke "sendmail.clj" 61]
  [clojure.core$filter$fn__4580 invoke "core.clj" 2686]
  [clojure.lang.LazySeq sval "LazySeq.java" 40]
  [clojure.lang.LazySeq seq "LazySeq.java" 49]
  [clojure.lang.LazySeq first "LazySeq.java" 71]
  [clojure.lang.RT first "RT.java" 653]
  [clojure.core$first__4110 invoke "core.clj" 55]
  [postal.sendmail$find_sendmail invoke "sendmail.clj" 61]
  [postal.sendmail$sendmail_send invoke "sendmail.clj" 68]
  ... 500+ identical lines ...
  [postal.sendmail$sendmail_send invoke "sendmail.clj" 68]]}

1.11.3

app.util.mail=> (send-message {:from "[email protected]"
           #_=>                :to "[email protected]"
           #_=>                :subject "lol"
           #_=>                :body "<h1>KEKE</h1>"})
{:code 0, :error :SUCCESS, :message "message sent"}
app.util.mail=>

My system:
OS: Ubuntu 14.04
Java: java version "1.8.0_60" (HotSpot)
Using postfix to send mail.

Workaround: currently I just switched back to 1.11.3, which works fine.

I can provide more info if needed.

@Gonzih
Copy link

Gonzih commented Feb 22, 2016

Same issue here. Downgrade also worked for me.

@drewr
Copy link
Owner

drewr commented Feb 22, 2016

So sorry I haven't gotten to this! Happy to get PRs. I'll add you as a collaborator.

@Gonzih
Copy link

Gonzih commented Feb 22, 2016

What are revisions for 0.11.3 and 0.11.4 releases? I don't see tags related to them.

I briefly looked at the issue and I'm not sure why is this happening.

@Gonzih
Copy link

Gonzih commented Feb 22, 2016

I tested current master on my server that has this issue and in repl everything worked fine. I even received email from the server.

@drewr
Copy link
Owner

drewr commented May 24, 2016

I'm not sure what happened to the 1.11 branch. Started a 2.0 branch off of master and released 2.0.0 with the newer lein release functionality.

@Gonzih
Copy link

Gonzih commented May 24, 2016

Seems to be fixed in 2.0.0.

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

3 participants