Posts

Showing posts with the label railo

*FIXED* Setting you Railo / Lucee server to use TLS 1.2 by setting to use Java 1.8 instead of Java 1.7.

Image
TLS 1.0 support is being dropped by more and more platforms. If you are using your Railo / Lucee server to communicate with the service that have dropped the support using TLS 1.0, the request will not be honored. Here are the steps to have your Railo/Lucee server to use Java 1.8 instead of 1.7 and avoid this error. First verify the version of Java that your Railo Server is using. Go to Server Admin and check the version of Java used by Railo server. Instead of the 1.8.xx as show in the screenshot it will be 1.7.xx So, we need to install JDK 1.8 if not yet installed in the machine. Install JDK 1.8. 32/64 bit according to your server OS. Open Railo-Tomcat Service Control. Stop Railo. In the Java tab, give the jvm of the newly installed JDK. Something like C:\Program Files\Java\jdk1.8.0_121\jre\bin\server\jvm.dll. Restart Railo. Check the version of Java used in Railo Server Admin, it will be 1.8. Now your requests to the server will be TLS 1.2 and they will be ...

*FIXED* QuickBooks Integration Error - EDGE-CR-ERR-8090 - Auth ID does not exist

Integration with QuickBooks is easy if you know the OAuth flow. QuickBooks uses the OAuth 1.0 specification. They provide libraries for PHP, Java and other popular languages. For ColdFusion/Railo, you can use the OAuth implementation from  http://oauth.riaforge.org/ .  Usually the error messages from QB are self-explanatory and are mostly related with Signature or the Access token/secret. This one particular error left us a bit embarrassed as there were no help available. But we quickly found it was a data issue.  The error while trying to retrieve data from QB is as follows:

ColdFusion CFHTTP analogous to CURL

* This is a continuously updated post on the corresponding  CFHTTP  syntax for  CURL . If you need help, send me a message and I will try to help. I have been trying to integrate different APIs with ColdFusion/Railo recently and the difficult part is of course to understand the way the API is expecting data. Mostly they 3rd party will provide library or code for PHP and .NET, but not for ColdFusion. In some cases they provide the CURL syntax. I thought I will scribble my findings here so that it is useful for someone to write CFHTTP by seeing the CURL syntax. File Upload   e.g.:  to post a file to the folder /upload to the server. The URL is http://app.prasanthkumars.com/upload the API uses Basic Authorization File name is test.png CURL curl -f file=@test.png "http://username:password@app.prasanthkumars.com/upload" CFHTTP <cfset credentials = tobase64("#username#:#password#")> <cfhttp method="POST" url="htt...

Railo error - java.lang.UnsatisfiedLinkError - when using C++ based CFX tags.

Image
Railo does have a hidden link to add C++ based CFX tags. To enable it, use the following link. http://localhost:8888/railo-context/admin/web.cfm?action=resources.cfx_tags&enable=cfxcpp Just add the tag name and path of DLL and you are good to go. We had to use a C++ based custom tag for our application and everything was fine on our development servers. But when we tried this on Live, we are presented with a Java error. The message is "com.naryx.tagfusion.cfx.CFXNativeLib.processRequest(Ljava/lang/String;Ljava/lang/String;Lcom/naryx/tagfusion/cfx/sessionRequest;Lcom/naryx/tagfusion/cfx/sessionResponse;Z)V" The error says "Railo 4.1.1.009 Error (java.lang.UnsatisfiedLinkError)" and we first thought it was an issue with the CFX tag compatibility with the version of windows. But on closely checking we can see that the Railo version on Live was 4.1.1.009 and that on development is  4.2.1.008. To confirm the error, we took the express editio...