Issues

Select view

Select search mode

 
27 of 27

application jdbc regression: Given version [latest] is invalid,

Fixed

Description

seeing this problem running the lucee-testlab benchmarks locally, doesn’t happen on github actions

exception.log

[java] [script] " [java] [script] "ERROR","pool-10-thread-1","10/21/2024","10:51:22","", "org.osgi.framework.BundleException:The OSGi Bundle with name [com.mysql.cj] is not available locally [ (d:\work\script-runner\temp\lucee\lucee-server\bundles)] or from the update provider [ (https://update.lucee.org)].;lucee.runtime.exp.NativeException: org.osgi.framework.BundleException:The OSGi Bundle with name [com.mysql.cj] is not available locally [ (d:\work\script-runner\temp\lucee\lucee-server\bundles)] or from the update provider [ (https://update.lucee.org)]. [java] [script] at lucee.commons.lang.ExceptionUtil.toIOException(ExceptionUtil.java:215) [java] [script] at lucee.runtime.db.DatasourceConnectionFactory.create(DatasourceConnectionFactory.java:64) [java] [script] at lucee.runtime.db.DatasourceConnectionFactory.create(DatasourceConnectionFactory.java:21) [java] [script]

application.log

"ERROR","pool-3-thread-14","10/21/2024","11:06:06","OSGi","Given version [latest] is invalid, a valid version is following this pattern <major-number>.<minor-number>.<micro-number>[.<qualifier>];org.osgi.framework.BundleException: Given version [latest] is invalid, a valid version is following this pattern <major-number>.<minor-number>.<micro-number>[.<qualifier>] at lucee.runtime.osgi.OSGiUtil.toVersion(OSGiUtil.java:296) at lucee.runtime.osgi.OSGiUtil$BundleDefinition.setVersion(OSGiUtil.java:2165) at lucee.runtime.osgi.OSGiUtil$BundleDefinition.<init>(OSGiUtil.java:2078) at lucee.runtime.osgi.OSGiUtil.downloadBundle(OSGiUtil.java:858) at lucee.runtime.osgi.OSGiUtil._loadBundle(OSGiUtil.java:765) at lucee.runtime.osgi.OSGiUtil.loadBundle(OSGiUtil.java:680) at lucee.runtime.osgi.OSGiUtil$BundleDefinition.getBundle(OSGiUtil.java:2110) at lucee.commons.lang.ClassUtil.loadClassByBundle(ClassUtil.java:179)

using the following with this.datasources

mysql: { class: 'com.mysql.cj.jdbc.Driver' , bundleName: 'com.mysql.cj' , connectionString: 'jdbc:mysql://127.0.0.1:3306/lucee?useSSL=false' , username: "lucee" , password: "lucee" }

setting the bundleVersion to “9.0.0” works

Environment

None

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 21 October 2024 at 09:56
Updated 22 October 2024 at 12:06
Resolved 21 October 2024 at 15:09

Activity

Show:

Zac Spitzer21 October 2024 at 15:09

works for me, closing

Michael Offner21 October 2024 at 12:02

following breaks exactly as the exception above

<cfscript> BundleProvider=createObject("java","lucee.runtime.config.s3.BundleProvider"); BundleDefinition=createObject("java","lucee.runtime.osgi.OSGiUtil$BundleDefinition"); bd=BundleDefinition.init("com.mysql.cj”","latest"); dump(BundleProvider.getInstance().getBundleAsURL(bd, true)); </cfscript>

but it also breaks when i do null instead

<cfscript> BundleProvider=createObject("java","lucee.runtime.config.s3.BundleProvider"); BundleDefinition=createObject("java","lucee.runtime.osgi.OSGiUtil$BundleDefinition"); bd=BundleDefinition.init("com.mysql.cj”",nullValue()); dump(BundleProvider.getInstance().getBundleAsURL(bd, true)); </cfscript>

Flag notifications