String too large to record: build error moving to 1.31.0Final

34 views
Skip to first unread message

Adrian Apthorp

unread,
Jan 28, 2023, 11:22:27 PM1/28/23
to Kogito development mailing list
Hi,

I'm assuming this is a bug introduced in 1.31, but just checking here if could be anything else.

I just tried moving from 1.30 to 1.31 and compiling and running in Quarkus dev. and get the following build error:

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.16.0.Final:build (default) on project kogito-piece: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.deployment.steps.MainClassBuildStep#build threw an exception: java.lang.RuntimeException: Failed to record call to method public void org.kie.kogito.addon.source.files.SourceFilesRecorder.addSourceFile(java.lang.String,org.kie.kogito.addon.source.files.SourceFile)
[ERROR]         at io.quarkus.deployment.recording.BytecodeRecorderImpl.writeBytecode(BytecodeRecorderImpl.java:518)
[ERROR]         at io.quarkus.deployment.steps.MainClassBuildStep.writeRecordedBytecode(MainClassBuildStep.java:479)
[ERROR]         at io.quarkus.deployment.steps.MainClassBuildStep.build(MainClassBuildStep.java:261)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[ERROR]         at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
[ERROR]         at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
[ERROR]         at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
[ERROR]         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
[ERROR]         at java.base/java.lang.Thread.run(Thread.java:829)
[ERROR]         at org.jboss.threads.JBossThread.run(JBossThread.java:501)
[ERROR] Caused by: java.lang.RuntimeException: java.lang.RuntimeException: String too large to record: <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_xmHMQErbEDuekYfwK10U2w" exporter="jBPM Process Modeler" exporterVersion="2.0" targetNamespace="http://www.omg.org/bpmn20">

Followed by the bpmn2 code.

The original bpmn2 file is about 500 lines but the output here is appx. 1500 lines, so presumably pre-processed.

I also tried 1.31 and got the same result. No issue with smaller bpmn2 files.

Francisco Javier Tirado Sarti

unread,
Jan 30, 2023, 9:28:44 AM1/30/23
to Kogito development mailing list
Hi,
As a workaround, try to remove this dependency from your pom.xml.

  <dependency>
            <groupId>org.kie.kogito</groupId>
            <artifactId>kogito-addons-quarkus-source-files</artifactId>
        </dependency>

Francisco Javier Tirado Sarti

unread,
Jan 30, 2023, 11:49:28 AM1/30/23
to Kogito development mailing list
Appart from the workaround, this is the JIRA describing the issue https://issues.redhat.com/browse/KOGITO-8559

Adrian Apthorp

unread,
Jan 31, 2023, 8:04:23 AM1/31/23
to kogito-de...@googlegroups.com, Francisco Javier Tirado Sarti
Thanks, this is fine except now the process console is giving me:

/ProcessInstances[0]/source) : FAILED: Get Process Instance source file with processId:...

which is the reason why I included the dependency...

Also, unrelated, but now I'm getting "Error: CORS Rejected - Invalid origin" when I have quarkus.http.cors=true in my dev environment. I'll dig a bit deeper on this one. I'm guessing something to do with change of quarkus version.
--
You received this message because you are subscribed to a topic in the Google Groups "Kogito development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kogito-development/q8_gTrVXQnc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/18e1f03e-bf0e-4a1a-8f79-88ea48238f82n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages