Demo Trunk Break

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Demo Trunk Break

Rishi Solanki
Devs,
On browsing -
https://demo-trunk.ofbiz.apache.org/webtools/control/FindGeneric?entityName=Party

Received following exception, Any one facing the similar issue with demo
please share. I'm looking into it and get back if find the root cause for
the same.


Thanks!


Here is the error received on UI

========================================================
ERROR rendering error page [/error/error.jsp], but here is the error text:
java.lang.IllegalArgumentException: Error running script at location
[component://webtools/groovyScripts/entity/FindGeneric.groovy]:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed: General error during class generation:
java.lang.NoClassDefFoundError: Unable to load class
org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due to missing
dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to load
class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due to
missing dependency
org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink at
org.codehaus.groovy.control.CompilationUnit.convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
at
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
at
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
at
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at
groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254) at
groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211) at
org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195) at
org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
at
org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
at

========================================================

Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Rishi Solanki
It seems something specific with deployment/data at demo instance, locally
It is working. No issue with latest trunk fresh data.

Best,

Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co

On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
wrote:

> Devs,
> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
> FindGeneric?entityName=Party
>
> Received following exception, Any one facing the similar issue with demo
> please share. I'm looking into it and get back if find the root cause for
> the same.
>
>
> Thanks!
>
>
> Here is the error received on UI
>
> ========================================================
> ERROR rendering error page [/error/error.jsp], but here is the error text:
> java.lang.IllegalArgumentException: Error running script at location
> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed: General error during class generation: java.lang.NoClassDefFoundError:
> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
> at org.codehaus.groovy.control.CompilationUnit.
> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
> at
>
> ========================================================
>
> Rishi Solanki
> Sr Manager, Enterprise Software Development
> HotWax Systems Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxsystems.com
> www.hotwax.co
>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
Hi Rishi,

It was me currently "playing" with the trunk demo.

I just restarted it and it's OK

Sorry for the disturbance, I have no other ways to test one thing

Jacques


Le 15/03/2018 à 08:59, Rishi Solanki a écrit :

> It seems something specific with deployment/data at demo instance, locally
> It is working. No issue with latest trunk fresh data.
>
> Best,
>
> Rishi Solanki
> Sr Manager, Enterprise Software Development
> HotWax Systems Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxsystems.com
> www.hotwax.co
>
> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
> wrote:
>
>> Devs,
>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>> FindGeneric?entityName=Party
>>
>> Received following exception, Any one facing the similar issue with demo
>> please share. I'm looking into it and get back if find the root cause for
>> the same.
>>
>>
>> Thanks!
>>
>>
>> Here is the error received on UI
>>
>> ========================================================
>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>> java.lang.IllegalArgumentException: Error running script at location
>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>> at org.codehaus.groovy.control.CompilationUnit.
>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>> at
>>
>> ========================================================
>>
>> Rishi Solanki
>> Sr Manager, Enterprise Software Development
>> HotWax Systems Pvt. Ltd.
>> Direct: +91-9893287847
>> http://www.hotwaxsystems.com
>> www.hotwax.co
>>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Rishi Solanki
Jacques,

No worries, thanks for the information.

Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co

On Thu, Mar 15, 2018 at 1:54 PM, Jacques Le Roux <
[hidden email]> wrote:

> Hi Rishi,
>
> It was me currently "playing" with the trunk demo.
>
> I just restarted it and it's OK
>
> Sorry for the disturbance, I have no other ways to test one thing
>
> Jacques
>
>
>
> Le 15/03/2018 à 08:59, Rishi Solanki a écrit :
>
>> It seems something specific with deployment/data at demo instance, locally
>> It is working. No issue with latest trunk fresh data.
>>
>> Best,
>>
>> Rishi Solanki
>> Sr Manager, Enterprise Software Development
>> HotWax Systems Pvt. Ltd.
>> Direct: +91-9893287847
>> http://www.hotwaxsystems.com
>> www.hotwax.co
>>
>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>> wrote:
>>
>> Devs,
>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>> FindGeneric?entityName=Party
>>>
>>> Received following exception, Any one facing the similar issue with demo
>>> please share. I'm looking into it and get back if find the root cause for
>>> the same.
>>>
>>>
>>> Thanks!
>>>
>>>
>>> Here is the error received on UI
>>>
>>> ========================================================
>>> ERROR rendering error page [/error/error.jsp], but here is the error
>>> text:
>>> java.lang.IllegalArgumentException: Error running script at location
>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>> failed: General error during class generation:
>>> java.lang.NoClassDefFoundError:
>>> Unable to load class org.apache.ofbiz.widget.render
>>> er.macro.MacroFormRenderer
>>> due to missing dependency org/apache/ofbiz/widget/model/
>>> ModelFormField$SubHyperlink
>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>> to missing dependency org/apache/ofbiz/widget/model/
>>> ModelFormField$SubHyperlink
>>> at org.codehaus.groovy.control.CompilationUnit.
>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>> assNodes(CompilationUnit.java:1079)
>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>> (CompilationUnit.java:603)
>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>> ations(CompilationUnit.java:581)
>>> at org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>> ionUnit.java:558)
>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>> .java:298)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>> tion(GroovyUtil.java:159)
>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>> oovyUtil.java:206)
>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>> il.java:342)
>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>> il.java:324)
>>> at
>>>
>>> ========================================================
>>>
>>> Rishi Solanki
>>> Sr Manager, Enterprise Software Development
>>> HotWax Systems Pvt. Ltd.
>>> Direct: +91-9893287847
>>> http://www.hotwaxsystems.com
>>> www.hotwax.co
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Michael Brohl-3
In reply to this post by Jacques Le Roux
Did you use the official demo trunk to test individual changes?

Am 15.03.18 um 09:24 schrieb Jacques Le Roux:

> Hi Rishi,
>
> It was me currently "playing" with the trunk demo.
>
> I just restarted it and it's OK
>
> Sorry for the disturbance, I have no other ways to test one thing
>
> Jacques
>
>
> Le 15/03/2018 à 08:59, Rishi Solanki a écrit :
>> It seems something specific with deployment/data at demo instance,
>> locally
>> It is working. No issue with latest trunk fresh data.
>>
>> Best,
>>
>> Rishi Solanki
>> Sr Manager, Enterprise Software Development
>> HotWax Systems Pvt. Ltd.
>> Direct: +91-9893287847
>> http://www.hotwaxsystems.com
>> www.hotwax.co
>>
>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>> wrote:
>>
>>> Devs,
>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>> FindGeneric?entityName=Party
>>>
>>> Received following exception, Any one facing the similar issue with
>>> demo
>>> please share. I'm looking into it and get back if find the root
>>> cause for
>>> the same.
>>>
>>>
>>> Thanks!
>>>
>>>
>>> Here is the error received on UI
>>>
>>> ========================================================
>>> ERROR rendering error page [/error/error.jsp], but here is the error
>>> text:
>>> java.lang.IllegalArgumentException: Error running script at location
>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>> failed: General error during class generation:
>>> java.lang.NoClassDefFoundError:
>>> Unable to load class
>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>> due to missing dependency
>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>> to missing dependency
>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>> at org.codehaus.groovy.control.CompilationUnit.
>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>> at
>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>
>>> at
>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>> at
>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>> at
>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>> at
>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>> at
>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>> at
>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>> at
>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>> at
>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>
>>> at
>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>
>>> at
>>>
>>> ========================================================
>>>
>>> Rishi Solanki
>>> Sr Manager, Enterprise Software Development
>>> HotWax Systems Pvt. Ltd.
>>> Direct: +91-9893287847
>>> http://www.hotwaxsystems.com
>>> www.hotwax.co
>>>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

taher
In reply to this post by Rishi Solanki
Hi Rishi, I'm not getting any errors in the demo on my side? Could it
be a web browser cache thing? I always fall in that trap myself.

On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <[hidden email]> wrote:

> It seems something specific with deployment/data at demo instance, locally
> It is working. No issue with latest trunk fresh data.
>
> Best,
>
> Rishi Solanki
> Sr Manager, Enterprise Software Development
> HotWax Systems Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxsystems.com
> www.hotwax.co
>
> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
> wrote:
>
>> Devs,
>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>> FindGeneric?entityName=Party
>>
>> Received following exception, Any one facing the similar issue with demo
>> please share. I'm looking into it and get back if find the root cause for
>> the same.
>>
>>
>> Thanks!
>>
>>
>> Here is the error received on UI
>>
>> ========================================================
>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>> java.lang.IllegalArgumentException: Error running script at location
>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>> at org.codehaus.groovy.control.CompilationUnit.
>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>> at
>>
>> ========================================================
>>
>> Rishi Solanki
>> Sr Manager, Enterprise Software Development
>> HotWax Systems Pvt. Ltd.
>> Direct: +91-9893287847
>> http://www.hotwaxsystems.com
>> www.hotwax.co
>>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Michael Brohl-3
Jacques did changes he already reverted in the mantime, see his post
this morning.

Jacques, can you please explain what happened?


Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:

> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
> be a web browser cache thing? I always fall in that trap myself.
>
> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <[hidden email]> wrote:
>> It seems something specific with deployment/data at demo instance, locally
>> It is working. No issue with latest trunk fresh data.
>>
>> Best,
>>
>> Rishi Solanki
>> Sr Manager, Enterprise Software Development
>> HotWax Systems Pvt. Ltd.
>> Direct: +91-9893287847
>> http://www.hotwaxsystems.com
>> www.hotwax.co
>>
>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>> wrote:
>>
>>> Devs,
>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>> FindGeneric?entityName=Party
>>>
>>> Received following exception, Any one facing the similar issue with demo
>>> please share. I'm looking into it and get back if find the root cause for
>>> the same.
>>>
>>>
>>> Thanks!
>>>
>>>
>>> Here is the error received on UI
>>>
>>> ========================================================
>>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>>> java.lang.IllegalArgumentException: Error running script at location
>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>> at org.codehaus.groovy.control.CompilationUnit.
>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>> at
>>>
>>> ========================================================
>>>
>>> Rishi Solanki
>>> Sr Manager, Enterprise Software Development
>>> HotWax Systems Pvt. Ltd.
>>> Direct: +91-9893287847
>>> http://www.hotwaxsystems.com
>>> www.hotwax.co
>>>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
Ho, it would be convoluted, please wait, WIP...

Jacques


Le 15/03/2018 à 12:37, Michael Brohl a écrit :

> Jacques did changes he already reverted in the mantime, see his post this morning.
>
> Jacques, can you please explain what happened?
>
>
> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>> be a web browser cache thing? I always fall in that trap myself.
>>
>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <[hidden email]> wrote:
>>> It seems something specific with deployment/data at demo instance, locally
>>> It is working. No issue with latest trunk fresh data.
>>>
>>> Best,
>>>
>>> Rishi Solanki
>>> Sr Manager, Enterprise Software Development
>>> HotWax Systems Pvt. Ltd.
>>> Direct: +91-9893287847
>>> http://www.hotwaxsystems.com
>>> www.hotwax.co
>>>
>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>>> wrote:
>>>
>>>> Devs,
>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>> FindGeneric?entityName=Party
>>>>
>>>> Received following exception, Any one facing the similar issue with demo
>>>> please share. I'm looking into it and get back if find the root cause for
>>>> the same.
>>>>
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> Here is the error received on UI
>>>>
>>>> ========================================================
>>>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>>>> java.lang.IllegalArgumentException: Error running script at location
>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>>>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>> at
>>>>
>>>> ========================================================
>>>>
>>>> Rishi Solanki
>>>> Sr Manager, Enterprise Software Development
>>>> HotWax Systems Pvt. Ltd.
>>>> Direct: +91-9893287847
>>>> http://www.hotwaxsystems.com
>>>> www.hotwax.co
>>>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Michael Brohl-3
To be more clear: I try to understand why trunk demo was broken while
the trunk demo seems to have no issues.

Michael


Am 15.03.18 um 13:36 schrieb Jacques Le Roux:

> Ho, it would be convoluted, please wait, WIP...
>
> Jacques
>
>
> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>> Jacques did changes he already reverted in the mantime, see his post
>> this morning.
>>
>> Jacques, can you please explain what happened?
>>
>>
>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>> be a web browser cache thing? I always fall in that trap myself.
>>>
>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>> <[hidden email]> wrote:
>>>> It seems something specific with deployment/data at demo instance,
>>>> locally
>>>> It is working. No issue with latest trunk fresh data.
>>>>
>>>> Best,
>>>>
>>>> Rishi Solanki
>>>> Sr Manager, Enterprise Software Development
>>>> HotWax Systems Pvt. Ltd.
>>>> Direct: +91-9893287847
>>>> http://www.hotwaxsystems.com
>>>> www.hotwax.co
>>>>
>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>> <[hidden email]>
>>>> wrote:
>>>>
>>>>> Devs,
>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>> FindGeneric?entityName=Party
>>>>>
>>>>> Received following exception, Any one facing the similar issue
>>>>> with demo
>>>>> please share. I'm looking into it and get back if find the root
>>>>> cause for
>>>>> the same.
>>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> Here is the error received on UI
>>>>>
>>>>> ========================================================
>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>> error text:
>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>> startup
>>>>> failed: General error during class generation:
>>>>> java.lang.NoClassDefFoundError:
>>>>> Unable to load class
>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>> due to missing dependency
>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>>>> load class
>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>>> to missing dependency
>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>> at
>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>
>>>>> at
>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>> at
>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>> at
>>>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>> at
>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>
>>>>> at
>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>> at
>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>> at
>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>> at
>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>> at
>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>> at
>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>> at
>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>
>>>>> at
>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>
>>>>> at
>>>>>
>>>>> ========================================================
>>>>>
>>>>> Rishi Solanki
>>>>> Sr Manager, Enterprise Software Development
>>>>> HotWax Systems Pvt. Ltd.
>>>>> Direct: +91-9893287847
>>>>> http://www.hotwaxsystems.com
>>>>> www.hotwax.co
>>>>>
>>
>>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Michael Brohl-3
Of course it should read: "I try to understand why trunk demo was broken
while the trunk codebase seems to have no issues."

Michael


Am 15.03.18 um 13:51 schrieb Michael Brohl:

> To be more clear: I try to understand why trunk demo was broken while
> the trunk demo seems to have no issues.
>
> Michael
>
>
> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>> Ho, it would be convoluted, please wait, WIP...
>>
>> Jacques
>>
>>
>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>> Jacques did changes he already reverted in the mantime, see his post
>>> this morning.
>>>
>>> Jacques, can you please explain what happened?
>>>
>>>
>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>
>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>> <[hidden email]> wrote:
>>>>> It seems something specific with deployment/data at demo instance,
>>>>> locally
>>>>> It is working. No issue with latest trunk fresh data.
>>>>>
>>>>> Best,
>>>>>
>>>>> Rishi Solanki
>>>>> Sr Manager, Enterprise Software Development
>>>>> HotWax Systems Pvt. Ltd.
>>>>> Direct: +91-9893287847
>>>>> http://www.hotwaxsystems.com
>>>>> www.hotwax.co
>>>>>
>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>> <[hidden email]>
>>>>> wrote:
>>>>>
>>>>>> Devs,
>>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>> FindGeneric?entityName=Party
>>>>>>
>>>>>> Received following exception, Any one facing the similar issue
>>>>>> with demo
>>>>>> please share. I'm looking into it and get back if find the root
>>>>>> cause for
>>>>>> the same.
>>>>>>
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>> Here is the error received on UI
>>>>>>
>>>>>> ========================================================
>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>> error text:
>>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>> startup
>>>>>> failed: General error during class generation:
>>>>>> java.lang.NoClassDefFoundError:
>>>>>> Unable to load class
>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>> due to missing dependency
>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>> Unable to
>>>>>> load class
>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>>>> to missing dependency
>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>> at
>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>
>>>>>> at
>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>> at
>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>> at
>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>> at
>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>
>>>>>> at
>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>> at
>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>> at
>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>> at
>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>
>>>>>> at
>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>> at
>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>> at
>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>
>>>>>> at
>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>
>>>>>> at
>>>>>>
>>>>>> ========================================================
>>>>>>
>>>>>> Rishi Solanki
>>>>>> Sr Manager, Enterprise Software Development
>>>>>> HotWax Systems Pvt. Ltd.
>>>>>> Direct: +91-9893287847
>>>>>> http://www.hotwaxsystems.com
>>>>>> www.hotwax.co
>>>>>>
>>>
>>>
>>
>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
Because for testing changes for OFBIZ-9833 I had to make a slight change on the trunk demo instance and needed to restart but

./gradlew --no-daemon "ofbiz --shutdown"

Does not always behaves well, at least on demos VM where there is 3 instances

So you get unstable situation and have to use "kill -9".

Anyway some data were not well loaded. A loadAll fixed it.

HTH

Jacques


Le 15/03/2018 à 13:56, Michael Brohl a écrit :

> Of course it should read: "I try to understand why trunk demo was broken while the trunk codebase seems to have no issues."
>
> Michael
>
>
> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>> To be more clear: I try to understand why trunk demo was broken while the trunk demo seems to have no issues.
>>
>> Michael
>>
>>
>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>> Ho, it would be convoluted, please wait, WIP...
>>>
>>> Jacques
>>>
>>>
>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>> Jacques did changes he already reverted in the mantime, see his post this morning.
>>>>
>>>> Jacques, can you please explain what happened?
>>>>
>>>>
>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>
>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <[hidden email]> wrote:
>>>>>> It seems something specific with deployment/data at demo instance, locally
>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Rishi Solanki
>>>>>> Sr Manager, Enterprise Software Development
>>>>>> HotWax Systems Pvt. Ltd.
>>>>>> Direct: +91-9893287847
>>>>>> http://www.hotwaxsystems.com
>>>>>> www.hotwax.co
>>>>>>
>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>>>>>> wrote:
>>>>>>
>>>>>>> Devs,
>>>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>>> FindGeneric?entityName=Party
>>>>>>>
>>>>>>> Received following exception, Any one facing the similar issue with demo
>>>>>>> please share. I'm looking into it and get back if find the root cause for
>>>>>>> the same.
>>>>>>>
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>>
>>>>>>> Here is the error received on UI
>>>>>>>
>>>>>>> ========================================================
>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>>>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>>>>>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>>>>>>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>>>>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>> at
>>>>>>>
>>>>>>> ========================================================
>>>>>>>
>>>>>>> Rishi Solanki
>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>> Direct: +91-9893287847
>>>>>>> http://www.hotwaxsystems.com
>>>>>>> www.hotwax.co
>>>>>>>
>>>>
>>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

taher
Can you be specific about "does not always behave well"? Maybe we can
debug and fix the situation. What happens? Does it not shut down at
all? Does it hang? What happens exactly?

On Thu, Mar 15, 2018 at 4:46 PM, Jacques Le Roux
<[hidden email]> wrote:

> Because for testing changes for OFBIZ-9833 I had to make a slight change on
> the trunk demo instance and needed to restart but
>
> ./gradlew --no-daemon "ofbiz --shutdown"
>
> Does not always behaves well, at least on demos VM where there is 3
> instances
>
> So you get unstable situation and have to use "kill -9".
>
> Anyway some data were not well loaded. A loadAll fixed it.
>
> HTH
>
> Jacques
>
>
>
> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>
>> Of course it should read: "I try to understand why trunk demo was broken
>> while the trunk codebase seems to have no issues."
>>
>> Michael
>>
>>
>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>
>>> To be more clear: I try to understand why trunk demo was broken while the
>>> trunk demo seems to have no issues.
>>>
>>> Michael
>>>
>>>
>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>
>>>> Ho, it would be convoluted, please wait, WIP...
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>
>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>> this morning.
>>>>>
>>>>> Jacques, can you please explain what happened?
>>>>>
>>>>>
>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>
>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>
>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>>>> <[hidden email]> wrote:
>>>>>>>
>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>> locally
>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Rishi Solanki
>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>> Direct: +91-9893287847
>>>>>>> http://www.hotwaxsystems.com
>>>>>>> www.hotwax.co
>>>>>>>
>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>>>> <[hidden email]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Devs,
>>>>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>
>>>>>>>> Received following exception, Any one facing the similar issue with
>>>>>>>> demo
>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>> cause for
>>>>>>>> the same.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>>
>>>>>>>> Here is the error received on UI
>>>>>>>>
>>>>>>>> ========================================================
>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the error
>>>>>>>> text:
>>>>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>> startup
>>>>>>>> failed: General error during class generation:
>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>> Unable to load class
>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>> due to missing dependency
>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable
>>>>>>>> to
>>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>> due
>>>>>>>> to missing dependency
>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>
>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>>>>>>>
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>>> at
>>>>>>>>
>>>>>>>> ========================================================
>>>>>>>>
>>>>>>>> Rishi Solanki
>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>> Direct: +91-9893287847
>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>> www.hotwax.co
>>>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
In the case I faced this morning it hanged at 91%  I did not check more.

This happens sometimes, not often, I'd say 15%  of the time, I don't see any reason

Jacques


Le 15/03/2018 à 14:52, Taher Alkhateeb a écrit :

> Can you be specific about "does not always behave well"? Maybe we can
> debug and fix the situation. What happens? Does it not shut down at
> all? Does it hang? What happens exactly?
>
> On Thu, Mar 15, 2018 at 4:46 PM, Jacques Le Roux
> <[hidden email]> wrote:
>> Because for testing changes for OFBIZ-9833 I had to make a slight change on
>> the trunk demo instance and needed to restart but
>>
>> ./gradlew --no-daemon "ofbiz --shutdown"
>>
>> Does not always behaves well, at least on demos VM where there is 3
>> instances
>>
>> So you get unstable situation and have to use "kill -9".
>>
>> Anyway some data were not well loaded. A loadAll fixed it.
>>
>> HTH
>>
>> Jacques
>>
>>
>>
>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>> Of course it should read: "I try to understand why trunk demo was broken
>>> while the trunk codebase seems to have no issues."
>>>
>>> Michael
>>>
>>>
>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>> To be more clear: I try to understand why trunk demo was broken while the
>>>> trunk demo seems to have no issues.
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>>> this morning.
>>>>>>
>>>>>> Jacques, can you please explain what happened?
>>>>>>
>>>>>>
>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>
>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>>>>> <[hidden email]> wrote:
>>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>>> locally
>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Rishi Solanki
>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>> Direct: +91-9893287847
>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>> www.hotwax.co
>>>>>>>>
>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>>>>> <[hidden email]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Devs,
>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>
>>>>>>>>> Received following exception, Any one facing the similar issue with
>>>>>>>>> demo
>>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>>> cause for
>>>>>>>>> the same.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Here is the error received on UI
>>>>>>>>>
>>>>>>>>> ========================================================
>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the error
>>>>>>>>> text:
>>>>>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>> startup
>>>>>>>>> failed: General error during class generation:
>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>> Unable to load class
>>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>> due to missing dependency
>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable
>>>>>>>>> to
>>>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>> due
>>>>>>>>> to missing dependency
>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>
>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>>>>>>>>
>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>>>> at
>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>>>>> at
>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>>>>> at
>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>>>>> at
>>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>>>> at
>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>>>>> at
>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>>>>> at
>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>>>>> at
>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>>>> at
>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>>>>> at
>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>>>>> at
>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>>>> at
>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>>>> at
>>>>>>>>>
>>>>>>>>> ========================================================
>>>>>>>>>
>>>>>>>>> Rishi Solanki
>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>> Direct: +91-9893287847
>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>> www.hotwax.co
>>>>>>>>>
>>>>>>
>>>>
>>>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

taher
Can we test with java -jar build/lib/ofbiz.jar --shutdown?

If it is stable with raw java, then we know it is a gradle setup issue. If
not, then we investigate the shutdown code in the start component.

On Mar 15, 2018 4:59 PM, "Jacques Le Roux" <[hidden email]>
wrote:

> In the case I faced this morning it hanged at 91%  I did not check more.
>
> This happens sometimes, not often, I'd say 15%  of the time, I don't see
> any reason
>
> Jacques
>
>
> Le 15/03/2018 à 14:52, Taher Alkhateeb a écrit :
>
>> Can you be specific about "does not always behave well"? Maybe we can
>> debug and fix the situation. What happens? Does it not shut down at
>> all? Does it hang? What happens exactly?
>>
>> On Thu, Mar 15, 2018 at 4:46 PM, Jacques Le Roux
>> <[hidden email]> wrote:
>>
>>> Because for testing changes for OFBIZ-9833 I had to make a slight change
>>> on
>>> the trunk demo instance and needed to restart but
>>>
>>> ./gradlew --no-daemon "ofbiz --shutdown"
>>>
>>> Does not always behaves well, at least on demos VM where there is 3
>>> instances
>>>
>>> So you get unstable situation and have to use "kill -9".
>>>
>>> Anyway some data were not well loaded. A loadAll fixed it.
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>>
>>>> Of course it should read: "I try to understand why trunk demo was broken
>>>> while the trunk codebase seems to have no issues."
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>>
>>>>> To be more clear: I try to understand why trunk demo was broken while
>>>>> the
>>>>> trunk demo seems to have no issues.
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>>
>>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>
>>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>>
>>>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>>>> this morning.
>>>>>>>
>>>>>>> Jacques, can you please explain what happened?
>>>>>>>
>>>>>>>
>>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>>
>>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could
>>>>>>>> it
>>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>>
>>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>>>>>> <[hidden email]> wrote:
>>>>>>>>
>>>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>>>> locally
>>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>>
>>>>>>>>> Best,
>>>>>>>>>
>>>>>>>>> Rishi Solanki
>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>> Direct: +91-9893287847
>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>> www.hotwax.co
>>>>>>>>>
>>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>>>>>> <[hidden email]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Devs,
>>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apach
>>>>>>>>>> e.org/webtools/control/
>>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>>
>>>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>>>> with
>>>>>>>>>> demo
>>>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>>>> cause for
>>>>>>>>>> the same.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Here is the error received on UI
>>>>>>>>>>
>>>>>>>>>> ========================================================
>>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>>>> error
>>>>>>>>>> text:
>>>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>>>> location
>>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>>> startup
>>>>>>>>>> failed: General error during class generation:
>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>> Unable to load class
>>>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>>> due to missing dependency
>>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>>>> Unable
>>>>>>>>>> to
>>>>>>>>>> load class org.apache.ofbiz.widget.render
>>>>>>>>>> er.macro.MacroFormRenderer
>>>>>>>>>> due
>>>>>>>>>> to missing dependency
>>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>>
>>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>>>> at
>>>>>>>>>>
>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>>>>>>>>> assNodes(CompilationUnit.java:1079)
>>>>>>>>>> at
>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>>>>>>>>> (CompilationUnit.java:603)
>>>>>>>>>> at
>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>>>>>>>>> ations(CompilationUnit.java:581)
>>>>>>>>>> at
>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>>>>>>>>> ionUnit.java:558)
>>>>>>>>>> at
>>>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>>>>>>>>> .java:298)
>>>>>>>>>> at
>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:268)
>>>>>>>>>> at
>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:254)
>>>>>>>>>> at
>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:211)
>>>>>>>>>> at
>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.
>>>>>>>>>> java:195)
>>>>>>>>>> at
>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>>>>>>>>> tion(GroovyUtil.java:159)
>>>>>>>>>> at
>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>>>>>>>>> oovyUtil.java:206)
>>>>>>>>>> at
>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>> il.java:342)
>>>>>>>>>> at
>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>> il.java:324)
>>>>>>>>>> at
>>>>>>>>>>
>>>>>>>>>> ========================================================
>>>>>>>>>>
>>>>>>>>>> Rishi Solanki
>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>> www.hotwax.co
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>
>>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
It's seems related to the VM config. I mean having trunk, stable on the same machine.

So if you want to do that you need to reproduce the config on a machine following the relevant parts in tools\demo-backup

At least having a trunk and stable instance running on the same machine

As it's random it will need several tries...

Will you handle it?

Jacques


Le 15/03/2018 à 15:11, Taher Alkhateeb a écrit :

> Can we test with java -jar build/lib/ofbiz.jar --shutdown?
>
> If it is stable with raw java, then we know it is a gradle setup issue. If
> not, then we investigate the shutdown code in the start component.
>
> On Mar 15, 2018 4:59 PM, "Jacques Le Roux" <[hidden email]>
> wrote:
>
>> In the case I faced this morning it hanged at 91%  I did not check more.
>>
>> This happens sometimes, not often, I'd say 15%  of the time, I don't see
>> any reason
>>
>> Jacques
>>
>>
>> Le 15/03/2018 à 14:52, Taher Alkhateeb a écrit :
>>
>>> Can you be specific about "does not always behave well"? Maybe we can
>>> debug and fix the situation. What happens? Does it not shut down at
>>> all? Does it hang? What happens exactly?
>>>
>>> On Thu, Mar 15, 2018 at 4:46 PM, Jacques Le Roux
>>> <[hidden email]> wrote:
>>>
>>>> Because for testing changes for OFBIZ-9833 I had to make a slight change
>>>> on
>>>> the trunk demo instance and needed to restart but
>>>>
>>>> ./gradlew --no-daemon "ofbiz --shutdown"
>>>>
>>>> Does not always behaves well, at least on demos VM where there is 3
>>>> instances
>>>>
>>>> So you get unstable situation and have to use "kill -9".
>>>>
>>>> Anyway some data were not well loaded. A loadAll fixed it.
>>>>
>>>> HTH
>>>>
>>>> Jacques
>>>>
>>>>
>>>>
>>>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>>>
>>>>> Of course it should read: "I try to understand why trunk demo was broken
>>>>> while the trunk codebase seems to have no issues."
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>>>
>>>>>> To be more clear: I try to understand why trunk demo was broken while
>>>>>> the
>>>>>> trunk demo seems to have no issues.
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>>
>>>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>>>
>>>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>>
>>>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>>>
>>>>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>>>>> this morning.
>>>>>>>>
>>>>>>>> Jacques, can you please explain what happened?
>>>>>>>>
>>>>>>>>
>>>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>>>
>>>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could
>>>>>>>>> it
>>>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>>>
>>>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>>>>>>> <[hidden email]> wrote:
>>>>>>>>>
>>>>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>>>>> locally
>>>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>>>
>>>>>>>>>> Best,
>>>>>>>>>>
>>>>>>>>>> Rishi Solanki
>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>> www.hotwax.co
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>>>>>>> <[hidden email]>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Devs,
>>>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apach
>>>>>>>>>>> e.org/webtools/control/
>>>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>>>
>>>>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>>>>> with
>>>>>>>>>>> demo
>>>>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>>>>> cause for
>>>>>>>>>>> the same.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks!
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Here is the error received on UI
>>>>>>>>>>>
>>>>>>>>>>> ========================================================
>>>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>>>>> error
>>>>>>>>>>> text:
>>>>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>>>>> location
>>>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>>>> startup
>>>>>>>>>>> failed: General error during class generation:
>>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>>> Unable to load class
>>>>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>>>> due to missing dependency
>>>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>>>>> Unable
>>>>>>>>>>> to
>>>>>>>>>>> load class org.apache.ofbiz.widget.render
>>>>>>>>>>> er.macro.MacroFormRenderer
>>>>>>>>>>> due
>>>>>>>>>>> to missing dependency
>>>>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>>>
>>>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>>>>> at
>>>>>>>>>>>
>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>>>>>>>>>> assNodes(CompilationUnit.java:1079)
>>>>>>>>>>> at
>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>>>>>>>>>> (CompilationUnit.java:603)
>>>>>>>>>>> at
>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>>>>>>>>>> ations(CompilationUnit.java:581)
>>>>>>>>>>> at
>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>>>>>>>>>> ionUnit.java:558)
>>>>>>>>>>> at
>>>>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>>>>>>>>>> .java:298)
>>>>>>>>>>> at
>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:268)
>>>>>>>>>>> at
>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:254)
>>>>>>>>>>> at
>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:211)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.
>>>>>>>>>>> java:195)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>>>>>>>>>> tion(GroovyUtil.java:159)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>>>>>>>>>> oovyUtil.java:206)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>> il.java:342)
>>>>>>>>>>> at
>>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>> il.java:324)
>>>>>>>>>>> at
>>>>>>>>>>>
>>>>>>>>>>> ========================================================
>>>>>>>>>>>
>>>>>>>>>>> Rishi Solanki
>>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>>> www.hotwax.co
>>>>>>>>>>>
>>>>>>>>>>>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Michael Brohl-3
In reply to this post by Jacques Le Roux
I still do not understand why you had to change the demo instance for
your developments. What was this change?

Michael


Am 15.03.18 um 14:46 schrieb Jacques Le Roux:

> Because for testing changes for OFBIZ-9833 I had to make a slight
> change on the trunk demo instance and needed to restart but
>
> ./gradlew --no-daemon "ofbiz --shutdown"
>
> Does not always behaves well, at least on demos VM where there is 3
> instances
>
> So you get unstable situation and have to use "kill -9".
>
> Anyway some data were not well loaded. A loadAll fixed it.
>
> HTH
>
> Jacques
>
>
> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>> Of course it should read: "I try to understand why trunk demo was
>> broken while the trunk codebase seems to have no issues."
>>
>> Michael
>>
>>
>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>> To be more clear: I try to understand why trunk demo was broken
>>> while the trunk demo seems to have no issues.
>>>
>>> Michael
>>>
>>>
>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>> Ho, it would be convoluted, please wait, WIP...
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>> Jacques did changes he already reverted in the mantime, see his
>>>>> post this morning.
>>>>>
>>>>> Jacques, can you please explain what happened?
>>>>>
>>>>>
>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side?
>>>>>> Could it
>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>
>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki
>>>>>> <[hidden email]> wrote:
>>>>>>> It seems something specific with deployment/data at demo
>>>>>>> instance, locally
>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Rishi Solanki
>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>> Direct: +91-9893287847
>>>>>>> http://www.hotwaxsystems.com
>>>>>>> www.hotwax.co
>>>>>>>
>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki
>>>>>>> <[hidden email]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Devs,
>>>>>>>> On browsing -
>>>>>>>> https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>
>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>> with demo
>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>> cause for
>>>>>>>> the same.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>>
>>>>>>>>
>>>>>>>> Here is the error received on UI
>>>>>>>>
>>>>>>>> ========================================================
>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>> error text:
>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>> location
>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>> startup
>>>>>>>> failed: General error during class generation:
>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>> Unable to load class
>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>> due to missing dependency
>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>> Unable to
>>>>>>>> load class
>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>>>>>> to missing dependency
>>>>>>>> org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>>>> at
>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>>>
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>>>>
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>>>>
>>>>>>>> at
>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>>>
>>>>>>>> at
>>>>>>>>
>>>>>>>> ========================================================
>>>>>>>>
>>>>>>>> Rishi Solanki
>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>> Direct: +91-9893287847
>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>> www.hotwax.co
>>>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
Before Jacopo asked to revert my work on OFBIZ-9833 I continued to work on a replacing solution.

This other solution still uses the same (slightly modified) externalServerLoginCheck preprocessor.
FYI this solution is still based on AutoUserLogin cookies, and uses now Ajax and CORS, instead of  ContextFilter.

So to test that on a server I need a small modification on the current code:

Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ExternalLoginKeysManager.java
===================================================================
--- framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ExternalLoginKeysManager.java (revision 1826773)
+++ framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ExternalLoginKeysManager.java (working copy)
@@ -182,18 +182,15 @@
          Delegator delegator = (Delegator) request.getAttribute("delegator");
          HttpSession session = request.getSession();

-        // The target server does not allow external login by default
-        boolean useExternalServer = EntityUtilProperties.getPropertyAsBoolean("security", "use-external-server", false);
-        String sourceWebappName = request.getParameter(SOURCE_SERVER_WEBAPP_NAME);
-        if (!useExternalServer || sourceWebappName == null) return "success"; // Nothing to do here
-
          try {
              String userLoginId = null;
              String authorizationHeader = request.getHeader("Authorization");
              if (authorizationHeader != null) {
                  Claims claims = returnsClaims(authorizationHeader);
                  userLoginId = getSourceUserLoginId(claims );
-                boolean jwtOK = checkJwt(authorizationHeader, userLoginId, getTargetServerUrl(request), UtilHttp.getApplicationName(request));
+                boolean jwtOK = checkJwt(authorizationHeader, userLoginId, "","");
                  if (!jwtOK) {
                      // Something unexpected happened here
                      Debug.logWarning("*** There was a problem with the JWT token, not signin in the user login " + userLoginId, module);

I did this modification on the trunk demo. I have no other solution to test my work.

Also I had to request the installation of HTTPS headers handling by infra: https://issues.apache.org/jira/browse/INFRA-16189

Jacques


Le 15/03/2018 à 17:37, Michael Brohl a écrit :

> I still do not understand why you had to change the demo instance for your developments. What was this change?
>
> Michael
>
>
> Am 15.03.18 um 14:46 schrieb Jacques Le Roux:
>> Because for testing changes for OFBIZ-9833 I had to make a slight change on the trunk demo instance and needed to restart but
>>
>> ./gradlew --no-daemon "ofbiz --shutdown"
>>
>> Does not always behaves well, at least on demos VM where there is 3 instances
>>
>> So you get unstable situation and have to use "kill -9".
>>
>> Anyway some data were not well loaded. A loadAll fixed it.
>>
>> HTH
>>
>> Jacques
>>
>>
>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>> Of course it should read: "I try to understand why trunk demo was broken while the trunk codebase seems to have no issues."
>>>
>>> Michael
>>>
>>>
>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>> To be more clear: I try to understand why trunk demo was broken while the trunk demo seems to have no issues.
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>> Jacques did changes he already reverted in the mantime, see his post this morning.
>>>>>>
>>>>>> Jacques, can you please explain what happened?
>>>>>>
>>>>>>
>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could it
>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>
>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <[hidden email]> wrote:
>>>>>>>> It seems something specific with deployment/data at demo instance, locally
>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>
>>>>>>>> Best,
>>>>>>>>
>>>>>>>> Rishi Solanki
>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>> Direct: +91-9893287847
>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>> www.hotwax.co
>>>>>>>>
>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <[hidden email]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Devs,
>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apache.org/webtools/control/
>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>
>>>>>>>>> Received following exception, Any one facing the similar issue with demo
>>>>>>>>> please share. I'm looking into it and get back if find the root cause for
>>>>>>>>> the same.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Here is the error received on UI
>>>>>>>>>
>>>>>>>>> ========================================================
>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the error text:
>>>>>>>>> java.lang.IllegalArgumentException: Error running script at location
>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>>>>>>>>> failed: General error during class generation: java.lang.NoClassDefFoundError:
>>>>>>>>> Unable to load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>> due to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to
>>>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer due
>>>>>>>>> to missing dependency org/apache/ofbiz/widget/model/ModelFormField$SubHyperlink
>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101) at
>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1079)
>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>>>>>>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:211)
>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.java:195)
>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLocation(GroovyUtil.java:159)
>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:206)
>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342)
>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324)
>>>>>>>>> at
>>>>>>>>>
>>>>>>>>> ========================================================
>>>>>>>>>
>>>>>>>>> Rishi Solanki
>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>> Direct: +91-9893287847
>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>> www.hotwax.co
>>>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Scott Gray-3
I guess what Michael is getting at, is that the demo server is for demos,
it's not intended for use as a development sandbox.

As far as I can tell you don't *need* to be using the demo servers for
this, it's just convenient for you.  But the problem is, if you're
modifying the code on the demos and someone reports a problem, the rest of
us will go looking for a problem in the branches that doesn't exist.

Long story short, probably not an appropriate use of the demo instances.

Regards
Scott

On 16 March 2018 at 08:34, Jacques Le Roux <[hidden email]>
wrote:

> Before Jacopo asked to revert my work on OFBIZ-9833 I continued to work on
> a replacing solution.
>
> This other solution still uses the same (slightly modified)
> externalServerLoginCheck preprocessor.
> FYI this solution is still based on AutoUserLogin cookies, and uses now
> Ajax and CORS, instead of  ContextFilter.
>
> So to test that on a server I need a small modification on the current
> code:
>
> Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
> ol/ExternalLoginKeysManager.java
> ===================================================================
> --- framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
> ol/ExternalLoginKeysManager.java (revision 1826773)
> +++ framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
> ol/ExternalLoginKeysManager.java (working copy)
> @@ -182,18 +182,15 @@
>          Delegator delegator = (Delegator) request.getAttribute("delegato
> r");
>          HttpSession session = request.getSession();
>
> -        // The target server does not allow external login by default
> -        boolean useExternalServer = EntityUtilProperties.getPropertyAsBoolean("security",
> "use-external-server", false);
> -        String sourceWebappName = request.getParameter(SOURCE_SE
> RVER_WEBAPP_NAME);
> -        if (!useExternalServer || sourceWebappName == null) return
> "success"; // Nothing to do here
> -
>          try {
>              String userLoginId = null;
>              String authorizationHeader = request.getHeader("Authorizati
> on");
>              if (authorizationHeader != null) {
>                  Claims claims = returnsClaims(authorizationHeader);
>                  userLoginId = getSourceUserLoginId(claims );
> -                boolean jwtOK = checkJwt(authorizationHeader,
> userLoginId, getTargetServerUrl(request), UtilHttp.getApplicationName(re
> quest));
> +                boolean jwtOK = checkJwt(authorizationHeader,
> userLoginId, "","");
>                  if (!jwtOK) {
>                      // Something unexpected happened here
>                      Debug.logWarning("*** There was a problem with the
> JWT token, not signin in the user login " + userLoginId, module);
>
> I did this modification on the trunk demo. I have no other solution to
> test my work.
>
> Also I had to request the installation of HTTPS headers handling by infra:
> https://issues.apache.org/jira/browse/INFRA-16189
>
> Jacques
>
>
>
> Le 15/03/2018 à 17:37, Michael Brohl a écrit :
>
>> I still do not understand why you had to change the demo instance for
>> your developments. What was this change?
>>
>> Michael
>>
>>
>> Am 15.03.18 um 14:46 schrieb Jacques Le Roux:
>>
>>> Because for testing changes for OFBIZ-9833 I had to make a slight change
>>> on the trunk demo instance and needed to restart but
>>>
>>> ./gradlew --no-daemon "ofbiz --shutdown"
>>>
>>> Does not always behaves well, at least on demos VM where there is 3
>>> instances
>>>
>>> So you get unstable situation and have to use "kill -9".
>>>
>>> Anyway some data were not well loaded. A loadAll fixed it.
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>>
>>>> Of course it should read: "I try to understand why trunk demo was
>>>> broken while the trunk codebase seems to have no issues."
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>>
>>>>> To be more clear: I try to understand why trunk demo was broken while
>>>>> the trunk demo seems to have no issues.
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>>
>>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>
>>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>>
>>>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>>>> this morning.
>>>>>>>
>>>>>>> Jacques, can you please explain what happened?
>>>>>>>
>>>>>>>
>>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>>
>>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could
>>>>>>>> it
>>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>>
>>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <
>>>>>>>> [hidden email]> wrote:
>>>>>>>>
>>>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>>>> locally
>>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>>
>>>>>>>>> Best,
>>>>>>>>>
>>>>>>>>> Rishi Solanki
>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>> Direct: +91-9893287847
>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>> www.hotwax.co
>>>>>>>>>
>>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <
>>>>>>>>> [hidden email]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Devs,
>>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apach
>>>>>>>>>> e.org/webtools/control/
>>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>>
>>>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>>>> with demo
>>>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>>>> cause for
>>>>>>>>>> the same.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Here is the error received on UI
>>>>>>>>>>
>>>>>>>>>> ========================================================
>>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>>>> error text:
>>>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>>>> location
>>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>>> startup
>>>>>>>>>> failed: General error during class generation:
>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>> Unable to load class org.apache.ofbiz.widget.render
>>>>>>>>>> er.macro.MacroFormRenderer
>>>>>>>>>> due to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>>>> Unable to
>>>>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>>> due
>>>>>>>>>> to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>>>> at
>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>>>>>>>>> assNodes(CompilationUnit.java:1079)
>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>>>>>>>>> (CompilationUnit.java:603)
>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>>>>>>>>> ations(CompilationUnit.java:581)
>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>>>>>>>>> ionUnit.java:558)
>>>>>>>>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>>>>>>>>> .java:298)
>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:268)
>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:254)
>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>> ava:211)
>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.
>>>>>>>>>> java:195)
>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>>>>>>>>> tion(GroovyUtil.java:159)
>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>>>>>>>>> oovyUtil.java:206)
>>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>> il.java:342)
>>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>> il.java:324)
>>>>>>>>>> at
>>>>>>>>>>
>>>>>>>>>> ========================================================
>>>>>>>>>>
>>>>>>>>>> Rishi Solanki
>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>> www.hotwax.co
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Jacques Le Roux
Administrator
I'm sorry, this is a temporary poor man solution. I have no other domain available.

Jacques


Le 16/03/2018 à 03:08, Scott Gray a écrit :

> I guess what Michael is getting at, is that the demo server is for demos,
> it's not intended for use as a development sandbox.
>
> As far as I can tell you don't *need* to be using the demo servers for
> this, it's just convenient for you.  But the problem is, if you're
> modifying the code on the demos and someone reports a problem, the rest of
> us will go looking for a problem in the branches that doesn't exist.
>
> Long story short, probably not an appropriate use of the demo instances.
>
> Regards
> Scott
>
> On 16 March 2018 at 08:34, Jacques Le Roux <[hidden email]>
> wrote:
>
>> Before Jacopo asked to revert my work on OFBIZ-9833 I continued to work on
>> a replacing solution.
>>
>> This other solution still uses the same (slightly modified)
>> externalServerLoginCheck preprocessor.
>> FYI this solution is still based on AutoUserLogin cookies, and uses now
>> Ajax and CORS, instead of  ContextFilter.
>>
>> So to test that on a server I need a small modification on the current
>> code:
>>
>> Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>> ol/ExternalLoginKeysManager.java
>> ===================================================================
>> --- framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>> ol/ExternalLoginKeysManager.java (revision 1826773)
>> +++ framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>> ol/ExternalLoginKeysManager.java (working copy)
>> @@ -182,18 +182,15 @@
>>           Delegator delegator = (Delegator) request.getAttribute("delegato
>> r");
>>           HttpSession session = request.getSession();
>>
>> -        // The target server does not allow external login by default
>> -        boolean useExternalServer = EntityUtilProperties.getPropertyAsBoolean("security",
>> "use-external-server", false);
>> -        String sourceWebappName = request.getParameter(SOURCE_SE
>> RVER_WEBAPP_NAME);
>> -        if (!useExternalServer || sourceWebappName == null) return
>> "success"; // Nothing to do here
>> -
>>           try {
>>               String userLoginId = null;
>>               String authorizationHeader = request.getHeader("Authorizati
>> on");
>>               if (authorizationHeader != null) {
>>                   Claims claims = returnsClaims(authorizationHeader);
>>                   userLoginId = getSourceUserLoginId(claims );
>> -                boolean jwtOK = checkJwt(authorizationHeader,
>> userLoginId, getTargetServerUrl(request), UtilHttp.getApplicationName(re
>> quest));
>> +                boolean jwtOK = checkJwt(authorizationHeader,
>> userLoginId, "","");
>>                   if (!jwtOK) {
>>                       // Something unexpected happened here
>>                       Debug.logWarning("*** There was a problem with the
>> JWT token, not signin in the user login " + userLoginId, module);
>>
>> I did this modification on the trunk demo. I have no other solution to
>> test my work.
>>
>> Also I had to request the installation of HTTPS headers handling by infra:
>> https://issues.apache.org/jira/browse/INFRA-16189
>>
>> Jacques
>>
>>
>>
>> Le 15/03/2018 à 17:37, Michael Brohl a écrit :
>>
>>> I still do not understand why you had to change the demo instance for
>>> your developments. What was this change?
>>>
>>> Michael
>>>
>>>
>>> Am 15.03.18 um 14:46 schrieb Jacques Le Roux:
>>>
>>>> Because for testing changes for OFBIZ-9833 I had to make a slight change
>>>> on the trunk demo instance and needed to restart but
>>>>
>>>> ./gradlew --no-daemon "ofbiz --shutdown"
>>>>
>>>> Does not always behaves well, at least on demos VM where there is 3
>>>> instances
>>>>
>>>> So you get unstable situation and have to use "kill -9".
>>>>
>>>> Anyway some data were not well loaded. A loadAll fixed it.
>>>>
>>>> HTH
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>>>
>>>>> Of course it should read: "I try to understand why trunk demo was
>>>>> broken while the trunk codebase seems to have no issues."
>>>>>
>>>>> Michael
>>>>>
>>>>>
>>>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>>>
>>>>>> To be more clear: I try to understand why trunk demo was broken while
>>>>>> the trunk demo seems to have no issues.
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>>
>>>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>>>
>>>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>>
>>>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>>>
>>>>>>>> Jacques did changes he already reverted in the mantime, see his post
>>>>>>>> this morning.
>>>>>>>>
>>>>>>>> Jacques, can you please explain what happened?
>>>>>>>>
>>>>>>>>
>>>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>>>
>>>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side? Could
>>>>>>>>> it
>>>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>>>
>>>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <
>>>>>>>>> [hidden email]> wrote:
>>>>>>>>>
>>>>>>>>>> It seems something specific with deployment/data at demo instance,
>>>>>>>>>> locally
>>>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>>>
>>>>>>>>>> Best,
>>>>>>>>>>
>>>>>>>>>> Rishi Solanki
>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>> www.hotwax.co
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <
>>>>>>>>>> [hidden email]>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Devs,
>>>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apach
>>>>>>>>>>> e.org/webtools/control/
>>>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>>>
>>>>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>>>>> with demo
>>>>>>>>>>> please share. I'm looking into it and get back if find the root
>>>>>>>>>>> cause for
>>>>>>>>>>> the same.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks!
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Here is the error received on UI
>>>>>>>>>>>
>>>>>>>>>>> ========================================================
>>>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>>>>> error text:
>>>>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>>>>> location
>>>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>>>> startup
>>>>>>>>>>> failed: General error during class generation:
>>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>>> Unable to load class org.apache.ofbiz.widget.render
>>>>>>>>>>> er.macro.MacroFormRenderer
>>>>>>>>>>> due to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>>>>> Unable to
>>>>>>>>>>> load class org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>>>> due
>>>>>>>>>>> to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>>>>> at
>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>>>>>>>>>> assNodes(CompilationUnit.java:1079)
>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>>>>>>>>>> (CompilationUnit.java:603)
>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>>>>>>>>>> ations(CompilationUnit.java:581)
>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>>>>>>>>>> ionUnit.java:558)
>>>>>>>>>>> at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>>>>>>>>>> .java:298)
>>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:268)
>>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:254)
>>>>>>>>>>> at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>> ava:211)
>>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.
>>>>>>>>>>> java:195)
>>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>>>>>>>>>> tion(GroovyUtil.java:159)
>>>>>>>>>>> at org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>>>>>>>>>> oovyUtil.java:206)
>>>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>> il.java:342)
>>>>>>>>>>> at org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>> il.java:324)
>>>>>>>>>>> at
>>>>>>>>>>>
>>>>>>>>>>> ========================================================
>>>>>>>>>>>
>>>>>>>>>>> Rishi Solanki
>>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>>> www.hotwax.co
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>
>>>

Reply | Threaded
Open this post in threaded view
|

Re: Demo Trunk Break

Nicolas Malin-2
Hello,

Jacques, if you need some testing server for you dev, don't hesitate to
ask us. I'm sure we can use some time to deploy different OFBiz instance
on the nereide farm.

This proposal can be apply to all developer that works on an ofbiz issue
who need strong architecture. If we can help to move forward, it's will
be with great pleasure :)

Nicolas


On 16/03/2018 07:28, Jacques Le Roux wrote:

> I'm sorry, this is a temporary poor man solution. I have no other
> domain available.
>
> Jacques
>
>
> Le 16/03/2018 à 03:08, Scott Gray a écrit :
>> I guess what Michael is getting at, is that the demo server is for
>> demos,
>> it's not intended for use as a development sandbox.
>>
>> As far as I can tell you don't *need* to be using the demo servers for
>> this, it's just convenient for you.  But the problem is, if you're
>> modifying the code on the demos and someone reports a problem, the
>> rest of
>> us will go looking for a problem in the branches that doesn't exist.
>>
>> Long story short, probably not an appropriate use of the demo instances.
>>
>> Regards
>> Scott
>>
>> On 16 March 2018 at 08:34, Jacques Le Roux
>> <[hidden email]>
>> wrote:
>>
>>> Before Jacopo asked to revert my work on OFBIZ-9833 I continued to
>>> work on
>>> a replacing solution.
>>>
>>> This other solution still uses the same (slightly modified)
>>> externalServerLoginCheck preprocessor.
>>> FYI this solution is still based on AutoUserLogin cookies, and uses now
>>> Ajax and CORS, instead of  ContextFilter.
>>>
>>> So to test that on a server I need a small modification on the current
>>> code:
>>>
>>> Index: framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>>> ol/ExternalLoginKeysManager.java
>>> ===================================================================
>>> --- framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>>> ol/ExternalLoginKeysManager.java (revision 1826773)
>>> +++ framework/webapp/src/main/java/org/apache/ofbiz/webapp/contr
>>> ol/ExternalLoginKeysManager.java (working copy)
>>> @@ -182,18 +182,15 @@
>>>           Delegator delegator = (Delegator)
>>> request.getAttribute("delegato
>>> r");
>>>           HttpSession session = request.getSession();
>>>
>>> -        // The target server does not allow external login by default
>>> -        boolean useExternalServer =
>>> EntityUtilProperties.getPropertyAsBoolean("security",
>>> "use-external-server", false);
>>> -        String sourceWebappName = request.getParameter(SOURCE_SE
>>> RVER_WEBAPP_NAME);
>>> -        if (!useExternalServer || sourceWebappName == null) return
>>> "success"; // Nothing to do here
>>> -
>>>           try {
>>>               String userLoginId = null;
>>>               String authorizationHeader =
>>> request.getHeader("Authorizati
>>> on");
>>>               if (authorizationHeader != null) {
>>>                   Claims claims = returnsClaims(authorizationHeader);
>>>                   userLoginId = getSourceUserLoginId(claims );
>>> -                boolean jwtOK = checkJwt(authorizationHeader,
>>> userLoginId, getTargetServerUrl(request),
>>> UtilHttp.getApplicationName(re
>>> quest));
>>> +                boolean jwtOK = checkJwt(authorizationHeader,
>>> userLoginId, "","");
>>>                   if (!jwtOK) {
>>>                       // Something unexpected happened here
>>>                       Debug.logWarning("*** There was a problem with
>>> the
>>> JWT token, not signin in the user login " + userLoginId, module);
>>>
>>> I did this modification on the trunk demo. I have no other solution to
>>> test my work.
>>>
>>> Also I had to request the installation of HTTPS headers handling by
>>> infra:
>>> https://issues.apache.org/jira/browse/INFRA-16189
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 15/03/2018 à 17:37, Michael Brohl a écrit :
>>>
>>>> I still do not understand why you had to change the demo instance for
>>>> your developments. What was this change?
>>>>
>>>> Michael
>>>>
>>>>
>>>> Am 15.03.18 um 14:46 schrieb Jacques Le Roux:
>>>>
>>>>> Because for testing changes for OFBIZ-9833 I had to make a slight
>>>>> change
>>>>> on the trunk demo instance and needed to restart but
>>>>>
>>>>> ./gradlew --no-daemon "ofbiz --shutdown"
>>>>>
>>>>> Does not always behaves well, at least on demos VM where there is 3
>>>>> instances
>>>>>
>>>>> So you get unstable situation and have to use "kill -9".
>>>>>
>>>>> Anyway some data were not well loaded. A loadAll fixed it.
>>>>>
>>>>> HTH
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> Le 15/03/2018 à 13:56, Michael Brohl a écrit :
>>>>>
>>>>>> Of course it should read: "I try to understand why trunk demo was
>>>>>> broken while the trunk codebase seems to have no issues."
>>>>>>
>>>>>> Michael
>>>>>>
>>>>>>
>>>>>> Am 15.03.18 um 13:51 schrieb Michael Brohl:
>>>>>>
>>>>>>> To be more clear: I try to understand why trunk demo was broken
>>>>>>> while
>>>>>>> the trunk demo seems to have no issues.
>>>>>>>
>>>>>>> Michael
>>>>>>>
>>>>>>>
>>>>>>> Am 15.03.18 um 13:36 schrieb Jacques Le Roux:
>>>>>>>
>>>>>>>> Ho, it would be convoluted, please wait, WIP...
>>>>>>>>
>>>>>>>> Jacques
>>>>>>>>
>>>>>>>>
>>>>>>>> Le 15/03/2018 à 12:37, Michael Brohl a écrit :
>>>>>>>>
>>>>>>>>> Jacques did changes he already reverted in the mantime, see
>>>>>>>>> his post
>>>>>>>>> this morning.
>>>>>>>>>
>>>>>>>>> Jacques, can you please explain what happened?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Am 15.03.18 um 12:24 schrieb Taher Alkhateeb:
>>>>>>>>>
>>>>>>>>>> Hi Rishi, I'm not getting any errors in the demo on my side?
>>>>>>>>>> Could
>>>>>>>>>> it
>>>>>>>>>> be a web browser cache thing? I always fall in that trap myself.
>>>>>>>>>>
>>>>>>>>>> On Thu, Mar 15, 2018 at 10:59 AM, Rishi Solanki <
>>>>>>>>>> [hidden email]> wrote:
>>>>>>>>>>
>>>>>>>>>>> It seems something specific with deployment/data at demo
>>>>>>>>>>> instance,
>>>>>>>>>>> locally
>>>>>>>>>>> It is working. No issue with latest trunk fresh data.
>>>>>>>>>>>
>>>>>>>>>>> Best,
>>>>>>>>>>>
>>>>>>>>>>> Rishi Solanki
>>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>>> www.hotwax.co
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Mar 15, 2018 at 1:19 PM, Rishi Solanki <
>>>>>>>>>>> [hidden email]>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Devs,
>>>>>>>>>>>> On browsing - https://demo-trunk.ofbiz.apach
>>>>>>>>>>>> e.org/webtools/control/
>>>>>>>>>>>> FindGeneric?entityName=Party
>>>>>>>>>>>>
>>>>>>>>>>>> Received following exception, Any one facing the similar issue
>>>>>>>>>>>> with demo
>>>>>>>>>>>> please share. I'm looking into it and get back if find the
>>>>>>>>>>>> root
>>>>>>>>>>>> cause for
>>>>>>>>>>>> the same.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Here is the error received on UI
>>>>>>>>>>>>
>>>>>>>>>>>> ========================================================
>>>>>>>>>>>> ERROR rendering error page [/error/error.jsp], but here is the
>>>>>>>>>>>> error text:
>>>>>>>>>>>> java.lang.IllegalArgumentException: Error running script at
>>>>>>>>>>>> location
>>>>>>>>>>>> [component://webtools/groovyScripts/entity/FindGeneric.groovy]:
>>>>>>>>>>>>
>>>>>>>>>>>> org.codehaus.groovy.control.MultipleCompilationErrorsException:
>>>>>>>>>>>>
>>>>>>>>>>>> startup
>>>>>>>>>>>> failed: General error during class generation:
>>>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>>>> Unable to load class org.apache.ofbiz.widget.render
>>>>>>>>>>>> er.macro.MacroFormRenderer
>>>>>>>>>>>> due to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>>>> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
>>>>>>>>>>>> Unable to
>>>>>>>>>>>> load class
>>>>>>>>>>>> org.apache.ofbiz.widget.renderer.macro.MacroFormRenderer
>>>>>>>>>>>> due
>>>>>>>>>>>> to missing dependency org/apache/ofbiz/widget/model/
>>>>>>>>>>>> ModelFormField$SubHyperlink
>>>>>>>>>>>> at org.codehaus.groovy.control.CompilationUnit.
>>>>>>>>>>>> convertUncaughtExceptionToCompilationError(CompilationUnit.java:1101)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryCl
>>>>>>>>>>>> assNodes(CompilationUnit.java:1079)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation
>>>>>>>>>>>> (CompilationUnit.java:603)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.processPhaseOper
>>>>>>>>>>>> ations(CompilationUnit.java:581)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.codehaus.groovy.control.CompilationUnit.compile(Compilat
>>>>>>>>>>>> ionUnit.java:558)
>>>>>>>>>>>> at
>>>>>>>>>>>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader
>>>>>>>>>>>> .java:298)
>>>>>>>>>>>> at
>>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>>> ava:268)
>>>>>>>>>>>> at
>>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>>> ava:254)
>>>>>>>>>>>> at
>>>>>>>>>>>> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.j
>>>>>>>>>>>> ava:211)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.parseClass(GroovyUtil.
>>>>>>>>>>>> java:195)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.getScriptClassFromLoca
>>>>>>>>>>>> tion(GroovyUtil.java:159)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.ofbiz.base.util.GroovyUtil.runScriptAtLocation(Gr
>>>>>>>>>>>> oovyUtil.java:206)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>>> il.java:342)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.ofbiz.base.util.ScriptUtil.executeScript(ScriptUt
>>>>>>>>>>>> il.java:324)
>>>>>>>>>>>> at
>>>>>>>>>>>>
>>>>>>>>>>>> ========================================================
>>>>>>>>>>>>
>>>>>>>>>>>> Rishi Solanki
>>>>>>>>>>>> Sr Manager, Enterprise Software Development
>>>>>>>>>>>> HotWax Systems Pvt. Ltd.
>>>>>>>>>>>> Direct: +91-9893287847
>>>>>>>>>>>> http://www.hotwaxsystems.com
>>>>>>>>>>>> www.hotwax.co
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>
>
>

12