Discussion about this post

User's avatar
Mark's avatar

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.

Expand full comment
Ravi Mangalagiri's avatar

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

Expand full comment
5 more comments...

No posts