You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "LMezler (via GitHub)" <gi...@apache.org> on 2026/06/26 07:57:17 UTC
[I] [Bug]: Logging/loading file in Janino Plugin causes problems when used in booJar environments (hop)
LMezler opened a new issue, #7350:
URL: https://github.com/apache/hop/issues/7350
### Apache Hop version?
2.18.1
### Java version?
25
### Operating system
Windows
### What happened?
We integrated a hop pipeline runner and some transformations in a spring boot project. We cannot run a dedicated Hop Instnace on the machines where these applications are started and are not allowed to use a docker environment, so we need to run the Project using the created boot-jar.
This concept runs fine and all out pipelines are executed as we want them to. But when usoing the Janino Plugin we get an Exception-log (this causes no trouble at al when the pipliene runs afterwards btw.). Ths is cause by The class JaninoCheckerUtil, especially by:
```java
public class JaninoCheckerUtil {
List<String> matches = new ArrayList<>();
public JaninoCheckerUtil() {
String path = "";
try {
path = getJarPath() + File.separator + "codeExclusions.xml";
Document document = XmlHandler.loadXmlFile(path);
Node exclusionsNode = XmlHandler.getSubNode(document, "exclusions");
List<Node> exclusionNodes = XmlHandler.getNodes(exclusionsNode, "exclusion");
for (Node exclusionNode : exclusionNodes) {
matches.add(exclusionNode.getTextContent());
}
} catch (Exception e) {
LogChannel.GENERAL.logError("Unable to load exclusions from: '" + path + "'", e);
}
}
....
}
```
The boot jar contains the transform as included jar. So the path to the exclusion-file is not a real file path. This just is logged and the plugin continues as wanted.
In our case this will cause trouble with our customer (a exception log on error without effect is not sutable). So we take this as bug. Anyway -we need an alternative to set the exclusions or a way to supress the error log.
Here is an example (I skipped the call stack) This is independent of the operating system. This is one from Windows from my IDE - We also have linux systems.
```
2026/06/26 09:18:01 - General - org.apache.hop.core.exception.HopXmlException:
2026/06/26 09:18:01 - General - Unable to read file [file:///C:/intellij/zdh-replication-client/app/build/libs/nested:/C:/intellij/zdh-replication-client/app/build/libs/app-develop-SNAPSHOT.jar/!BOOT-INF/lib/codeExclusions.xml]
2026/06/26 09:18:01 - General - Could not read from "file:///C:/intellij/zdh-replication-client/app/build/libs/nested:/C:/intellij/zdh-replication-client/app/build/libs/app-develop-SNAPSHOT.jar/!BOOT-INF/lib/codeExclusions.xml" because it is not a file.
2026/06/26 09:18:01 - General -
```
### Issue Priority
Priority: 2
### Issue Component
Component: Transforms
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: Logging/loading file in Janino Plugin causes problems when used in booJar environments (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #7350: [Bug]: Logging/loading file in Janino Plugin causes problems when used in booJar environments
URL: https://github.com/apache/hop/issues/7350
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: Logging/loading file in Janino Plugin causes problems when used in booJar environments (hop)
Posted by "leehaut (via GitHub)" <gi...@apache.org>.
leehaut commented on issue #7350:
URL: https://github.com/apache/hop/issues/7350#issuecomment-4936256928
.take-issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: Logging/loading file in Janino Plugin causes problems when used in booJar environments (hop)
Posted by "leehaut (via GitHub)" <gi...@apache.org>.
leehaut commented on issue #7350:
URL: https://github.com/apache/hop/issues/7350#issuecomment-4936247718
Reproduced with `Spring Boot + IntelliJ IDEA (Maven deps, 2.19.0-SNAPSHOT)`: running `user-defined-java-class-calculate-date-of-easter.hpl` triggers the same `Unable to load exclusions from .../codeExclusions.xml` ERROR on startup. Pipeline still completes successfully — only the log is wrong.
I'll work on a fix.
.take-issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org