Idempiere 12 Error

330 views
Skip to first unread message

gripper8...@gmail.com

unread,
Dec 23, 2024, 7:51:50 AM12/23/24
to iDempiere
Hi Community,

i am trying to run idempiere 12 on Win 11. 
Always getting the following error (see full error on the bottom)
"java.nio.file.InvalidPathException: Illegal char <:> at index 4:"
Interesting is that in Eclipse IDE there are no errors and it runs without problems, so it is pretty difficult to debug it.
Idempiere 11 works without errors. Error does not depend on Java version (tried 17 and 23), database (tried oracle and postgresql) or drive letter (tried C: and J:). I also downloaded precompiled version and built myself with maven, same error.

Error:
11:36:09.656-----------> WebAppContext.doStart: Failed startup of context oeje8w.WebAppContext@4c07f730{/ADInterface,/ADInterface,null,false}{file:/J:/idempiere_server12/plugins/org.idempiere.webservices_12.0.0.202412222101.jar} [33]
java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:/J:/idempiere_server12/plugins/org.idempiere.webservices_12.0.0.202412222101.jar
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231)
at java.base/java.nio.file.Path.of(Path.java:148)
at org.eclipse.jetty.ee8.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:200)
at org.eclipse.jetty.ee8.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:55)
at org.eclipse.jetty.ee8.webapp.Configurations.preConfigure(Configurations.java:407)
at org.eclipse.jetty.ee8.webapp.WebAppContext.preConfigure(WebAppContext.java:470)
at org.eclipse.jetty.ee8.webapp.WebAppContext.doStart(WebAppContext.java:500)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491)
at org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:732)
at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1244)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:732)
at org.eclipse.jetty.ee8.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2244)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:40)

Best regards,
Robert Green

gripper8...@gmail.com

unread,
Dec 25, 2024, 1:35:15 PM12/25/24
to iDempiere
25-12-2024_19-25-42.jpg

Could debug using Remote Java Application, somehow path comes with "file:" part, which leads to error.
While running in Eclipse IDE, bundles come in Folders, not in .jar files, so this logic part after  if condition in WebInfConfiguration.unpack(WebAppContext) line: 196 get skipped.

gripper8...@gmail.com

unread,
Dec 26, 2024, 4:27:05 AM12/26/24
to iDempiere
Looking further for this problem fix in 
org.eclipse.jetty.ee8.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:200)
i checked github page for org.eclipse.jetty.ee10.webapp.WebInfConfiguration
It gets Path in another way:
jettyEE10Github.jpg
so getting it in idempiere 12 this way should give us correct Path with "\\" and without "file:" part
Jetty8.jpg
Other question is how to use a new code part instead of old one, overload a method or use ee10 instead. Please share your thoughts.

Best regards,
Robert Green

Hiep Lq

unread,
Dec 26, 2024, 5:19:11 AM12/26/24
to idem...@googlegroups.com
This may be a Jetty issue, and updating Jetty on iDempiere should resolve it

but need to verify it first

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/727b884d-32cc-422c-8ff3-548418815d74n%40googlegroups.com.

This signature auto append

zuhri utama

unread,
Dec 30, 2024, 2:13:48 AM12/30/24
to iDempiere
Hi,

is there any update for this issue. I run mvn verify and setup idempiere-server using generated products but got same error.

Regards,
A. Zuhri Utama

zuhri utama

unread,
Dec 30, 2024, 3:19:23 AM12/30/24
to iDempiere
I tested on windows 11 and got error but when i tried install on wsl ubuntu 24.04, i can access idempiere 12. i think the problem with the windows.

gripper8...@gmail.com

unread,
Dec 30, 2024, 3:29:31 AM12/30/24
to iDempiere
As far as i see this error is fixed in idempiere 13 DEV build. You can download current daily dev build and run mvn verify. Afterwadrs, org.eclipse.jetty.*_12.0.11.jar files, that are generated are already fixed. You can use them in Idempiere 12 (all of them or org.eclipse.jetty.ee8.webapp_12.0.11.jar only, which triggers an error).

BR,
Robert Green
Message has been deleted
Message has been deleted

gripper8...@gmail.com

unread,
Dec 30, 2024, 9:19:20 AM12/30/24
to iDempiere
attached is a .class file, which has to be replaced in org.eclipse.jetty.ee8.webapp_12.0.11.jar package
WebInfConfiguration.class

Carlos Antonio Ruiz Gomez

unread,
Dec 30, 2024, 10:24:59 AM12/30/24
to idem...@googlegroups.com
This sounds very strange because at this moment idempiere 13 is basically equals to 12.

Was it broken before the release too?

You can test the latest idempiereServerDev12Daily.win64.win64.x86_64.zip at from Dec-21




On 12/30/24 09:29, gripper8...@gmail.com wrote:
As far as i see this error is fixed in idempiere 13 DEV build. You can download current daily dev build and run mvn verify. Afterwadrs, org.eclipse.jetty.*_12.0.11.jar files, that are generated are already fixed. You can use them in Idempiere 12 (all of them or org.eclipse.jetty.ee8.webapp_12.0.11.jar only, which triggers an error).

BR,
Robert Green

On Monday, December 30, 2024 at 9:19:23 AM UTC+1 zuhri...@gmail.com wrote:
I tested on windows 11 and got error but when i tried install on wsl ubuntu 24.04, i can access idempiere 12. i think the problem with the windows.

On Monday, December 30, 2024 at 2:13:48 PM UTC+7 zuhri utama wrote:
Hi,

is there any update for this issue. I run mvn verify and setup idempiere-server using generated products but got same error.

Regards,
A. Zuhri Utama

On Thursday, December 26, 2024 at 5:19:11 PM UTC+7 hie...@hasuvimex.vn wrote:
This may be a Jetty issue, and updating Jetty on iDempiere should resolve it

but need to verify it first

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


On Thu, Dec 26, 2024 at 4:27 PM gripper8...@gmail.com <gripper8...@gmail.com> wrote:
Looking further for this problem fix in 
org.eclipse.jetty.ee8.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:200)
i checked github page for org.eclipse.jetty.ee10.webapp.WebInfConfiguration
It gets Path in another way:

so getting it in idempiere 12 this way should give us correct Path with "\\" and without "file:" part

--

gripper8...@gmail.com

unread,
Dec 30, 2024, 10:41:06 AM12/30/24
to iDempiere
Sorry for the confusion, it is still broken in Idempiere12 and 13. 

I fixed it for me, when i downloaded source code of jetty, changed the source code and compiled .jar files.
Then, when i pulled idempiere13 and build it with maven, it used previously built .jar files from .m2\repository folder.

As for me, this fix is pretty dirty, but it works.

Best regards,
Robert Green

Carlos Antonio Ruiz Gomez

unread,
Dec 30, 2024, 1:05:41 PM12/30/24
to idem...@googlegroups.com
What I was able to review:

We are running jetty 12.0.11

Checking the WebInfConfiguration I see there have been changes in the jetty project after this version, probably fixing the problem you noticed.

So, a possible solution is to upgrade jetty to 12.0.16, but that has a lot of dependencies and is a lot of work, Heng Sin do that periodically.

The last upgrade was done with IDEMPIERE-6088 on July.

Unfortunately this issue passed unnoticed all tests, I think mostly because very few people is using iDempiere server in windows.

Thanks for alerting the project about this issue.  I added a migration note.

Regards,

Carlos Ruiz

Heng Sin Low

unread,
Dec 30, 2024, 4:39:21 PM12/30/24
to idem...@googlegroups.com
Hi Robert,

Is that a change you extracted from a newer version of jetty ? If yes, which jetty version is that ?

Regards.
Low

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.

gripper8...@gmail.com

unread,
Dec 30, 2024, 5:23:59 PM12/30/24
to iDempiere
Hi Low,

i took did not take a .class file from a jetty .jar of a newer version.
I took a code part from the same version (12.0.11), but from another package (jetty-ee10-webapp-12.0.11.jar)
I have built a new jar, where i made changes in WebInfConfiguration.java

Left part: WebInfConfiguration.java from jetty-ee10-webapp-12.0.11.jar      << ----- >>       Right part: WebInfConfiguration.java from jetty-ee8-webapp-12.0.11.jar
ee8_vs_ee10.jpg

Best regards,
Robert

Heng Sin Low

unread,
Dec 30, 2024, 9:06:56 PM12/30/24
to idem...@googlegroups.com

Heng Sin Low

unread,
Dec 30, 2024, 9:10:09 PM12/30/24
to idem...@googlegroups.com
And that should be release 12.0.8 and above:

gripper8...@gmail.com

unread,
Dec 31, 2024, 4:02:50 AM12/31/24
to iDempiere
Correct me if i wrong, but that would mean transitioning from Java EE 8 to Jakarta EE 10, because we are already on release 12.0.11

BR,
Robert

Heng Sin Low

unread,
Dec 31, 2024, 6:45:07 AM12/31/24
to idem...@googlegroups.com
I Need to double check on that. Supposedly, that piece of code should be shared by Java EE 8 and 10.

gripper8...@gmail.com

unread,
Dec 31, 2024, 7:20:20 AM12/31/24
to iDempiere
Unfortunately EE10 does not share code with EE8 or EE9.
EE8 has no own code, it gets copied from EE9 while getting built.

Best regards,
Robert

Heng Sin Low

unread,
Dec 31, 2024, 8:33:12 AM12/31/24
to idem...@googlegroups.com
ok, you are right, it is sharing with ee9, not 10.

Another workaround we can try is to add "Eclipse-BundleShape: dir" to MANIFEST.MF for bundles that have this error (for e.g org.idempiere.webservices).

gripper8...@gmail.com

unread,
Dec 31, 2024, 9:21:53 AM12/31/24
to iDempiere
Following bundles have this error:
org.adempiere.server
org.adempiere.ui.zk
org.idempiere.webservices
org.idempiere.felix.webconsole

Heng Sin Low

unread,
Dec 31, 2024, 10:35:51 AM12/31/24
to idem...@googlegroups.com
Would  be great if you can help to test whether the workaround fixes it. 

gripper8...@gmail.com

unread,
Dec 31, 2024, 12:06:51 PM12/31/24
to iDempiere
The workaround fixed an Error.
As expected, bundles were built as Folders (dirs), not as jars.
The bug in logic part after if condition in  WebInfConfiguration.unpack(WebAppContext) line: 196 got skipped, no error occurs
Test_BundleShape_dir.jpg
Best regards and Happy new Year!
Robert Green
Reply all
Reply to author
Forward
0 new messages