"HTTP Status 400" error on app start link

1
0
-1

I'm trying to make a link from my application homepage to start my process:

/bonita/portal/resource/process/PracticePool/2.0/content/?id="+processDef[0].id

Where PracticePool version 2.0 is my pool. Also, my current process definition looks like:

../API/bpm/process?p=0&c=1&f=name=PracticePool

However, whenever I try to use the link in my portal application homepage, I get an "HTTP Status 400 - Bad Request" error - specifically:

Type: Exception Report

Message: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

Description: The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

Exception:
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:483)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:684)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.base/java.lang.Thread.run(Unknown Source)

Note: The full stack trace of the root cause is available in the server logs.

What exactly is causing this error?

Comments

Submitted by bastien.laurent... on Thu, 07/11/2019 - 10:19

Your 'processDef[0].id' is correct ? It's not 'null' or 'undefined' ?

Submitted by hietkampa on Thu, 07/11/2019 - 18:18

How do I verify that?

Submitted by bastien.laurent... on Fri, 07/12/2019 - 15:49

You can do that with your browser debug.
Or just add a text field like that : My processDef id = {{processDef[0].id}}

Submitted by hietkampa on Sat, 07/13/2019 - 01:18

Thank you... It does appear to be null.

No answers yet.
Notifications