Build a fast, scalable converter to turn business documents into structured data using Quarkus and Docling — perfect for RAG pipelines, search indexing, and LLM prep.
I’ll take a look later today. The api changed quite a bit and I’m not always pinning versions in the examples. I’ll ping when I find something. I have an update in my drafts folder since a while now too. Thanks for your patience.
Hi Markus, thanks for the great blog post! When I try to convert any document to JSON, I consistently get this error:
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (956461376471083675) out of range of int (-2147483648 - 2147483647)
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 260] (through reference chain: io.quarkiverse.docling.runtime.client.model.ConvertDocumentResponse["document"]->io.quarkiverse.docling.runtime.client.model.DocumentResponse["json_content"]->io.quarkiverse.docling.runtime.client.model.DoclingDocument["origin"]->io.quarkiverse.docling.runtime.client.model.DocumentOrigin["binary_hash"])
DocumentOrigin.binaryHash is an Integer but the hash doesn't fit into Integer. Can we change the type of binaryHash to Long?
converting documents to JSON and other formats using the docling-ui (via quarkus dev-ui) works as expected.
Hey! Thanks for the feedback! Would you mind filing an issue here https://github.com/quarkiverse/quarkus-docling
done - https://github.com/quarkiverse/quarkus-docling/issues/37
I tried with jdk24 and get the following error.
curl -F "file=@sample.pdf" http://localhost:8080/convert
500 - Internal Server Error
---------------------------
Details:
Error id b3c5c84f-3826-487b-9a3e-08dd219d0910-3, org.jboss.resteasy.reactive.ClientWebApplicationException: Received: 'Not Found, status code 404' when invoking REST Client method: 'io.quarkiverse.docling.runtime.client.api.DoclingApi#processUrlV1alphaConvertSourcePost'
Stack:
org.jboss.resteasy.reactive.ClientWebApplicationException: Received: 'Not Found, status code 404' when invoking REST Client method: 'io.quarkiverse.docling.runtime.client.api.DoclingApi#processUrlV1alphaConvertSourcePost'
at org.jboss.resteasy.reactive.client.impl.RestClientRequestContext.unwrapException(RestClientRequestContext.java:205)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.handleException(AbstractResteasyReactiveContext.java:329)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:175)
at io.smallrye.context.impl.wrappers.SlowContextualRunnable.run(SlowContextualRunnable.java:19)
at org.jboss.resteasy.reactive.client.handlers.ClientSwitchToRequestContextRestHandler$1$1.handle(ClientSwitchToRequestContextRestHandler.java:38)
at org.jboss.resteasy.reactive.client.handlers.ClientSwitchToRequestContextRestHandler$1$1.handle(ClientSwitchToRequestContextRestHandler.java:35)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:270)
at io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:252)
at io.vertx.core.impl.ContextInternal.lambda$runOnContext$0(ContextInternal.java:50)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:1447)
Caused by: jakarta.ws.rs.WebApplicationException: Not Found, status code 404
at io.quarkus.rest.client.reactive.runtime.DefaultMicroprofileRestClientExceptionMapper.toThrowable(DefaultMicroprofileRestClientExceptionMapper.java:19)
at io.quarkus.rest.client.reactive.runtime.MicroProfileRestClientResponseFilter.filter(MicroProfileRestClientResponseFilter.java:54)
at org.jboss.resteasy.reactive.client.handlers.ClientResponseFilterRestHandler.handle(ClientResponseFilterRestHandler.java:21)
at org.jboss.resteasy.reactive.client.handlers.ClientResponseFilterRestHandler.handle(ClientResponseFilterRestHandler.java:10)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.invokeHandler(AbstractResteasyReactiveContext.java:231)
at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147)
... 14 more
I am seeing the same error (Caused by: jakarta.ws.rs.WebApplicationException: Not Found, status code 404) as Ravi, on Ubuntu Linux.
I do have Podman running though. At startup of Quarkus it showed http://localhost:41409/health starup OK
And the following command
'podman ps --format "table {{.ID}} {{.Names}} {{.Ports}}"'
shows this:
CONTAINER ID NAMES PORTS
4fabc9423ce8 sad_hermann 0.0.0.0:41409->5001/tcp
I did wait a bit (several mins) for the container to start also.
Thanks in advance for any suggestions.
I’ll take a look later today. The api changed quite a bit and I’m not always pinning versions in the examples. I’ll ping when I find something. I have an update in my drafts folder since a while now too. Thanks for your patience.
I have updated the example with latest version. Source is here:
https://github.com/myfear/ejq_substack_articles/tree/main/quarkus-docling-converter
Let me know if this solves it.
Hi. I bet the Docling container isn't running. Wait a little more and check with Podman ps if it's up.
Let me setup podman, is there an option for docker...
You can use both.