luminus-framework / luminus-framework/luminus

+war profile: clojure.lang.ArityException: Wrong number of args (1) passed to: myapp.handler/app

Open
#280 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
626
Forks
122
PR merge metrics
No merged PRs in 30d

Description

I created a new app by using

`lein new luminus myapp +war`

and created a WAR file using

`lein uberwar`

After deployment in a Tomcat 9.0.43 instance you get a 500 Internal Server Error with this error message:

```
clojure.lang.ArityException: Wrong number of args (1) passed to: myapp.handler/app
clojure.lang.AFn.throwArity(AFn.java:429)
clojure.lang.AFn.invoke(AFn.java:32)
clojure.lang.Var.invoke(Var.java:384)
myapp.listener$_contextInitialized$fn__11.invoke(listener.clj:1)
ring.util.servlet$make_blocking_service_method$fn__98.invoke(servlet.clj:113)
myapp.servlet$_service.invokeStatic(servlet.clj:1)
myapp.servlet$_service.invoke(servlet.clj:1)
myapp.servlet.service(Unknown Source)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with `lein new luminus myapp +war`, `lein uberwar`, and deployment to Tomcat 9.0.43. Start by reading the generated `listener.clj` and `servlet.clj` files and the stack trace; done means the deployed WAR handles a request without the reported ArityException.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.