Smooks, spring, and docker issue

128 views
Skip to first unread message

Sean Muir

unread,
May 28, 2024, 5:39:43 PM5/28/24
to Smooks Users
I am using 2.0.0-RC4 within a spring boot app 3.0.0

Everything works as expected as stand alone java but running with docker 

FROM openjdk:17

MAINTAINER baeldung.com

COPY target/org.mdmi.processor.x12.jar org.mdmi.processor.x12.jar

ENTRYPOINT ["java","-jar","/org.mdmi.processor.x12.jar"]

x12-mdmi  | 2024-05-28T21:14:21.183Z ERROR 1 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.smooks.api.SmooksConfigException: Error invoking @PostConstruct method 'postConstruct' on class 'org.smooks.cartridges.edi.parser.EdiParser'.] with root cause

x12-mdmi  | 

x12-mdmi  | org.apache.daffodil.lib.exceptions.Abort: Invariant broken: parts.length.==(2)


I assume this is a java version/docker version/spring combanation issue - is there a working docker demo using the  2.0.0-RC4  ?

Claude

unread,
May 30, 2024, 5:28:20 AM5/30/24
to Smooks Users
It's possible that you might be describing the issue identified in a different thread. Try downgrading to Java 11 perhaps? I think we are waiting for Daffodil 3.8 to be released for this.

Claude

Claude Mamo

unread,
May 30, 2024, 5:38:59 AM5/30/24
to smook...@googlegroups.com
I assume this is a java version/docker version/spring combanation issue - is there a working docker demo using the  2.0.0-RC4  ?

Missed this question. Not at the moment. I'm remembering now that Spring Boot 3 requires Java 17. How are you running it outside of Docker?

Claude

--
You received this message because you are subscribed to the Google Groups "Smooks Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smooks-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smooks-user/f5fd4933-c317-4a4a-9a20-2ea409986274n%40googlegroups.com.

Sean Muir

unread,
May 30, 2024, 8:29:33 AM5/30/24
to Smooks Users
Sorry for a bit of the confusion on my part - I was able to run it outside docker using a previous version of Spring 2.4.13 - do not think I tried 3.3.- outside of docker
I had ran into some local build issues with Javax and Jakarta but was able to get the dependencies in order
The project pulls in a lot of dependencies (unfortunately) 

We tried with a 3.3.0 spring boot simple project - had some parsing issues on the XSD

Do you want me to post our simple app project ?
thanks Sean

Claude

unread,
May 30, 2024, 12:14:44 PM5/30/24
to Smooks Users
OK, trying running it with Spring 3 outside of Docker before posting the project.

Reshma Kumari

unread,
Jun 4, 2024, 12:06:52 PM6/4/24
to smook...@googlegroups.com
The issue is because of the daffodil -3.6.0


I also faced the same issue when i migrated to smooks RC3.

For quick fix, I have generated daffodil library and placed the fix that is given in the ticket. 

Also raised ticket to ask if they are planning for any hotfix. But seems like there will be no hotfix. We have to wait for daffodil to give the release with the fix and then smooks to upgrade to that release. 

You can fix it by producing your own version of daffodil library and referring that in your project.

I have also opened the ticket in smooks forum

Reply all
Reply to author
Forward
0 new messages