org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties

Description

We see different forms of this, this happens when a extension get updated and the bundles of the updated extension conflict with the previous one.

Activity

Show:

Michael Offner 23 July 2021 at 12:26

Because jetS3t seem to cache somehow the “Jets3tProperties“, we now ALWAYS pass custom properties to the constructor, hopefully this will solve the issue. ATM this is just a gues because jets3t is a blackbox for us and we can not reproduce the issue.

Michael Offner 23 July 2021 at 08:37

 

lucee.runtime.exp.NativeException: Request Error: class org.jets3t.service.Jets3tProperties cannot be cast to class org.jets3t.service.Jets3tProperties (org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @fb5fc73; org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @6b532499) at org.jets3t.service.S3Service.listAllBuckets(S3Service.java:1461) at org.lucee.extension.resource.s3.S3.list(S3.java:276) at org.lucee.extension.resource.s3.S3.get(S3.java:571) at org.lucee.extension.resource.s3.S3.exists(S3.java:458) at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:313) at lucee.commons.io.res.util.ResourceUtil.checkGetOutputStreamOK(ResourceUtil.java:1385) at lucee.commons.io.res.util.ResourceUtilImpl.checkGetOutputStreamOK(ResourceUtilImpl.java:70) at org.lucee.extension.resource.s3.S3Resource.getOutputStream(S3Resource.java:237) at lucee.commons.io.res.type.file.FileResource.copyTo(FileResource.java:106) at lucee.commons.io.IOUtil.copy(IOUtil.java:126) at lucee.runtime.tag.FileTag.actionCopy(FileTag.java:559) at lucee.runtime.functions.file.FileCopy.call(FileCopy.java:35) at cron.artworkverify.index_cfm$cf$4c9.udfCall2(/cron/artworkVerify/index.cfm:789) at cron.artworkverify.index_cfm$cf$4c9.udfCall(/cron/artworkVerify/index.cfm) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:779) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1714) at cron.artworkverify.index_cfm$cf$4c9.udfCall1(/cron/artworkVerify/index.cfm:1089) at cron.artworkverify.index_cfm$cf$4c9.udfCall(/cron/artworkVerify/index.cfm) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:212) at lucee.runtime.type.EnvUDF.call(EnvUDF.java:109) at lucee.runtime.functions.closure.Each._call(Each.java:214) at lucee.runtime.functions.closure.Each.invoke(Each.java:181) at lucee.runtime.functions.closure.Each._call(Each.java:93) at lucee.runtime.functions.closure.Each.call(Each.java:66) at lucee.runtime.functions.query.QueryEach._call(QueryEach.java:50) at lucee.runtime.functions.query.QueryEach.call(QueryEach.java:38) at lucee.runtime.functions.query.QueryEach.invoke(QueryEach.java:56) at lucee.runtime.interpreter.ref.func.BIFCall.getValue(BIFCall.java:134) at lucee.runtime.type.util.MemberUtil.call(MemberUtil.java:117) at lucee.runtime.type.QueryImpl.call(QueryImpl.java:1803) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1714) ... Caused by: org.lucee.extension.resource.s3.S3Exception: Request Error: class org.jets3t.service.Jets3tProperties cannot be cast to class org.jets3t.service.Jets3tProperties (org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @fb5fc73; org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @6b532499) ... 119 more Caused by: org.jets3t.service.S3ServiceException: Request Error: class org.jets3t.service.Jets3tProperties cannot be cast to class org.jets3t.service.Jets3tProperties (org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @fb5fc73; org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @6b532499) ... 119 more Caused by: java.lang.ClassCastException: class org.jets3t.service.Jets3tProperties cannot be cast to class org.jets3t.service.Jets3tProperties (org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @fb5fc73; org.jets3t.service.Jets3tProperties is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @6b532499) at org.jets3t.service.utils.RestUtils$ThreadSafeConnManager.createConnectionPool(RestUtils.java:629) at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.<init>(ThreadSafeClientConnManager.java:159) at org.jets3t.service.utils.RestUtils$ThreadSafeConnManager.<init>(RestUtils.java:620) at org.jets3t.service.utils.RestUtils$ConnManagerFactory.newInstance(RestUtils.java:605) at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294) at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:437) at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:246) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:771) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRequest(RestStorageService.java:328) at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRequest(RestStorageService.java:279) at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRestGet(RestStorageService.java:1104) at org.jets3t.service.impl.rest.httpclient.RestStorageService.performRestGet(RestStorageService.java:1076) at org.jets3t.service.impl.rest.httpclient.RestStorageService.listAllBucketsImpl(RestStorageService.java:1482) at org.jets3t.service.StorageService.listAllBucketsImpl(StorageService.java:1406) at org.jets3t.service.StorageService.listAllBuckets(StorageService.java:590) at org.jets3t.service.S3Service.listAllBuckets(S3Service.java:1458) ... 118 more
Fixed

Details

Assignee

Reporter

Labels

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

Priority

Created 15 June 2021 at 15:04
Updated 22 April 2022 at 17:15
Resolved 6 August 2021 at 10:46

Flag notifications