cfPassphrase from Peter Boughton and Lucee 5

191 views
Skip to first unread message

Michael Vornkahl

unread,
Jul 17, 2016, 11:44:42 AM7/17/16
to Lucee
Hi,
I used cfPassphrase (http://sorcerersisle.com/projects:cfpassphrase.html) under Lucee 4.5 and it worked very good.

Could someone give me a hint, where to put the files under Lucee 5.
The installation under 4.5 says:
  1. Put cfpassphrase.jar in {lucee-lib} directory.
  2. Put cfpassphrase.fld in {lucee-server}/context/library/fld directory.
  3. Put cfpassphrase.tld in {lucee-server}/context/library/tld directory.
  4. Restart the server.
I put the jar file into: C:\Railo\tomcat\lib
the fld in: c:\railo\tomcat\lucee-server\context\library\fld\
and the tld in c:\railo\tomcat\lucee-server\context\library\fld\.

After a restart I got the error:

Message    sorcerersisle/cfpassphrase/lucee/PassphraseHash

Cause      java.lang.NoClassDefFoundError

Lucee 5.0.1.28-SNAPSHOT
Windows Server 2012

Thanks for your help.

Michael

Ivan

unread,
Jul 17, 2016, 3:08:20 PM7/17/16
to Lucee
Hi,

https://github.com/boughtonp/cfpassphrase/wiki/Installation

  • For Lucee 5 the cfpassphrase.jar file needs to go into the {lucee-server}/context/lib directory instead.

Michael Vornkahl

unread,
Jul 18, 2016, 2:04:01 AM7/18/16
to Lucee
Hi Ivan,
thank you for helping rtfm ( :-) : Shame on me!).
I move the cfpassphrase.jar into c:\railo\tomcat\lucee-server\context\lib\
Now the error message changed to:

Lucee 5.0.1.28-SNAPSHOT Error (java.lang.ClassNotFoundException)

Message       
class sorcerersisle.cfpassphrase.lucee.PassphraseHash is invalid or doesn't exist
Cause java.lang.ClassNotFoundException

Any further Ideas?

Greetings Michael

Paul Klinkenberg

unread,
Jul 18, 2016, 4:59:42 AM7/18/16
to lu...@googlegroups.com
Hi Michael,

I suppose it's just a typo, but you wrote "and the tld in c:\railo\tomcat\lucee-server\context\library\fld\."
That should've been "....\Tld", instead of ".....\Fld"

Kind regards,

Paul Klinkenberg

 
-- 
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/65ee665a-82b8-4053-91b5-515fca40524e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Vornkahl

unread,
Jul 18, 2016, 5:45:19 AM7/18/16
to Lucee
Hi Paul,
yes, that was a typo. File is in ...\tld.

Greetings

Michael

Michael Vornkahl

unread,
Jul 20, 2016, 1:03:40 PM7/20/16
to Lucee
Hi,
I tested it again. Now I deinstallated my old Railo/Lucee-Installation and installed lucee via the installer completely new.
I hope, that everything is, where it should be:
cfpassphrase.jar in: c:\lucee\tomcat\lucee-server\context\lib\
cfPassphrase.tld in: c:\lucee\tomcat\lucee-server\context\library\tld\
cfPassphrase.fld in: c:\lucee\tomcat\lucee-server\context\library\fld\

I received the followin error message:

Lucee 5.0.1.28-SNAPSHOT Error (java.lang.ClassNotFoundException)
Message class sorcerersisle.cfpassphrase.lucee.PassphraseHash is invalid or doesn't exist
Cause java.lang.ClassNotFoundException
Stacktrace The Error Occurred in
D:\Inetpub\wwwroot\xxxx\indexframe.cfm: line 44
42: <cfquery name="UpdateneuesPW" datasource="factum_awbs">
43: Update xxxx_User
44: set PassWordNEU= '#PassphraseHash( Form.Password )#'
45: WHERE (UserID = '#CheckUser.Userid#') AND (PasswordNEU = '' OR PasswordNEU IS NULL)
46: </cfquery>

Java Stacktrace lucee.runtime.exp.NativeException: class sorcerersisle.cfpassphrase.lucee.PassphraseHash is invalid or doesn't exist
  at lucee.commons.lang.PhysicalClassLoader.findClass(PhysicalClassLoader.java:146)
  at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:127)
  at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:107)
  at hepatitis_c_register990.indexframe_cfm$cf.call(D:\Inetpub\wwwroot\Hepatitis-C-Register\indexframe.cfm:44)
  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.ClassicAppListener._onRequest(ClassicAppListener.java:62)
  at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
  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:882)
  at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:103)
  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: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.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:872)
  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.ClassNotFoundException: class sorcerersisle.cfpassphrase.lucee.PassphraseHash is invalid or doesn't exist
  ... 36 more
 
Timestamp 20.07.16 18:49:48 MESZ

System: Windows Server 2012 R2 (6.3) 64bit
Servlet Container   Apache Tomcat/8.0.35
Java 1.8.0_92 (Oracle Corporation) 64bit
Architecture 64bit


Anyone any ideas?
All hints/tipps are welcome!

Thank you
Michael


Michael Vornkahl

unread,
Jul 25, 2016, 4:45:18 AM7/25/16
to Lucee
Hi,
now it is working. Andrew helped me to solve it:
1. I'm using Lucee 5.1.0.17-BETA
2. Andrew sent me the osgi-Verson of cfpassphrase (thank you very much!!!)
3. I modified the fld-file like Andrew described it here: https://github.com/boughtonp/cfpassphrase/issues/18

Bye

Michael

Maybe, Peter Boughton could add thi


Am Sonntag, 17. Juli 2016 17:44:42 UTC+2 schrieb Michael Vornkahl:

Michael Vornkahl

unread,
Nov 26, 2016, 3:09:43 AM11/26/16
to Lucee

Hi,
after updating my lucee version to 5.2.0.1-SNAPSHOT I got the following error after callin PassphraseCheck (from cfpassphrase):


lucee.runtime.exp.NativeException: java.lang.NullPointerException
at lucee.runtime.exp.NativeException.newInstance(NativeException.java:69)
at lucee.runtime.op.Caster.toPageException(Caster.java:3186)
at lucee.runtime.op.CastImpl.toPageException(CastImpl.java:700)
at sorcerersisle.cfpassphrase.lucee.PassphraseHash.call(PassphraseHash.java:51)
at sorcerersisle.cfpassphrase.lucee.PassphraseHash.call(PassphraseHash.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at lucee.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:55)
at lucee.runtime.reflection.Reflector.callStaticMethod(Reflector.java:920)
at lucee.runtime.functions.BIFProxy.invoke(BIFProxy.java:41)
at lucee.runtime.tag.TagUtil.invokeBIF(TagUtil.java:343)
at hepatitis_c_register990.indexframe_cfm$cf.call(/hepatitis-c-register/indexframe.cfm:49)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:918)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:833)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:828)


at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:62)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)

at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2293)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2284)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2252)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:891)
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:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:476)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1410)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)


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)


Any ideas what could be wrong?



Thank you

Michael

Brad Wood

unread,
Nov 27, 2016, 11:49:06 PM11/27/16
to Lucee
Micha just completed a ticket recently that changes how exceptions thrown from underlying classes aren't handled.  It's possible that it's causing an unrelated secondary error while handling your original error.

https://luceeserver.atlassian.net/browse/LDEV-454

Can you check and see if this NPE is being thrown prior to 5.1.1.16?  If not, please update that ticket with details on how Micha can reproduce the issue.

Thanks!

~Brad

Michael Offner

unread,
Nov 28, 2016, 2:43:04 AM11/28/16
to lucee
Are you sure that this is happening in this version? that code line cannot cause an NPE

Micha

--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp

---
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+unsubscribe@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.

Michael Offner

unread,
Nov 28, 2016, 4:07:49 AM11/28/16
to lucee
i'm digging into this deeper, first of all make sure non OSGi version is working.

Micha

Michael Offner

unread,
Nov 28, 2016, 4:11:44 AM11/28/16
to lucee
first observation, loading the class only fails from FLD file, works fine with createObject(), so with this code:

1: dump(createObject('java','sorcerersisle.cfpassphrase.lucee.PassphraseHash'));
2: dump(PassphraseHash("kkk"));

line 1 works, line 2 fails
Micha

Michael Vornkahl

unread,
Nov 28, 2016, 8:04:23 AM11/28/16
to Lucee
Hi Micha,
you know, if I can I would help you :-).
But I don't know how to help? So please (if necessary) define some jobs for me and describe it please as you would describe it for your dog.
Maybe, I can be help useful ....

Greetings Michael
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.

Michael Offner

unread,
Nov 29, 2016, 3:51:58 AM11/29/16
to lu...@googlegroups.com
I have solved the initial issue of this ticket. So Lucee works now with the non OSGi jar (version 5.1.1.31-SNAPSHOT).

Micha

Michael Offner

unread,
Nov 29, 2016, 3:54:20 AM11/29/16
to lu...@googlegroups.com
@Michael Vornkahl i was able to fix the intial issue that was not really an issue for you anymore because you used an OSGi bundle, what of course is the best solution anyway.
But i'm still not able to reproduce the NPE, code still works fine for me.

Micha 



To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.

Michael Offner

unread,
Nov 29, 2016, 3:55:41 AM11/29/16
to lu...@googlegroups.com
send out to fast...
so any help to reproduce the issue is welcome.

Micha
Reply all
Reply to author
Forward
0 new messages