Re: unexpected_message error when connecting to remote postgresql database over ssl

2020-01-10 Thread Bagas Sanjaya
Aha! Actually I use custom (internal) CA for doing remote connection. When trying to add dummy OCSP responder address (I did this for testing), I made a typo omitting colon from `http://` scheme. For PostgreSQL log as you mention, I think the server will log the IP address of connecting

Re: How to debug Groovy scripts.

2020-01-10 Thread James Yong
Hi Robert, Debugging groovy scripts should work in IntelliJ IDEA Community Edition. Also see https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Intellij+IDEA Regards, James On 2020/01/10 15:46:20, Robert Wynkoop wrote: > How do I debug the Groovy scripts? > >

Re: unexpected_message error when connecting to remote postgresql database over ssl

2020-01-10 Thread Robert Wynkoop
Bagas, Also you try turning off ssl, since this is not your prod. add ";sslfactory=org.postgresql.ssl.NonValidatingFactory" to the end of your database connection string. Robert Wynkoop Still not an expert. On Fri, Jan 10, 2020 at 4:08 PM Robert Wynkoop wrote: > Not an expert here. > > I

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
Jacques, If I can get it working in Eclipse, then I will be able to figure Netbeans out. Using Eclipse: Version: 2019-09 R (4.13.0) Build id: 20190917-1200 Installed Plugin that may be relevant: Groovy Development Tools 3.7.0 Buildship Gradle Integration 3.0 EGradle Editor and IDE 2.6.1 Thanks

Re: unexpected_message error when connecting to remote postgresql database over ssl

2020-01-10 Thread Robert Wynkoop
Not an expert here. I see this in your log: Unparseable AuthorityInfoAccess extension due to java.io.IOException: URI name must include scheme:http//ocsp.ca.linode.com I know when doing a secure connection, the serer must return a cert where the issuer can be validated. >From your log:

Re: How to debug Groovy scripts.

2020-01-10 Thread Jacques Le Roux
Le 10/01/2020 à 22:38, Robert Wynkoop a écrit : Any ideas of what I might try? Using Eclipse or IntelliJ ? Sorry ;) Jacques

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
Jacques, Thanks. Well I'm having fun. New to Gradle, new to Goovy, I'm not making progress. I added getDirectoryInActiveComponentsIfExists('groovyScripts') to sourceSets {main { groovy { But no joy in Netbeans. I then ran the task "eclipse" and tried eclipse(with build), with no

Re: How to debug Groovy scripts.

2020-01-10 Thread Jacques Le Roux
You might be interested by https://issues.apache.org/jira/browse/OFBIZ-10226 HTH Jacques Le 10/01/2020 à 16:46, Robert Wynkoop a écrit : How do I debug the Groovy scripts? In netbeans and eclipse, the groovy file does not seem to be on the class path. I'm unable to set break points.  Any

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
Dan, Thanks. In netbeans I can get the debugger to attach, but get a msg can not set break point. I get this message in the debugger console. I can set other java breakpoints. Invalid LineBreakpoint InitTheme.groovy : 31 LineBreakpoint UtilMisc.java : 68 successfully submitted. Robert Wynkoop

Re: How to debug Groovy scripts.

2020-01-10 Thread Daniel Watford
Hi Robert, Groovy scripts are not on the classpath in the normal sense, but are loaded (and I guess compiled) at runtime from the script's .groovy file. This is handled in the GroovyEngine#serviceInvoker where you'll see a line similar to: Script script =

Re: How to debug Groovy scripts.

2020-01-10 Thread Taher Alkhateeb
Debugger might not work given that these scripts are not directly called within the classpath (they are enhanced with OFBiz-specific context information. I would use print statements to debug things. On Fri, Jan 10, 2020 at 6:55 PM Robert Wynkoop wrote: > How do I debug the Groovy scripts? > >

How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
How do I debug the Groovy scripts? In netbeans and eclipse, the groovy file does not seem to be on the class path. I'm unable to set break points. Any tips to configure so I can debug OFBiz Java embedded Groovy. [image: 2020-01-10 09_40_18-ofbiz-framework - Apache NetBeans IDE 11.2.jpg]