Error Updating Lucee 5 S3 Extension

287 views
Skip to first unread message

Juan Aguilar

unread,
Jul 14, 2016, 12:37:57 PM7/14/16
to Lucee
My server admin indicated that the S3 and MSSQL extensions needed to be updated. The MSSQL extension updated fine but when I tried to update the S3 extension, an error was thrown. Afterwards, the extension appeared as "Not Installed". I tried to install the extension and the following error was thrown. I'm 99% sure it is the same original error:

Lucee 5.0.0.252 Error (4)
MessageUnresolved constraint in bundle s3.extension [86]: Unable to resolve 86.0: missing requirement [86.0] osgi.wiring.bundle; (&(osgi.wiring.bundle=org.lucee.httpcomponents.httpcore)(bundle-version>=4.4.4))
Causeorg.osgi.framework.BundleException
StacktraceThe Error Occurred in
/Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/ext.applications.cfm: line 101 
called from /Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/web.cfm: line 389 
called from /Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/server.cfm: line 2 
Java Stacktracelucee.runtime.exp.NativeException: Unresolved constraint in bundle s3.extension [86]: Unable to resolve 86.0: missing requirement [86.0] osgi.wiring.bundle; (&(osgi.wiring.bundle=org.lucee.httpcomponents.httpcore)(bundle-version>=4.4.4))
  at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4097)
  at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
  at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
  at lucee.loader.osgi.BundleUtil.start(BundleUtil.java:130)
  at lucee.runtime.osgi.OSGiUtil.start(OSGiUtil.java:687)
  at lucee.runtime.osgi.OSGiUtil.startIfNecessary(OSGiUtil.java:647)
  at lucee.runtime.osgi.OSGiUtil.loadBundle(OSGiUtil.java:370)
  at lucee.commons.lang.ClassUtil.loadClassByBundle(ClassUtil.java:130)
  at lucee.transformer.library.ClassDefinitionImpl.getClazz(ClassDefinitionImpl.java:73)
  at lucee.runtime.config.XMLConfigAdmin.setClass(XMLConfigAdmin.java:6329)
  at lucee.runtime.config.XMLConfigAdmin._updateResourceProvider(XMLConfigAdmin.java:2186)
  at lucee.runtime.config.XMLConfigAdmin._updateResourceProvider(XMLConfigAdmin.java:2158)
  at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4784)
  at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4575)
  at lucee.runtime.config.XMLConfigAdmin._updateRHExtension(XMLConfigAdmin.java:4557)
  at lucee.runtime.tag.Admin.doUpdateRHExtension(Admin.java:4564)
  at lucee.runtime.tag.Admin._doStartTag(Admin.java:708)
  at lucee.runtime.tag.Admin.doStartTag(Admin.java:336)
  at ext_applications_cfm184$cf.call(/Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/ext.applications.cfm:101)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:893)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:808)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:803)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:794)
  at web_cfm$cf.call(/Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/web.cfm:389)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:893)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:808)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:803)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:794)
  at server_cfm$cf.call(/Users/mic/Projects/Lucee/Lucee5/core/src/main/cfml/context/admin/server.cfm:2)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:893)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:808)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:803)
  at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:226)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2250)
  at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2242)
  at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2210)
  at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:848)
  at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
  at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  at java.lang.Thread.run(Thread.java:745)
 Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle s3.extension [86]: Unable to resolve 86.0: missing requirement [86.0] osgi.wiring.bundle; (&(osgi.wiring.bundle=org.lucee.httpcomponents.httpcore)(bundle-version>=4.4.4))
  ... 63 more
 
Timestamp7/14/16 4:19:52 PM UTC

It appears the extension was updated today:

Available version0.9.4.102
Release DateJul 14, 2016
Id17AB52DE-B300-A94B-E058BD978511E39E

This is my environment:

VersionLucee 5.0.0.252
Version NameVelvet
Release dateMay 25, 2016
ColdFusion® compatibility version11.0.07.296330

Configuration File/var/lib/tomcat8/lucee-server/context/lucee-server.xml
OSLinux (4.5.5-x86_64-linode69) 64bit
Servlet ContainerApache Tomcat/8.0.32 (Ubuntu)
Java1.8.0_91 (Oracle Corporation) 64bit
Architecture64bit
 

mark

unread,
Jul 14, 2016, 6:47:18 PM7/14/16
to Lucee
I would update Lucee to 5.0.1.22 because there were problems with 5.0.0.252 not removing jars from uninstalled extensions.

Michael Offner

unread,
Jul 15, 2016, 11:51:47 AM7/15/16
to lucee
Hi Juan

i know what the problem is and we will fix it, can you please raise a ticket for it (http://issues.lucee.org)?
There is a simply work around that should solve the problem:
- download the following files:
  http://snapshot.lucee.org/rest/update/provider/download/org.lucee.httpcomponents.httpmime/4.5.2

- copy the files to /lucee-server/bundles

then you should be able to install.
Will solve this asap.

Micha



--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/1d5dbeab-d50f-426c-b845-a33dcdb7e13b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Juan Aguilar

unread,
Jul 15, 2016, 12:05:53 PM7/15/16
to Lucee
Thanks Mark.

I upgraded to 5.0.1.27-SNAPSHOT (not quite certain how to only go through 5.0.1.22) and the error changed:

Lucee 5.0.1.27-SNAPSHOT Error (org.lucee.extension.resource.s3.S3Exception)
MessageRequest Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties
Causeorg.lucee.extension.resource.s3.S3Exception
StacktraceThe Error Occurred in
/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/ext.applications.cfm: line 101 
called from /home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/web.cfm: line 389 
called from /home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/server.cfm: line 2 
Java Stacktracelucee.runtime.exp.NativeException: Request Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties
  at org.jets3t.service.S3Service.getBucket(S3Service.java:2002)
  at org.lucee.extension.resource.s3.S3.get(S3.java:456)
  at org.lucee.extension.resource.s3.S3.exists(S3.java:422)
  at org.lucee.extension.resource.s3.S3Resource.exists(S3Resource.java:312)
  at lucee.runtime.config.ConfigWebUtil._getExistingFile(ConfigWebUtil.java:362)
  at lucee.runtime.config.ConfigWebUtil.getExistingResource(ConfigWebUtil.java:350)
  at lucee.runtime.MappingImpl.(MappingImpl.java:138)
  at lucee.runtime.config.XMLConfigWebFactory.loadMappings(XMLConfigWebFactory.java:1589)
  at lucee.runtime.config.XMLConfigWebFactory.load(XMLConfigWebFactory.java:445)
  at lucee.runtime.config.XMLConfigWebFactory.reloadInstance(XMLConfigWebFactory.java:329)
  at lucee.runtime.config.XMLConfigAdmin._reload(XMLConfigAdmin.java:347)
  at lucee.runtime.config.XMLConfigAdmin._storeAndReload(XMLConfigAdmin.java:323)
  at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4893)
  at lucee.runtime.config.XMLConfigAdmin.updateRHExtension(XMLConfigAdmin.java:4576)
  at lucee.runtime.config.XMLConfigAdmin._updateRHExtension(XMLConfigAdmin.java:4558)
  at lucee.runtime.tag.Admin.doUpdateRHExtension(Admin.java:4565)

  at lucee.runtime.tag.Admin._doStartTag(Admin.java:708)
  at lucee.runtime.tag.Admin.doStartTag(Admin.java:336)
  at ext_applications_cfm184$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/ext.applications.cfm:101)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:897)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:812)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:807)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:798)
  at web_cfm$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/web.cfm:389)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:897)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:812)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:807)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:798)
  at server_cfm$cf.call(/home/travis/build/lucee/Lucee/core/src/main/cfml/context/admin/server.cfm:2)
  at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:897)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:812)
  at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:807)

  at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:226)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43)
  at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2256)
  at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2248)
  at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2216)
  at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:879)

  at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
  at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  at java.lang.Thread.run(Thread.java:745)
 Caused by: org.lucee.extension.resource.s3.S3Exception: Request Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties
  ... 62 more
 
Timestamp7/15/16 3:37:16 PM UTC

However, now the extension appears as installed. I'd note that it's a different version from the one I tried to install yesterday:

Installed version0.9.4.103
TypeFull Version
Release DateJul 15, 2016
Id17AB52DE-B300-A94B-E058BD978511E39E

So, for kicks, I tried to uninstall (same error).

I restarted Tomcat then tried to install again. This time the installation occurred without error.

Thanks again for the help.

Juan

P.S. I hadn't hit post by the time Michael's reply came through. I'm leaving this here anyway, just in case.

Michael Offner

unread,
Jul 15, 2016, 1:40:31 PM7/15/16
to lucee
i have updated the extension, it should work now without this workaround.

Micha

Michael Offner

unread,
Jul 15, 2016, 3:38:33 PM7/15/16
to lucee
i'm not sure if i get it right, you still have that error (Request Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties)?

Micha 

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

Juan Aguilar

unread,
Jul 15, 2016, 4:46:51 PM7/15/16
to lu...@googlegroups.com
I did on 5.0.1.27-SNAPSHOT.

I did not once I updated the three org.lucee.httpcomponents components as you recommended and restarted the server.

kinghamh...@gmail.com

unread,
Dec 21, 2016, 12:03:48 PM12/21/16
to Lucee
I'm still seeing the same issue that Juan was seeing.

 I am running Lucee 5.1.0.34 with S3 Resource Extension 0.9.4.105.  When I attempted to do something like:   FileRead("S3://bucket_name/file.ext");  I am still seeing the error:   Request Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties 

The error goes away after I upgrade the 3 jar files that Micha posted and restart Lucee. This leads me to believe the fix hasn't made it's way into the current stable release (or part of the extension, whichever is more appropriate) as I assume having to replace jar files isn't part of the desired "design" of Lucee?

Anyway, I just wanted to let everyone know the "workaround" is still required in order to use S3.

Cheers,
Message has been deleted

Allen Weng

unread,
Feb 13, 2017, 8:38:25 AM2/13/17
to Lucee
I upgrade Lucee from 5.1.0 to the latest 5.1.1.65

try to install S3 resource Extension, it shows Request Error: org.jets3t.service.Jets3tProperties cannot be cast to org.jets3t.service.Jets3tProperties

those following files are in the bundles folder
Thanks

Allen


 
Reply all
Reply to author
Forward
0 new messages