cfdump fails on imap folder contents after call to getMessages();
Description
Environment
Windows 7 x64
Attachments
- 02 Feb 2018, 04:55 pm
- 05 Dec 2017, 11:35 am
- 08 Nov 2017, 06:10 am
- 07 Nov 2017, 08:29 am
Activity
Pothys - MitrahSoft 22 May 2018 at 11:06
Thanks, I'll close this ticket as per reporter's comment.
JP 9 May 2018 at 21:29
I can verify that dump is now working correctly for imap objects using snapshot 5.2.8.25. Thanks!
Pothys - MitrahSoft 7 May 2018 at 08:19
Hi @HenryG,
Sorry for late reply. While dumping get all action on cfimap i saw attachment name. What the issue you are facing. Can you please test with latest lucee snapshot. I hope your problem may be solved with latest version. Please check with latest version & post the result here.
HenryG 3 April 2018 at 17:07
This is one of the problems I had too... I just completed a new project involving IMAP and found fatal flaws and annoying incompatibilities with Lucee’s built-in tag in the 5.2.7.53-SNAPSHOT. I was only able to complete the project with the tag I found here https://github.com/Tropicalista/lucee-cfimap1. it uses the ACF dialect and resulting structures and works very well on linux and windows, including SSL/TLS and I’d like to suggest adopting it as a built in or menu installed official extension. I have no idea if this was already considered or if there are other things going on. My experience was that, today, it’s much closer to where everyone wants to be on CFIMAP.
Lucees built-in tag seems much like BD’s tag and has at least one of the same issues as BD did. It fails to show attachments for emails originating from exchange- or at least the ones i was getting. The data is there in the content part, but Lucees IMAP shows no attachment dumping a getall action.
About the level of interest on this tag being understated: Being new to Lucee and not knowing any of this, I have to admit it was very discouraging when most of the examples I could find did not work at all. It’s important to have basic core stuff like this working for new people who are looking at different app servers. Sad to say, if i had not previously done a project w/ Lucee i would not have worked at getting a solution and just moved on.
That said, Lucee seems to have unprecedented momentum that I hope will expand the community to the many new, lurking or lazy developers that are looking for easy solutions. Thanks!
JP 2 February 2018 at 16:56
Still happening to me. Here's a screenshot of the context:
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
JPJPPriority
NewLabels
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
Affects versions
Details
Details
Assignee
Reporter
Priority
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
When running my code to check a bounced messages folder, calling cfdump (or writeDump()
) on the folder contents generates an error:
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getBundle()Lorg/apache/felix/framework/BundleImpl;
Here's the code I'm using that will generate the error:
mailServer = "mail.yourdomain.com"; mailServerPort = 143; emailAccount = "info@yourdomain.com"; emailPassword = "yourpassword"; mailSession = createObject("Java", "javax.mail.Session"); objProperties = createObject("Java", "java.util.Properties"); objStore = createObject("Java", "javax.mail.Store"); timeout = 30 * 1000; objProperties.init(); objProperties.put("mail.store.protocol", "imap"); objProperties.put("mail.imap.port", mailServerPort); objProperties.put("mail.imap.connectiontimeout", Timeout); objProperties.put("mail.imap.timeout", Timeout); objSession = mailSession.getInstance(objProperties); store = objSession.getStore(); store.connect(mailServer, emailAccount, emailPassword); folder = store.getFolder("Bounced"); folder.open(folder.READ_ONLY); msgs = folder.getMessages(); ctMessages = ArrayLen(msgs); writeOutput("<p>Number of Bounced Messages: #ctMessages#</p>"); writedump(var=msgs, expand=false, label="messages");
The stack is:
lucee.runtime.exp.NativeException: org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getBundle()Lorg/apache/felix/framework/BundleImpl; at lucee.runtime.dump.DumpUtil.toDumpData(DumpUtil.java:627) at lucee.runtime.dump.DumpUtil.toDumpData(DumpUtil.java:379) at lucee.runtime.functions.other.DumpStruct.call(DumpStruct.java:92) at lucee.runtime.functions.other.DumpStruct.call(DumpStruct.java:81) at dump_cfc$cf.udfCall1(/Dump.cfc:106) at dump_cfc$cf.udfCall(/Dump.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:108) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:367) at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:663) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1935) at lucee.runtime.tag.CFTag.cfcStartTag(CFTag.java:401) at lucee.runtime.tag.CFTag.doStartTag(CFTag.java:180) at writedump_cfm$cf.udfCall(/writeDump.cfm:25) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:108) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:367) at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213) at lucee.runtime.functions.system.CFFunction.call(CFFunction.java:103) at test_cfm$cf.call(/test.cfm:34) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:908) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:833) at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:817) at __138.application_cfc$cf.udfCall1(../application.cfc:720) at __138.application_cfc$cf.udfCall(../application.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:108) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:367) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:227) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:662) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1918) at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:420) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:222) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:43) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2405) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2395) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2363) at lucee.runtime.engine.Request.exe(Request.java:46) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1084) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1032) 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.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394) 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:212) 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.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) 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: java.lang.NoSuchMethodError: org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.getBundle()Lorg/apache/felix/framework/BundleImpl; ... 69 more