Re: AW: Eclipse debug

2021-07-27 Thread Girish Vasmatkar
Hi Jacques

Do you mean to not have a section for "Remote Debugging with Eclipse" and
just update the details on how to debug OFBiz inside Eclipse?

Best,
Girish

On Tue, Jul 27, 2021 at 3:54 PM Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Hi Guys,
>
> In relation with https://markmail.org/message/had7iszdr7ixtyu3, I propose
> to replace "Step 2: Connect to OFBiz with Eclipse as a Debugger" at
>
>
> https://cwiki.apache.org/confluence/display/OFBIZ/Running%20and%20Debugging%20OFBiz%20in%20Eclipse
>
> by the needed steps (including importing only the main projects, ie
> ofbiz-framework and ofbiz-plugins[1]) to be able to debug OFBiz inside
> Eclipse.
>
> Actually we should rather clearly separate the 2 steps options. Seems that
> Steven got confused because of a possible relation between the 2 steps.
>
> Could one of you, Ingo or Girish, write or guide us?
>
> TIA
>
> [1] I tried and after installing Buildship I got submerged by
> (sub-?)projects corresponding to all the components. Actually I'm used to
> use only Step 1.
>
> Jacques
>
>
> Le 07/09/2020 à 11:44, Ingo Wolfmayr a écrit :
> > Hi Girish,
> >
> > I missed you answer with the JVM arguments. It works now. Thanks a
> lot
> >
> > Best regards,
> > Ingo
> >
> > -Ursprüngliche Nachricht-
> > Von: Girish Vasmatkar 
> > Gesendet: Montag, 7. September 2020 11:19
> > An: ofbizuser 
> > Betreff: Re: Eclipse debug
> >
> > The buildship plug-in is not recognizing --debug-jvm argument. If you
> use simple --debug then it correctly launches gradle with debug enabled.
> > Ideally it should recognize it a valid argument and instruct gradle
> accordingly.
> >
> > However, as I mentioned earlier, you can bypass it and provide the
> details to gradle yourself by providing JVM arguments directly and it works
> fine.
> > You can have two separate Run configurations for normal ofbiz execution
> and debug execution. In the second configuration, you can specify JVM
> arguments and it will work fine.
> >
> > Best,
> > Girish
> >
> >
> >
> >
> > On Mon, Sep 7, 2020 at 12:14 PM Ingo Wolfmayr 
> > wrote:
> >
> >> Hi Girish,
> >>
> >> my question was more in eclipse user direction: I use the buildship
> >> plugin for gradle and the most current version of eclipse.
> >>
> >> In previous ofbiz versions I opened the "run configuration", added a
> >> gradle task and added "ofbizDebug" as task. Then I created a debug
> >> task for the debug task. Worked for years.
> >> With the new version I would have to add "ofbiz" as task and
> "--debug-jvm"
> >> as argument. The only result I get is: Unrecognized option:
> >> --debug-jvm Maybe the plugin cannot handle these kind of arguments?
> >>
> >> As I asume I am not the only one using Eclipse so I was hoping someone
> >> solved that already :)
> >>
> >> Best regards
> >> Ingo
> >>
> >>
> >> -Ursprüngliche Nachricht-
> >> Von: Girish Vasmatkar 
> >> Gesendet: Freitag, 4. September 2020 12:45
> >> An: ofbizuser 
> >> Betreff: Re: Eclipse debug
> >>
> >> Hi Jacques -
> >>
> >> The documentation seems outdated as it still references an old custom
> >> ofbiz debug task - "ofbizDebug". It was removed from build.gradle
> >> since gradle supported the command line argument "--debug-jvm" that
> >> did exactly what "ofbizDebug" did.
> >> I'll update the page if everybody agrees.
> >>
> >> Best,
> >> Girish
> >>
> >>
> >>
> >> On Fri, Sep 4, 2020 at 3:27 PM Jacques Le Roux <
> >> jacques.le.r...@les7arts.com>
> >> wrote:
> >>
> >>> Thanks Girish,
> >>>
> >>> That's indeed how most of us do it.
> >>>
> >>> BTW Ingo, we have some documentation in wiki:
> >>>
> >>> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugg
> >>> in
> >>> g+OFBiz+in+Eclipse
> >>>
> >>> Please let me know if it's still up to date (I think so) and useful
> >>>
> >>> Thanks
> >>>
> >>> Jacques
> >>>
> >>> Le 04/09/2020 à 09:37, Girish Vasmatkar a écrit :
> >>>> Hi Ingo
> >>>>
> >>>> I see what you're trying to do. Apparently eclipse

Re: Debugging OFBiz

2021-07-26 Thread Girish Vasmatkar
In case you're unable to start the JVM in debug mode, you need to pass "
--debug-jvm" to the gradle command.

Set up a remote debugger in an IDE of your choice and start it by
specifying the remote debug port that it needs to listen to. You should
then be able to debug ofbiz without issues.

Best,
Girish

On Mon, Jul 26, 2021 at 6:34 PM Gary Lawrance  wrote:

> I have Java 8 Build 201, I can get OFBiz to start without debugging. Just
> cannot connect to it for debugging.
>
> On Sat, Jul 24, 2021 at 11:37 AM Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
> > It doesn't look like you're using a compatible version of Java. Are you
> on
> > Java 9 ? You need to have java 8 installed.
> >
> > Best,
> > Girish
> >
> > On Sat, Jul 24, 2021 at 2:58 AM Steven Payne 
> > wrote:
> >
> > > Hi All,
> > >
> > > I am trying to setup OFBiz for debugging.
> > >
> > > I have tried following the instructions here:
> > >
> >
> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
> > >
> > > I imported the project into eclipse and I can get it to start, but it
> > > stops right after loading a container.
> > >
> > > Does anyone know what I am doing wrong? I have attached the console
> > output
> > > below. My hunch is it has something to do with Classpath (but I am not
> a
> > > Java programmer).
> > >
> > > Config.java using configuration file start.properties
> > > Set OFBIZ_HOME to - C:/ofbiz/apache-ofbiz-17.12.07
> > > Admin socket configured on - /127.0.0.1:10523
> > > 2021-07-23 14:13:16,608 |main |ContainerLoader
> > >|I| [Startup] Loading containers...
> > > Exception in thread "main" java.lang.ExceptionInInitializerError
> > > at
> > > com.thoughtworks.xstream.XStream.setupConverters(XStream.java:989)
> > > at com.thoughtworks.xstream.XStream.(XStream.java:592)
> > > at com.thoughtworks.xstream.XStream.(XStream.java:514)
> > > at com.thoughtworks.xstream.XStream.(XStream.java:483)
> > > at com.thoughtworks.xstream.XStream.(XStream.java:429)
> > > at com.thoughtworks.xstream.XStream.(XStream.java:368)
> > > at
> > > org.apache.ofbiz.base.util.UtilXml.createXStream(UtilXml.java:93)
> > > at org.apache.ofbiz.base.util.UtilXml.(UtilXml.java:89)
> > > at
> > >
> >
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurationPropsFromXml(ContainerConfig.java:147)
> > > at
> > >
> >
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:79)
> > > at
> > >
> >
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:72)
> > > at
> > >
> >
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:78)
> > > at
> > >
> >
> org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:63)
> > > at
> > >
> >
> org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:218)
> > > at
> > >
> >
> org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71)
> > > at org.apache.ofbiz.base.start.Start.main(Start.java:85)
> > > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to
> make
> > > field private final java.util.Comparator java.util.TreeMap.comparator
> > > accessible: module java.base does not "opens java.util" to unnamed
> module
> > > @4fbe37eb
> > > at
> > >
> >
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
> > > at
> > >
> >
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
> > > at
> > > java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
> > > at
> > java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
> > > at
> > com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
> > > at
> > >
> >
> com.thoughtworks.xstream.converters.collections.TreeMapConverter.(TreeMapConverter.java:50)
> > > ... 16 more
> > >
> > >
> >
>


Re: Debugging OFBiz

2021-07-24 Thread Girish Vasmatkar
It doesn't look like you're using a compatible version of Java. Are you on
Java 9 ? You need to have java 8 installed.

Best,
Girish

On Sat, Jul 24, 2021 at 2:58 AM Steven Payne 
wrote:

> Hi All,
>
> I am trying to setup OFBiz for debugging.
>
> I have tried following the instructions here:
> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
>
> I imported the project into eclipse and I can get it to start, but it
> stops right after loading a container.
>
> Does anyone know what I am doing wrong? I have attached the console output
> below. My hunch is it has something to do with Classpath (but I am not a
> Java programmer).
>
> Config.java using configuration file start.properties
> Set OFBIZ_HOME to - C:/ofbiz/apache-ofbiz-17.12.07
> Admin socket configured on - /127.0.0.1:10523
> 2021-07-23 14:13:16,608 |main |ContainerLoader
>|I| [Startup] Loading containers...
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> com.thoughtworks.xstream.XStream.setupConverters(XStream.java:989)
> at com.thoughtworks.xstream.XStream.(XStream.java:592)
> at com.thoughtworks.xstream.XStream.(XStream.java:514)
> at com.thoughtworks.xstream.XStream.(XStream.java:483)
> at com.thoughtworks.xstream.XStream.(XStream.java:429)
> at com.thoughtworks.xstream.XStream.(XStream.java:368)
> at
> org.apache.ofbiz.base.util.UtilXml.createXStream(UtilXml.java:93)
> at org.apache.ofbiz.base.util.UtilXml.(UtilXml.java:89)
> at
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurationPropsFromXml(ContainerConfig.java:147)
> at
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:79)
> at
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:72)
> at
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:78)
> at
> org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:63)
> at
> org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:218)
> at
> org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71)
> at org.apache.ofbiz.base.start.Start.main(Start.java:85)
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> field private final java.util.Comparator java.util.TreeMap.comparator
> accessible: module java.base does not "opens java.util" to unnamed module
> @4fbe37eb
> at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
> at
> java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
> at
> java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
> at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
> at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
> at
> com.thoughtworks.xstream.converters.collections.TreeMapConverter.(TreeMapConverter.java:50)
> ... 16 more
>
>


Re: BUILD FAILED

2021-05-07 Thread Girish Vasmatkar
"gradle gradlew'" does nothing.

Please use *gradlew* instead of *gradle*.

*gradle* command will use the version that is found on your PATH and
chances of mismatch exists.

Best Regards,
Girish

On Fri, May 7, 2021 at 1:41 PM Ingo Wolfmayr 
wrote:

> Hi James,
>
> I asume your gradle version is not up to date. Can you go into your Ofbiz
> installation directory look for the hidden .gradle folder and let us know
> if you see the folder "4.5.1". If not, delete the content of the folder,
> build Ofbiz and check again.
>
> Best regards
> Ingo
>
>
>
> -Ursprüngliche Nachricht-
> Von: James Brett 
> Gesendet: Donnerstag, 6. Mai 2021 10:50
> An: user@ofbiz.apache.org
> Betreff: BUILD FAILED
>
> Hi allcd .
>
> I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
>
> 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build
> failed with an exception.
> 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
> 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not find
> method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
>


Re: BUILD FAILED

2021-05-06 Thread Girish Vasmatkar
Hi James

Since you're running "gradle", instead of "gradlew", chances are there is a
version mismatch because gradlew will make sure to download the compatible
gradle version to use for installation of OFBiz version in question. Using
gradle will use the version that's on your "PATH" which may or may not be
compatible.

Could you please try with "gradlew" once?

Best,
Girish



On Thu, May 6, 2021 at 3:58 PM James Brett  wrote:

> Hi Jacques
>
> My apologies - I thought I had already subscribed.
>
> After I ran 'gradle init-gradle-wrapper' command (which failed), I ran
> 'gradle --debug' which returned the errors in my original post. I am using
> Windows 10.
>
> Thanks,
>
> James.
>
> On 2021/05/06 09:26:30, Jacques Le Roux 
> wrote:
> > Hi James,
> >
> > Your message has been moderated, else it would not have reached this
> Mailing List.
> >
> > Please subscribe to the user ML for such questions and then use your
> email client.
> > See why here http://ofbiz.apache.org/mailing-lists.html.
> >
> > You will get a better support, people can answer you on the ML.
> > The wider the audience the better the answers you might get.
> >
> > Also it's more work for moderators who have to accept your messages as
> long as you have not subscribed.
> > I'll personally no longer accept them (other moderators still could).
> >
> > Thanks
> >
> > This said, could you tell us more about what you exactly did after
> init-gradle-wrapper? On what environment (OS) are you?
> >
> > Jacques
> >
> > Le 06/05/2021 à 10:50, James Brett a écrit :
> > > Hi all
> > >
> > > I need some help installing ofbiz. After running the gradle
> init-gradle-wrapper command  receive the following. Your help is greatly
> appreciated!:
> > >
> > > 20:48:24.713 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.720 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE:
> Build failed with an exception.
> > > 20:48:24.729 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.735 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
> > > 20:48:24.741 [ERROR] [org.gradle.BuildExceptionReporter] Build file
> 'C:\apache-ofbiz-17.12.07\build.gradle' line: 105
> > > 20:48:24.747 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went
> wrong:
> > > 20:48:24.762 [ERROR] [org.gradle.BuildExceptionReporter] A problem
> occurred evaluating root project 'ofbiz'.
> > > 20:48:24.768 [ERROR] [org.gradle.BuildExceptionReporter] > Could not
> find method metadataSources() for arguments
> [build_87kry1wo6oq9n2cqpmtyx198q$_run_closure3$_closure62$_closure66$_closure68@a85644c]
> on
> org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository_Decorated@40ce9049.
> > > 20:48:24.777 [ERROR] [org.gradle.BuildExceptionReporter]
> > > 20:48:24.784 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
> > > 20:48:24.791 [ERROR] [org.gradle.BuildExceptionReporter] Run with
> --stacktrace option to get the stack trace.
> >
> >
>


Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

2021-03-29 Thread Girish Vasmatkar
Please try the following and let me know -

wget --debug -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1

Since I can't recreate the issue on my machine (MacOS) I need to know
exactly what is happening. The JIRA ticket you cited, I was able to
recreate that issue but not any more so just wanted to check if it's a new
issue.
The debug should help where wget is getting broken.

Best,
Girish


On Thu, Mar 25, 2021 at 4:04 PM Sakthivel Vellingiri <
info.integ...@gmail.com> wrote:

> Thanks Girish for looking into this, Pls find the results and let me know
> if i can help with anything else.
>
> I'm not sure where you would like me to enable wget debug (wget --debug), i
> tried to enable wget debug in the gradle/init-gradle-wrapper.sh as below
> and still get the below response
>   if [ "wget *-d* -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then
>
>
>
>
>
>
>
>
>
> *=== Prepare operation
>
> ===/home/clintu2/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar === === Control
> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> gradle/wrapper/gradle-wrapper.jar: FAILED open or
> readgradle/wrapper/gradle-wrapper.properties: OKgradlew: OKshasum: WARNING:
> 1 listed file could not be read*
>
> BTW, i had to change the wget line from
> *  if [[ `wget -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'` ]]; then*
> to
>  *if [ "wget -d -q -S -O $GRADLE_WRAPPER_OFBIZ_PATH/$1 $2/$1 2>&1 >
> /dev/null | grep 'HTTP/1.1 200 OK'" ]; then*
>
>
> On Thu, Mar 25, 2021 at 1:52 AM Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
> > Hi Sakthivel
> >
> > The ticket you're linking to also dealt with a similar issue related to
> > wget. Based on your logs, I see two issues but while one is apparent and
> > reproducible, I am not sure why the download is not happening. I think
> with
> > latest changes to the file,  gradle-wrapper.properties file no more
> > downloaded along with the gradle-wrapper.jar but there is a dependent
> > action to very checksum which now fails. That needs to be fixed.
> >
> > Could you try the following and see what happens?
> >
> > Enable wget debug (wget --debug) and see where wget is failing? Also,
> > please remove the checksum verification for "
> > gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
> > the other issue, I can then fix both at once.
> >
> > Best,
> > Girish
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
> > info.integ...@gmail.com> wrote:
> >
> > > Believe i found a resolution and the root cause of the issue, the
> bottom
> > > line is ./gradle/init-gradle-wrapper.sh does not work with wget [When
> > curl
> > > is not installed],
> > > and throws the below error, however when i installed curl things worked
> > as
> > > expected.
> > > Again below is my environment details where wget failed
> > >
> > >
> > > *OS Version : Ubuntu 18.04.5 LTS*
> > > *Ofbiz Version - 17.12.06*
> > > *Java Version - openjdk version "1.8.0_282"*
> > >
> > > *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> > > installed *
> > > *Not sure if it is related to > *
> > >
> > >
> >
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > * === Prepare operation
> > >
> > >
> >
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> > > not found, we download it === Download gradle-wrapper.jar
> > > ===./gradle/init-gradle-wrapper.sh: 50:
> ./gradle/init-gradle-wrapper.sh:
> > > [[: not foundDownload files gradle-wrapper.jar from
> > > https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> > > <https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/>
> > > failed.Please
> > > check the logs, fix the problem and run the script again. === Control
> > > downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> > > gradle/wrapper/g

Re: Build failure > Ofbiz 17.12.06 in Ubuntu 18.04.5 LTS; Build success > Ofbiz 17.12.06 Windows Server 2016 : RESOLVED

2021-03-24 Thread Girish Vasmatkar
Hi Sakthivel

The ticket you're linking to also dealt with a similar issue related to
wget. Based on your logs, I see two issues but while one is apparent and
reproducible, I am not sure why the download is not happening. I think with
latest changes to the file,  gradle-wrapper.properties file no more
downloaded along with the gradle-wrapper.jar but there is a dependent
action to very checksum which now fails. That needs to be fixed.

Could you try the following and see what happens?

Enable wget debug (wget --debug) and see where wget is failing? Also,
please remove the checksum verification for "
gradle/wrapper/gradle-wrapper.properties" on line 30. Once we figure out
the other issue, I can then fix both at once.

Best,
Girish









On Thu, Mar 25, 2021 at 4:59 AM Sakthivel Vellingiri <
info.integ...@gmail.com> wrote:

> Believe i found a resolution and the root cause of the issue, the bottom
> line is ./gradle/init-gradle-wrapper.sh does not work with wget [When curl
> is not installed],
> and throws the below error, however when i installed curl things worked as
> expected.
> Again below is my environment details where wget failed
>
>
> *OS Version : Ubuntu 18.04.5 LTS*
> *Ofbiz Version - 17.12.06*
> *Java Version - openjdk version "1.8.0_282"*
>
> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was not
> installed *
> *Not sure if it is related to > *
>
> https://issues.apache.org/jira/browse/OFBIZ-12066?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * === Prepare operation
>
> ===/home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar
> ===./gradle/init-gradle-wrapper.sh: 50: ./gradle/init-gradle-wrapper.sh:
> [[: not foundDownload files gradle-wrapper.jar from
> https://github.com/gradle/gradle/raw/v4.5.1/gradle/wrapper/
> 
> failed.Please
> check the logs, fix the problem and run the script again. === Control
> downloaded files ===shasum: gradle/wrapper/gradle-wrapper.jar:
> gradle/wrapper/gradle-wrapper.jar: FAILED open or readshasum:
> gradle/wrapper/gradle-wrapper.properties: No such file or
> directorygradle/wrapper/gradle-wrapper.properties: FAILED open or
> readgradlew: OKshasum: WARNING: 2 listed files could not be read*
>
> *Result for sudo ./gradle/init-gradle-wrapper.sh when curl was installed *
> *=== Prepare operation ===*
>
>
>
>
>
>
> */home/clintu3/Downloads/apache-ofbiz-17.12.06/gradle/wrapper/gradle-wrapper.jar
> not found, we download it === Download gradle-wrapper.jar === === Control
> downloaded files ===gradle/wrapper/gradle-wrapper.jar:
> OKgradle/wrapper/gradle-wrapper.properties: OKgradlew: OK*
> Cheers
>
> On Tue, Mar 23, 2021 at 6:26 PM Sakthivel Vellingiri <
> info.integ...@gmail.com> wrote:
>
> > Dug a little further and see the below reference (for metadataSources) in
> > build.gradle, when i commented the below, i get further along and
> download
> > other dependencies, but as expected and noted in the comment below,
> unable
> > to resolve > org.milyn:flute; it appears linux does not seem to like
> > metadataSources { artifact() }, Any alternative or pointers appreciated.
> >
> >  maven {
> > // org/milyn/flute/1.3/flute-1.3.jar
> > // need artifact only because of wrong pom metadata in maven
> > central
> > url "https://repo1.maven.org/maven2;
> > metadataSources {
> > artifact()
> > }
> > }
> >
> > FAILURE: Build failed with an exception.
> >
> > * Where:
> > Build file
> >
> '/home/clintu2/Downloads/git/integrin_enterprise/com/integrin/erp/erp-17.12.06/build.gradle'
> > line: 1161
> >
> > * What went wrong:
> > A problem occurred evaluating root project 'ofbiz'.
> > > Could not resolve all dependencies for configuration ':runtime'.
> >> Could not resolve org.milyn:flute:1.3.
> >  Required by:
> >  project : > project :plugins:birt >
> > org.eclipse.birt.runtime:viewservlets:4.5.0 >
> > org.eclipse.birt.runtime:org.eclipse.birt.runtime:4.4.1
> >   > Could not resolve org.milyn:flute:1.3.
> >  > inconsistent module metadata found. Descriptor:
> milyn:flute:1.3
> > Errors: bad group: expected='org.milyn' found='milyn'
> >   > Could not resolve org.milyn:flute:1.3.
> >  > inconsistent module metadata found. Descriptor:
> milyn:flute:1.3
> > Errors: bad group: expected='org.milyn' found='milyn'
> >   > Could not resolve org.milyn:flute:1.3.
> >  > Could not get resource '
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> '.
> > > Could not HEAD '
> > https://repo.spring.io/plugins-release/org/milyn/flute/1.3/flute-1.3.pom
> '.
> > Received status code 401 from server: Unauthorized
> >
> > * Try:
> > Run with --stacktrace option to get the stack trace. Run with --info or
> > --debug option 

Re: OFBiz REST implementation session #2 (10/07/2020)

2021-02-26 Thread Girish Vasmatkar
Hi Michael

Please take a look at below thread where I have detailed information about
the XML DSL that supports complete REST like URIs

https://lists.apache.org/thread.html/re84e0c591c94464f1803013837ec9871067132681eeaa8afecef9759%40%3Cdev.ofbiz.apache.org%3E

OFBiz services with export=true and action (CRUD) defined on them, can be
accessed like -

GET https://domain.tld/rest/services/getProduct?productId=1

While if you use XML DSL, you can actually define an endpoint that gets you
a product like this -

GET https://domain.tld/rest/products/1
<https://domain.tld/rest/product/1>

There are certain improvements like adding XML support, HTTP Caching that I
would still like to add but that is something does not affect the APIs as
such.

I am available for any help, issue or concern you may have.

Best Regards,
Girish



















On Thu, Feb 25, 2021 at 11:10 PM Michael Brohl 
wrote:

> Hi Girish,
>
> can you give us a resume about the state of the REST plugin
> implementation? Haven't heard about it in a while.
>
> One specific question: does the implementation support getting
> ressources "the REST way" like
>
> GET https://domain.tld/rest/services/getProduct/1
>
> instead of
>
> GET https://domain.tld/rest/services/getProduct?productId=1
>
> ?
>
> Or, even better
>
> GET https://domain.tld/rest/product/1
>
> ?
>
> Thanks for an update,
>
> Michael Brohl
>
> ecomify GmbH - www.ecomify.de
>
>
> Am 06.10.20 um 16:15 schrieb Girish Vasmatkar:
> > Hi All
> >
> > Please note the meeting details for tomorrow's session -
> >
> > Topic: REST Session #2
> > Time: Oct 7, 2020 04:00 PM Mumbai, Kolkata, New Delhi, 12:30 PM CET
> >
> > Join Zoom Meeting
> >
> https://us04web.zoom.us/j/2504311919?pwd=WHpkS2pCOEVNRi85Znczc2lMeHYvQT09
> >
> > Meeting ID: 250 431 1919
> > Passcode: 4jmxz0
> >
> > I have also prepared a POSTMAN collection
> > <https://www.postman.com/collection/> with API request examples that
> I'll
> > be walking you through. You can import it on your local workspace. Please
> > follow the link below.
> >
> > https://www.getpostman.com/collections/5ef56c4f090b715112bc
> >
> > Best,
> > Girish
> >
> > On Wed, Sep 30, 2020 at 9:07 PM Girish Vasmatkar <
> > girish.vasmat...@hotwaxsystems.com> wrote:
> >
> >> Hi Everyone!
> >>
> >> Please find details of the next session I am planning to hold on OFBiz
> >> REST implementation. This will have some hands-on examples that will
> help
> >> everyone using it.
> >>
> >> Date :  10/07/2020
> >> Time :  4 PM IST, 12:30 PM CET
> >> Meeting URL : TBD, I will send the invite link the day before.
> >> Agenda :
> >>
> >> 1. Preconfigured Resources (Resources that come OTB)
> >>
> >> -
> >>
> >> Authentication Token Generating Resource (How to invoke and example
> >> usage)
> >> -
> >>
> >>POST /auth/token
> >>-
> >>
> >> Exportable Services Resource (How to call services with export=true
> >> via REST interface with example usage)
> >> -
> >>
> >>GET | POST | PUT | DELETE | PATCH /services/{serviceName}
> >>-
> >>
> >>GET vs POST service in parameters difference. How to invoke
> service
> >>defined as GET vs POST | POST | PATCH.
> >>-
> >>
> >> OpenAPI Resource
> >> -
> >>
> >>GET /openapi.json
> >>-
> >>
> >>GET /openapi.yaml
> >>-
> >>
> >> WADL Resource (WADL is to REST as  WSDL is to SOAP)
> >> -
> >>
> >>GET /application.wadl
> >>
> >> 2.  Standard API responses supported for various use cases (with
> examples)
> >> and how to interpret them.
> >>
> >> -
> >>
> >> HTTP 200 OK
> >> -
> >>
> >> HTTP 400 Bad Request
> >> -
> >>
> >> HTTP 401 Unauthorized
> >> -
> >>
> >> HTTP 403 Forbidden
> >> -
> >>
> >> HTTP 422 Unprocessable Entity
> >> -
> >>
> >> HTTP 405 Method Not Allowed
> >> -
> >>
> >> HTTP 406 Not Acceptable
> >> -
> >>
> >> HTTP 415 Unsupported Media Type
> >>
> >> 3. Content Negotiation (JSON)
> >>
> >> -
> >>
> >> Accept : application/json
> >> -
> >>
> >> Content-Type : application/json
> >>
> >> 4. Q session
> >>
> >> Best,
> >> Girish Vasmatkar
> >>
> >>
> >>
>


Re: How to get a service call stack?

2021-02-05 Thread Girish Vasmatkar
Hi Danny,

While this feature isn't available, you can just put a try catch (in the
service you think is getting called too much). In the try block, throw an
exception and in the catch just do printStackTrace(), you will get to know
where that service is getting called from.

This is of course an ugly solution but works especially if you're in the
development phase. That said, it would be a nice feature to have the
DispatchContext have information about current execution context.

Best Regards,
Girish





On Fri, Feb 5, 2021 at 1:08 PM Danny Trunk  wrote:

> Hi Deepak Dixit,
>
> the use case is debugging. There's a service getting called a lot and I
> can't find the origin while checking all the servicedef/entitydef XMLs. And
> I think it's quite useful to have such a feature.
>
> Kind regards
> Danny.
>
> > Deepak Dixit  hat am 04.02.2021 18:19
> geschrieben:
> >
> >
> > Hi Danny Trunk,
> >
> > Could you please share the use case why you need a service call stack?
> >
> > If you share the use case it may be possible you will get a better
> answer.
> >
> > Kind Regards,
> > Deepak Dixit
> > DIRECTOR OF PRODUCT ENGINEERING
> > mobile: +91 9826754548
> > email: deepak.di...@hotwax.co
> > *www.hotwax.co *
> >
> >
> > On Thu, Feb 4, 2021 at 8:40 PM Danny Trunk  wrote:
> >
> > > Hello,
> > >
> > > let's imagine Service A is calling Service B directly through
> > > dispatcher.runSync and Service C is running as an SECA action of
> Service B.
> > > The call stack would be: Service A -> Service B -> Service C (through
> SECA)
> > >
> > > Or let's imagine Service D is running as an EECA action of entity
> Product.
> > > The call stack would be: Product Entity -> Service D (through EECA)
> > >
> > > Is it possible to get that information somehow?
> > > I can't find anything helpful in DispatchContext or GenericDispatcher.
> > >
> > > Output into a log file would be great.
> > >
> > > Kind regards
> > > Danny.
> > >
>
> ZYRES digital media systems GmbH
> Stuttgarter Straße 25 60329 Frankfurt am Main Phone +49 69 98 55 99 - 0
> Fax +49 69 98 55 99 - 11
>
> Firmensitz: Stuttgarter Straße 25 60329 Frankfurt am Main
> Registergericht: Amtsgericht Frankfurt am Main, HRB 76374
> Geschäftsführer: Sebastian Schirmer
>
> http://www.zyres.com/
>


Re: Cannot start ofbiz from ofbiz.tar build (for docker image)

2021-01-05 Thread Girish Vasmatkar
I have actually reproducted it without taking docker as a context.

java -classpath ofbiz.jar org.apache.ofbiz.base.start.Start should trigger
the issue as eventually that is what ofbiz.bat/ofbiz.sh seem to be doing.

Looking at the exception, it looks like there is some issue with the XML
parser trying to validate XML (loaded from within ofbiz.jar) from the XSD
and it is unable to load it because probably the inputstream to ofbiz.jar
is already closed.

It may not help much at this point but this is what it looks like.

Best,
Girish

On Tue, Jan 5, 2021 at 10:04 PM Eugen Stan  wrote:

> @Daniel: I believe this is a bug.
>
> I've started the app in debug mode.
>
> I've skipped the failing step by dropping some frames in the java
> debugger and it continued loading data once it got past that.
>
> Can you please try to reproduce building the ofbiz.tar and running the
> app from it?
>
> If it is a bug I will report it to dev@ .
>
> Thanks,
> --
> Eugen Stan
> +40720 898 747 / netdava.com
>


Re: Ubuntu: init-gradle-wrapper failed to install

2020-11-30 Thread Girish Vasmatkar
Hi Phoon

I had created a JIRA for this :
https://issues.apache.org/jira/browse/OFBIZ-12066

Fix is in place, please check.

Best Regards,
Girish



On Mon, Nov 30, 2020 at 3:04 PM  wrote:

> Thanks Girish.
>
> I'm on Ubuntu 18.04.5 LTS running in Virtualbox
>
> Cheers
> Phoon
>
> -Original Message-
> From: Girish Vasmatkar 
> Sent: Tuesday, 24 November 2020 8:10 pm
> To: ofbizuser 
> Subject: Re: Ubuntu: init-gradle-wrapper failed to install
>
> This actually turned out to be an issue with the script segment to get the
> files over wget. Realized it when the script ran fine even on my Ubuntu
> virtual machine as cURL and wget both exist.
>
> I do have a fix for the same and it works; however, the issue with
> checksum is still there. The backup URI is also being used but eventually
> downloaded files get deleted because of an error in the code block to parse
> the response and extract the response is 200.
>
> That said, how to go about checksum errors? They don't match! I will
> create a ticket to fix this issue, if all agree.
>
> Best,
> Girish
>
>
>
>
> On Mon, Nov 23, 2020 at 3:00 PM Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
> > Hi Phoon
> >
> > You shouldn't have any issues if you downloaded the files manually.
> > That said, I am on Mac and I do not see this issue; probably it is
> > limited to other distributions. Could you please confirm your OS version?
> >
> > Best Regards,
> > Girish
> >
> >
> >
> > On Mon, Nov 23, 2020 at 8:13 AM Tuck Seng Phoon
> > 
> > wrote:
> >
> >> Thanks Jacques,
> >> What I did is just download the files manually and it appears to be
> >> working. I don't know they'll be other problems arise along the way.
> >> Would appreciate someone could look into it.
> >> Meanwhile, I play around the modules and see there are any problems.
> >> CheersPhoon
> >>
> >> On Sunday, November 22, 2020, 01:04:02 AM GMT+8, Jacques Le Roux
> >> < jacques.le.r...@les7arts.com> wrote:
> >>
> >>  Unfortunately, I just tried again ./gradle/init-gradle-wrapper.sh
> >> and got the same error than below. So it seems an issue with the script.
> >>
> >> Also the URI backup is
> >> https://github.com/gradle/gradle/tree/v3.2.1/gradle/wrapper and I'm
> >> not sure why it was not used.
> >>
> >> The script is a bit complex and seems brittle. I did not write it and
> >> don't want to dig in it. But I'm sure someone else will be able to
> >> help you
> >>
> >> Jacques
> >>
> >> Le 21/11/2020 à 13:34, Jacques Le Roux a écrit :
> >> > Hi Phoon,
> >> >
> >> > It does not work here either. The error I get is more explicit:
> >> >
> >> > Download files gradle-wrapper.jar gradle-wrapper.properties from
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/ failed.
> >> >
> >> > Though when I get to
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1 I can see
> >> both files. They are respectively accessible through my
> >> > browser (old FF) at
> >> >
> >> >
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapp
> >> er.jar
> >> >
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapp
> >> er.properties
> >> > And
> >> >
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrappe
> >> r.jar
> >> >
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrappe
> >> r.properties
> >> > works as well
> >> >
> >> > I still use Ubuntu 13.10 in a Windows 7 Oracle VM. When I tried to
> >> download with wget, I got: "Unable to establish SSL connection."
> >> >
> >> > I read that I had to update wget and then it worked:
> >> >
> >> >< >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrappe
> >> r.jar
> >> >--2020-11-21 13:26:49--
> >> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrappe
> >> r.jar
> >> >Résolution de dl.bintray.com… 35.157.216.203, 3.124.7.124
> >> >Connexion à dl.bintray.com|35.157.216.203|:443… connecté.
> >> >requête HTTP transmise, en attente de la réponse… 200 OK
> >> >Taille : 54247 (53K) [application/java-archive]
> >> >Sauvegarde en : «

Re: Ubuntu: init-gradle-wrapper failed to install

2020-11-24 Thread Girish Vasmatkar
This actually turned out to be an issue with the script segment to get the
files over wget. Realized it when the script ran fine even on my Ubuntu
virtual machine as cURL and wget both exist.

I do have a fix for the same and it works; however, the issue with checksum
is still there. The backup URI is also being used but eventually downloaded
files get deleted because of an error in the code block to parse the
response and extract the response is 200.

That said, how to go about checksum errors? They don't match! I will create
a ticket to fix this issue, if all agree.

Best,
Girish




On Mon, Nov 23, 2020 at 3:00 PM Girish Vasmatkar <
girish.vasmat...@hotwaxsystems.com> wrote:

> Hi Phoon
>
> You shouldn't have any issues if you downloaded the files manually. That
> said, I am on Mac and I do not see this issue; probably it is limited to
> other distributions. Could you please confirm your OS version?
>
> Best Regards,
> Girish
>
>
>
> On Mon, Nov 23, 2020 at 8:13 AM Tuck Seng Phoon 
> wrote:
>
>> Thanks Jacques,
>> What I did is just download the files manually and it appears to be
>> working. I don't know they'll be other problems arise along the way.
>> Would appreciate someone could look into it.
>> Meanwhile, I play around the modules and see there are any problems.
>> CheersPhoon
>>
>> On Sunday, November 22, 2020, 01:04:02 AM GMT+8, Jacques Le Roux <
>> jacques.le.r...@les7arts.com> wrote:
>>
>>  Unfortunately, I just tried again ./gradle/init-gradle-wrapper.sh and
>> got the same error than below. So it seems an issue with the script.
>>
>> Also the URI backup is
>> https://github.com/gradle/gradle/tree/v3.2.1/gradle/wrapper and I'm not
>> sure why it was not used.
>>
>> The script is a bit complex and seems brittle. I did not write it and
>> don't want to dig in it. But I'm sure someone else will be able to help you
>>
>> Jacques
>>
>> Le 21/11/2020 à 13:34, Jacques Le Roux a écrit :
>> > Hi Phoon,
>> >
>> > It does not work here either. The error I get is more explicit:
>> >
>> > Download files gradle-wrapper.jar gradle-wrapper.properties from
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/ failed.
>> >
>> > Though when I get to
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1 I can see both
>> files. They are respectively accessible through my
>> > browser (old FF) at
>> >
>> >
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapper.jar
>> >
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapper.properties
>> > And
>> >
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
>> >
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.properties
>> > works as well
>> >
>> > I still use Ubuntu 13.10 in a Windows 7 Oracle VM. When I tried to
>> download with wget, I got: "Unable to establish SSL connection."
>> >
>> > I read that I had to update wget and then it worked:
>> >
>> ><> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
>> >--2020-11-21 13:26:49--
>> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
>> >Résolution de dl.bintray.com… 35.157.216.203, 3.124.7.124
>> >Connexion à dl.bintray.com|35.157.216.203|:443… connecté.
>> >requête HTTP transmise, en attente de la réponse… 200 OK
>> >Taille : 54247 (53K) [application/java-archive]
>> >Sauvegarde en : « gradle-wrapper.jar »
>> >
>> >gradle-wrapper.jar
>> 100%[>]
>> >52,98K   113KB/sds 0,5s
>> >
>> >2020-11-21 13:26:50 (113 KB/s) — « gradle-wrapper.jar » sauvegardé
>> [54247/54247]>>
>> >
>> > So you might need to update wget too (I did not try for curl)
>> >
>> > To update wget I followed:
>> https://community.webfaction.com/questions/1751/how-do-i-update-wget#sort-top
>> >
>> > I had to use sudo everywhere, notably rather
>> >
>> > sudo make && SUDO make install
>> >
>> > Also "cd wget-latest" did not work so I used " cd wget-1.20.3"
>> >
>> > HTH
>> >
>> > Jacques
>> >
>> >
>> > Le 20/11/2020 à 17:55, Jacques Le Roux a écrit :
>> >> You are right about the README.a

Re: Ubuntu: init-gradle-wrapper failed to install

2020-11-23 Thread Girish Vasmatkar
Hi Phoon

You shouldn't have any issues if you downloaded the files manually. That
said, I am on Mac and I do not see this issue; probably it is limited to
other distributions. Could you please confirm your OS version?

Best Regards,
Girish



On Mon, Nov 23, 2020 at 8:13 AM Tuck Seng Phoon 
wrote:

> Thanks Jacques,
> What I did is just download the files manually and it appears to be
> working. I don't know they'll be other problems arise along the way.
> Would appreciate someone could look into it.
> Meanwhile, I play around the modules and see there are any problems.
> CheersPhoon
>
> On Sunday, November 22, 2020, 01:04:02 AM GMT+8, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
>  Unfortunately, I just tried again ./gradle/init-gradle-wrapper.sh and got
> the same error than below. So it seems an issue with the script.
>
> Also the URI backup is
> https://github.com/gradle/gradle/tree/v3.2.1/gradle/wrapper and I'm not
> sure why it was not used.
>
> The script is a bit complex and seems brittle. I did not write it and
> don't want to dig in it. But I'm sure someone else will be able to help you
>
> Jacques
>
> Le 21/11/2020 à 13:34, Jacques Le Roux a écrit :
> > Hi Phoon,
> >
> > It does not work here either. The error I get is more explicit:
> >
> > Download files gradle-wrapper.jar gradle-wrapper.properties from
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/ failed.
> >
> > Though when I get to
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1 I can see both
> files. They are respectively accessible through my
> > browser (old FF) at
> >
> >
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapper.jar
> >
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/:gradle-wrapper.properties
> > And
> >
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
> >
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.properties
> > works as well
> >
> > I still use Ubuntu 13.10 in a Windows 7 Oracle VM. When I tried to
> download with wget, I got: "Unable to establish SSL connection."
> >
> > I read that I had to update wget and then it worked:
> >
> >< https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
> >--2020-11-21 13:26:49--
> https://dl.bintray.com/apacheofbiz/GradleWrapper/v3.2.1/gradle-wrapper.jar
> >Résolution de dl.bintray.com… 35.157.216.203, 3.124.7.124
> >Connexion à dl.bintray.com|35.157.216.203|:443… connecté.
> >requête HTTP transmise, en attente de la réponse… 200 OK
> >Taille : 54247 (53K) [application/java-archive]
> >Sauvegarde en : « gradle-wrapper.jar »
> >
> >gradle-wrapper.jar
> 100%[>]
> >52,98K   113KB/sds 0,5s
> >
> >2020-11-21 13:26:50 (113 KB/s) — « gradle-wrapper.jar » sauvegardé
> [54247/54247]>>
> >
> > So you might need to update wget too (I did not try for curl)
> >
> > To update wget I followed:
> https://community.webfaction.com/questions/1751/how-do-i-update-wget#sort-top
> >
> > I had to use sudo everywhere, notably rather
> >
> > sudo make && SUDO make install
> >
> > Also "cd wget-latest" did not work so I used " cd wget-1.20.3"
> >
> > HTH
> >
> > Jacques
> >
> >
> > Le 20/11/2020 à 17:55, Jacques Le Roux a écrit :
> >> You are right about the README.adoc, it's wrong in all supported
> versions (not in released package of course), my bad, just fixed
> >>
> >> I'll look at the other issue ASAP...
> >>
> >> Jacques
> >>
> >> Le 20/11/2020 à 11:11, Tuck Seng Phoon a écrit :
> >>> Hi Jacques,
> >>> version 17.12.04
> >>>
> >>>
> >>>
> >>> CheersPhoon
> >>>
> >>>  On Friday, November 20, 2020, 03:50:04 PM GMT+8, Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
> >>> Hi Phoon,
> >>>
> >>> Which version or package are you using?
> >>>
> >>> Jacques
> >>>
> >>> Le 20/11/2020 à 05:30, Tuck Seng Phoon a écrit :
>  Hello all,
>  Trying to run init-gradle-wrapper failed
>  in README.adoc the command is './gradle/init-gradle-wrapper". Need to
>  append .sh works but got the following messages.
>  I check the wrapper folder but gradle-wrapper.jar does not exist.
>  What did I do wrong?
> 
>  Download files gradle-wrapper.jar gradle-wrapper.properties from
>  https://dl.bin$Please check the logs, fix the problem and run the
> script
>  again.
> === Control downloaded files ===
>  shasum: gradle/wrapper/gradle-wrapper.jar:
>  gradle/wrapper/gradle-wrapper.jar: FAILED open or read
>  shasum: gradle/wrapper/gradle-wrapper.properties: No such file or
>  directory
>  gradle/wrapper/gradle-wrapper.properties: FAILED open or read
>  gradlew: OK
>  shasum: WARNING: 2 listed files could not be read
> 
> 
> 
>  CheersPhoon
> >>
>


Re: OFBiz REST implementation session #2 (10/07/2020)

2020-10-06 Thread Girish Vasmatkar
Hi All

Please note the meeting details for tomorrow's session -

Topic: REST Session #2
Time: Oct 7, 2020 04:00 PM Mumbai, Kolkata, New Delhi, 12:30 PM CET

Join Zoom Meeting
https://us04web.zoom.us/j/2504311919?pwd=WHpkS2pCOEVNRi85Znczc2lMeHYvQT09

Meeting ID: 250 431 1919
Passcode: 4jmxz0

I have also prepared a POSTMAN collection
<https://www.postman.com/collection/> with API request examples that I'll
be walking you through. You can import it on your local workspace. Please
follow the link below.

https://www.getpostman.com/collections/5ef56c4f090b715112bc

Best,
Girish

On Wed, Sep 30, 2020 at 9:07 PM Girish Vasmatkar <
girish.vasmat...@hotwaxsystems.com> wrote:

> Hi Everyone!
>
> Please find details of the next session I am planning to hold on OFBiz
> REST implementation. This will have some hands-on examples that will help
> everyone using it.
>
> Date :  10/07/2020
> Time :  4 PM IST, 12:30 PM CET
> Meeting URL : TBD, I will send the invite link the day before.
> Agenda :
>
> 1. Preconfigured Resources (Resources that come OTB)
>
>-
>
>Authentication Token Generating Resource (How to invoke and example
>usage)
>-
>
>   POST /auth/token
>   -
>
>Exportable Services Resource (How to call services with export=true
>via REST interface with example usage)
>-
>
>   GET | POST | PUT | DELETE | PATCH /services/{serviceName}
>   -
>
>   GET vs POST service in parameters difference. How to invoke service
>   defined as GET vs POST | POST | PATCH.
>   -
>
>OpenAPI Resource
>-
>
>   GET /openapi.json
>   -
>
>   GET /openapi.yaml
>   -
>
>WADL Resource (WADL is to REST as  WSDL is to SOAP)
>-
>
>   GET /application.wadl
>
> 2.  Standard API responses supported for various use cases (with examples)
> and how to interpret them.
>
>-
>
>HTTP 200 OK
>-
>
>HTTP 400 Bad Request
>-
>
>HTTP 401 Unauthorized
>-
>
>HTTP 403 Forbidden
>-
>
>HTTP 422 Unprocessable Entity
>-
>
>HTTP 405 Method Not Allowed
>-
>
>HTTP 406 Not Acceptable
>-
>
>HTTP 415 Unsupported Media Type
>
> 3. Content Negotiation (JSON)
>
>-
>
>Accept : application/json
>-
>
>Content-Type : application/json
>
> 4. Q session
>
> Best,
> Girish Vasmatkar
>
>
>


OFBiz REST implementation session #2 (10/07/2020)

2020-09-30 Thread Girish Vasmatkar
Hi Everyone!

Please find details of the next session I am planning to hold on OFBiz REST
implementation. This will have some hands-on examples that will help
everyone using it.

Date :  10/07/2020
Time :  4 PM IST, 12:30 PM CET
Meeting URL : TBD, I will send the invite link the day before.
Agenda :

1. Preconfigured Resources (Resources that come OTB)

   -

   Authentication Token Generating Resource (How to invoke and example
   usage)
   -

  POST /auth/token
  -

   Exportable Services Resource (How to call services with export=true via
   REST interface with example usage)
   -

  GET | POST | PUT | DELETE | PATCH /services/{serviceName}
  -

  GET vs POST service in parameters difference. How to invoke service
  defined as GET vs POST | POST | PATCH.
  -

   OpenAPI Resource
   -

  GET /openapi.json
  -

  GET /openapi.yaml
  -

   WADL Resource (WADL is to REST as  WSDL is to SOAP)
   -

  GET /application.wadl

2.  Standard API responses supported for various use cases (with examples)
and how to interpret them.

   -

   HTTP 200 OK
   -

   HTTP 400 Bad Request
   -

   HTTP 401 Unauthorized
   -

   HTTP 403 Forbidden
   -

   HTTP 422 Unprocessable Entity
   -

   HTTP 405 Method Not Allowed
   -

   HTTP 406 Not Acceptable
   -

   HTTP 415 Unsupported Media Type

3. Content Negotiation (JSON)

   -

   Accept : application/json
   -

   Content-Type : application/json

4. Q session

Best,
Girish Vasmatkar


Re: OFBiz REST session

2020-09-30 Thread Girish Vasmatkar
Hello Pierre

Apparently I missed the most important part, I thought I had mentioned
"today", but unfortunately I didn't. Apologies for that. Please do join, if
you can, today @ 4 PM IST, 10:30 AM GMT.

Future sessions will be sent notifications for well in advance.

Best Regards,
Girish


On Wed, Sep 30, 2020 at 2:26 PM Pierre Smits  wrote:

> Hi Girish,
>
> Which date will this be?
>
>
> Met vriendelijke groet,
>
> Pierre Smits
> *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since
> 2008 (without privileges)
>
> *Apache Trafodion <https://trafodion.apache.org>, Vice President*
> *Apache Directory <https://directory.apache.org>, PMC Member*
> Apache Incubator <https://incubator.apache.org>, committer
> Apache Steve <https://steve.apache.org>, committer
>
>
> On Wed, Sep 30, 2020 at 10:13 AM Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
> > Hi All
> >
> > We will be holding an introductory session on *ofbiz-rest-impl* plugin @
> 4
> > PM IST, 10:30 AM GMT. Agenda for the same is as follows -
> >
> > 1. Introduction to ofbiz-rest-impl 2. Technology stack used 3. Q
> session
> >
> > Here's the meet URL for everybody's reference :
> > https://meet.google.com/mjt-rich-suo . Please do join.
> >
> > Best Regards,
> > Girish
> >
>


OFBiz REST session

2020-09-30 Thread Girish Vasmatkar
Hi All

We will be holding an introductory session on *ofbiz-rest-impl* plugin @ 4
PM IST, 10:30 AM GMT. Agenda for the same is as follows -

1. Introduction to ofbiz-rest-impl 2. Technology stack used 3. Q session

Here's the meet URL for everybody's reference :
https://meet.google.com/mjt-rich-suo . Please do join.

Best Regards,
Girish


Re: Eclipse debug

2020-09-07 Thread Girish Vasmatkar
The buildship plug-in is not recognizing --debug-jvm argument. If you use
simple --debug then it correctly launches gradle with debug enabled.
Ideally it should recognize it a valid argument and instruct gradle
accordingly.

However, as I mentioned earlier, you can bypass it and provide the details
to gradle yourself by providing JVM arguments directly and it works fine.
You can have two separate Run configurations for normal ofbiz execution and
debug execution. In the second configuration, you can specify JVM arguments
and it will work fine.

Best,
Girish




On Mon, Sep 7, 2020 at 12:14 PM Ingo Wolfmayr 
wrote:

> Hi Girish,
>
> my question was more in eclipse user direction: I use the buildship plugin
> for gradle and the most current version of eclipse.
>
> In previous ofbiz versions I opened the "run configuration", added a
> gradle task and added "ofbizDebug" as task. Then I created a debug task for
> the debug task. Worked for years.
> With the new version I would have to add "ofbiz" as task and "--debug-jvm"
> as argument. The only result I get is: Unrecognized option: --debug-jvm
> Maybe the plugin cannot handle these kind of arguments?
>
> As I asume I am not the only one using Eclipse so I was hoping someone
> solved that already :)
>
> Best regards
> Ingo
>
>
> -Ursprüngliche Nachricht-
> Von: Girish Vasmatkar 
> Gesendet: Freitag, 4. September 2020 12:45
> An: ofbizuser 
> Betreff: Re: Eclipse debug
>
> Hi Jacques -
>
> The documentation seems outdated as it still references an old custom
> ofbiz debug task - "ofbizDebug". It was removed from build.gradle since
> gradle supported the command line argument "--debug-jvm" that did exactly
> what "ofbizDebug" did.
> I'll update the page if everybody agrees.
>
> Best,
> Girish
>
>
>
> On Fri, Sep 4, 2020 at 3:27 PM Jacques Le Roux <
> jacques.le.r...@les7arts.com>
> wrote:
>
> > Thanks Girish,
> >
> > That's indeed how most of us do it.
> >
> > BTW Ingo, we have some documentation in wiki:
> >
> > https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debuggin
> > g+OFBiz+in+Eclipse
> >
> > Please let me know if it's still up to date (I think so) and useful
> >
> > Thanks
> >
> > Jacques
> >
> > Le 04/09/2020 à 09:37, Girish Vasmatkar a écrit :
> > > Hi Ingo
> > >
> > > I see what you're trying to do. Apparently eclipse is not ownering
> > --debug-jvm and passing it along to gradle for execution. Other
> > command line
> > > arguments like --stacktrace, --debug work just fine but you need to
> > > set
> > them in Run Configuration-> GradleTask -> Project Settings -> Advanced
> > > Options -> Program Arguments.
> > >
> > > As I mentioned above, if you set --debug-jvm, it won't do anything.
> > However you can try what gradle does under the hood when it receives
> > > *--debug-jvm* command line argument. Just pass below to the JVM
> > > directly
> > using JVM argument -
> > >
> > > Under Run Configuration-> GradleTask -> Project Settings -> Advanced
> > Options -> JVM Arguments
> > > *-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005*
> > > Not sure if you can see the image I pasted below inline instead of
> > adding it as an attachment. But setting the above line as JVM argument
> > and
> > > configure the task as 'ofbiz' should get the job done.
> > >
> > > image.png
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Sep 3, 2020 at 10:41 PM Ingo Wolfmayr
> > >  > <mailto:ingo.wolfm...@wolfix.at>> wrote:
> > >
> > > Hello Girish,
> > >
> > > it works in command line. I want to setup a eclipse gradle task
> > under "run configurations".
> > >
> > > Best regards,
> > > Ingo
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Girish Vasmatkar  > girish.vasmat...@hotwaxsystems.com>>
> > > Gesendet: Donnerstag, 3. September 2020 16:50
> > > An: ofbizuser mailto:user@ofbiz.apache.org
> >>
> > > Betreff: Re: Eclipse debug
> > >
> > > Hello
> > >
> > > *gradlew ofbiz --debug-jvm* should work.  --debug-jvm is just
> > supplied as a parameter.
> > >
> > > Best,
> > > Girish
> > >
> > >
> > > On Thu, Sep 3, 2020 at 7:01 PM Ingo Wolfmayr <
> > ingo.wolfm...@wolfix.at <mailto:ingo.wolfm...@wolfix.at>>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > can anybody tell me how to add a Gradle Task for debugging ofbiz
> in
> > > > eclipse:
> > > >
> > > > gradlew "ofbiz" --debug-jvm
> > > >
> > > > Where will I have to but the "--debug-jvm"?
> > > >
> > > > In former ofbiz versions it used to work with adding "debugOfbiz"
> > as
> > > > gradle task.
> > > >
> > > > Thanks for any hint.
> > > >
> > > > Best regards,
> > > > Ingo
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
>


Re: Eclipse debug

2020-09-04 Thread Girish Vasmatkar
Hi Jacques -

The documentation seems outdated as it still references an old custom ofbiz
debug task - "ofbizDebug". It was removed from build.gradle since gradle
supported the command line argument "--debug-jvm" that did exactly what
"ofbizDebug" did.
I'll update the page if everybody agrees.

Best,
Girish



On Fri, Sep 4, 2020 at 3:27 PM Jacques Le Roux 
wrote:

> Thanks Girish,
>
> That's indeed how most of us do it.
>
> BTW Ingo, we have some documentation in wiki:
>
> https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
>
> Please let me know if it's still up to date (I think so) and useful
>
> Thanks
>
> Jacques
>
> Le 04/09/2020 à 09:37, Girish Vasmatkar a écrit :
> > Hi Ingo
> >
> > I see what you're trying to do. Apparently eclipse is not ownering
> --debug-jvm and passing it along to gradle for execution. Other command
> line
> > arguments like --stacktrace, --debug work just fine but you need to set
> them in Run Configuration-> GradleTask -> Project Settings -> Advanced
> > Options -> Program Arguments.
> >
> > As I mentioned above, if you set --debug-jvm, it won't do anything.
> However you can try what gradle does under the hood when it receives
> > *--debug-jvm* command line argument. Just pass below to the JVM directly
> using JVM argument -
> >
> > Under Run Configuration-> GradleTask -> Project Settings -> Advanced
> Options -> JVM Arguments
> > *-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005*
> > Not sure if you can see the image I pasted below inline instead of
> adding it as an attachment. But setting the above line as JVM argument and
> > configure the task as 'ofbiz' should get the job done.
> >
> > image.png
> >
> >
> >
> >
> >
> >
> > On Thu, Sep 3, 2020 at 10:41 PM Ingo Wolfmayr  <mailto:ingo.wolfm...@wolfix.at>> wrote:
> >
> > Hello Girish,
> >
> > it works in command line. I want to setup a eclipse gradle task
> under "run configurations".
> >
> > Best regards,
> > Ingo
> >
> > -Ursprüngliche Nachricht-
> > Von: Girish Vasmatkar  girish.vasmat...@hotwaxsystems.com>>
> > Gesendet: Donnerstag, 3. September 2020 16:50
> > An: ofbizuser mailto:user@ofbiz.apache.org>>
> > Betreff: Re: Eclipse debug
> >
> > Hello
> >
> > *gradlew ofbiz --debug-jvm* should work.  --debug-jvm is just
> supplied as a parameter.
> >
> > Best,
> > Girish
> >
> >
> > On Thu, Sep 3, 2020 at 7:01 PM Ingo Wolfmayr <
> ingo.wolfm...@wolfix.at <mailto:ingo.wolfm...@wolfix.at>>
> > wrote:
> >
> > > Hello,
> > >
> > > can anybody tell me how to add a Gradle Task for debugging ofbiz in
> > > eclipse:
> > >
> > > gradlew "ofbiz" --debug-jvm
> > >
> > > Where will I have to but the "--debug-jvm"?
> > >
> > > In former ofbiz versions it used to work with adding "debugOfbiz"
> as
> > > gradle task.
> > >
> > > Thanks for any hint.
> > >
> > > Best regards,
> > > Ingo
> > >
> > >
> > >
> > >
> > >
> >
>


Re: Eclipse debug

2020-09-04 Thread Girish Vasmatkar
Hi Ingo

I see what you're trying to do. Apparently eclipse is not ownering
--debug-jvm and passing it along to gradle for execution. Other command
line arguments like --stacktrace, --debug work just fine but you need to
set them in Run Configuration-> GradleTask -> Project Settings -> Advanced
Options -> Program Arguments.

As I mentioned above, if you set --debug-jvm, it won't do anything.
However you can try what gradle does under the hood when it receives
*--debug-jvm* command line argument. Just pass below to the JVM directly
using JVM argument -

Under Run Configuration-> GradleTask -> Project Settings -> Advanced
Options -> JVM Arguments
*-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005*
Not sure if you can see the image I pasted below inline instead of adding
it as an attachment. But setting the above line as JVM argument and
configure the task as 'ofbiz' should get the job done.

[image: image.png]






On Thu, Sep 3, 2020 at 10:41 PM Ingo Wolfmayr 
wrote:

> Hello Girish,
>
> it works in command line. I want to setup a eclipse gradle task under "run
> configurations".
>
> Best regards,
> Ingo
>
> -Ursprüngliche Nachricht-
> Von: Girish Vasmatkar 
> Gesendet: Donnerstag, 3. September 2020 16:50
> An: ofbizuser 
> Betreff: Re: Eclipse debug
>
> Hello
>
> *gradlew ofbiz --debug-jvm* should work.  --debug-jvm is just supplied as
> a parameter.
>
> Best,
> Girish
>
>
> On Thu, Sep 3, 2020 at 7:01 PM Ingo Wolfmayr 
> wrote:
>
> > Hello,
> >
> > can anybody tell me how to add a Gradle Task for debugging ofbiz in
> > eclipse:
> >
> > gradlew "ofbiz" --debug-jvm
> >
> > Where will I have to but the "--debug-jvm"?
> >
> > In former ofbiz versions it used to work with adding "debugOfbiz" as
> > gradle task.
> >
> > Thanks for any hint.
> >
> > Best regards,
> > Ingo
> >
> >
> >
> >
> >
>


Re: Eclipse debug

2020-09-03 Thread Girish Vasmatkar
Hello

*gradlew ofbiz --debug-jvm* should work.  --debug-jvm is just supplied as a
parameter.

Best,
Girish


On Thu, Sep 3, 2020 at 7:01 PM Ingo Wolfmayr 
wrote:

> Hello,
>
> can anybody tell me how to add a Gradle Task for debugging ofbiz in
> eclipse:
>
> gradlew "ofbiz" --debug-jvm
>
> Where will I have to but the "--debug-jvm"?
>
> In former ofbiz versions it used to work with adding "debugOfbiz" as
> gradle task.
>
> Thanks for any hint.
>
> Best regards,
> Ingo
>
>
>
>
>


Re: Tomcat Upgrade to 9.0.31, with Apache web server 2.4.39 configuration

2020-05-29 Thread Girish Vasmatkar
Hi Vivek -

If secretRequired is set true, the Apache server has to configure a secret
property with a matching value that you'd specify in Tomcat configuration.
However, support for secret property was only added after 2.4.42 and your
version of Apache is 2.4.39 so I believe you're out of luck.

Tomcat is going to expect secret value unless you specifically set
secretRequired to false.

Best,
Girish




On Tue, May 26, 2020 at 12:25 PM vivek.mi  wrote:

> Hi Nameet, OFBiz is running with this.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> And with above configuration, Apache server is able to communicate with
> TOMCAT.
>
> But if i want to configure it with secretRequired as true then how to get
> it
> done.
>
>
>
>
>
> -
> Vivek Mishra
> --
> Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html
>


Re: Offline data management in OFBiz web POS

2020-05-05 Thread Girish Vasmatkar
It certainly looks like it is still trying to connect to the local server.
I would suggest using a debugger inside RmiServiceEngine and then try to
see what values the variables hold at the runtime.

Best,
Girish

On Tue, May 5, 2020 at 2:21 PM Deepak Nigam 
wrote:

> Thanks Girish.
>
> Yes rmi-registry is running on the remote service. I have also verified
> that the port 1099 is open on the remote server. I am getting the following
> error on running the 'testRmi' service from my local machine:
>
> The Following Errors Occurred:
>
> Service dispatcher threw an exception:RMI Invocation Error (Connection
> refused to host: 127.0.1.1; nested exception is: 
> java.net.ConnectException: Connection refused (Connection refused))
>
> I have made changes necessary changes in serviceengine.xml for main-rmi and
> entity-sync-rmi service location i.e. replaced localhost by remote server's
> IP address. However from the above error it seems that it is still pointing
> to 127.0.1.1.
>
> Regards
> --
> Deepak Nigam
>
>
>
>
> On Tue, May 5, 2020 at 2:10 PM Pierre Smits 
> wrote:
>
> > Hi Deepak,
> >
> > A search in the OFBiz wiki will go a long way. Here is the uri:
> > https://cwiki.apache.org/confluence/display/OFBIZ
> >
> > Met vriendelijke groet,
> >
> > Pierre Smits
> > *Proud* *contributor** of* Apache OFBiz 
> since
> > 2008 (without privileges)
> >
> > *Apache Trafodion , Vice President*
> > *Apache Directory , PMC Member*
> > Apache Incubator , committer
> > Apache Steve , committer
> >
> >
> > On Tue, May 5, 2020 at 10:18 AM Deepak Nigam  >
> > wrote:
> >
> > > Hello all,
> > >
> > > Is there any document for enabling RMI in OFBiz?  As per OFBIZ-6942
> > > , RMI was disabled
> due
> > > to
> > > Java serialization issues. I also tried to revert the changes on local
> by
> > > referring to https://markmail.org/message/dukv5glk3elilo5z, but it
> seems
> > > that the file/code structure has been changed now.
> > >
> > > I can trigger the RMI service host on the same machine (localhost:1099)
> > > successfully, but it is giving connection error for OFBiz another
> server
> > > deployed in the same LAN. I have confirmed that another server is
> > > accessible for my machine.
> > >
> > > Thanks in advance.
> > >
> > > Regards
> > > --
> > > Deepak Nigam
> > >
> > >
> > > On Mon, May 4, 2020 at 4:23 PM Deepak Nigam <
> deepak.nigam1...@gmail.com>
> > > wrote:
> > >
> > > > Thanks, Pierre and Deepak.
> > > >
> > > > Thanks & Regards
> > > > --
> > > > Deepak Nigam
> > > >
> > > > On Mon, May 4, 2020 at 12:32 PM Deepak Dixit  >
> > > > wrote:
> > > >
> > > >> Hi Deepak,
> > > >>
> > > >> You can refer following document
> > > >>
> > > >>
> > >
> >
> https://cwiki.apache.org/confluence/display/OFBIZ/Sync+Setup+Notes+and+Example
> > > >>
> > > >> >>Is there any support for managing the data offline in OFBiz web
> POS?
> > > >>
> > > >> I think we don't have any support for offline order taking, if you
> > want
> > > to
> > > >> use offline for the web, you can use serviceworker.
> > > >>
> > > >>
> > > >> Kind Regards,
> > > >> Deepak Dixit
> > > >> DIRECTOR OF PRODUCT ENGINEERING
> > > >> mobile: +91 9826754548
> > > >> email: deepak.di...@hotwax.co
> > > >> *www.hotwax.co *
> > > >>
> > > >>
> > > >> On Mon, May 4, 2020 at 12:01 PM Deepak Nigam <
> > > deepak.nigam1...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > Hello all,
> > > >> >
> > > >> > I hope everyone is doing well in this tough time of the global
> > > pandemic.
> > > >> >
> > > >> > Is there any support for managing the data offline in OFBiz web
> POS?
> > > >> > Suppose the scenario wherein the internet connectivity got dropped
> > > for a
> > > >> > few minutes, still, the business wants to use the POS system and
> > > >> continue
> > > >> > its operations. Any possibility of achieving this requirement?
> > > >> >
> > > >> > Thanks & Regards
> > > >> > --
> > > >> > Deepak Nigam
> > > >> >
> > > >>
> > > >
> > > >
> > > >
> > > >
> > >
>


Re: Offline data management in OFBiz web POS

2020-05-05 Thread Girish Vasmatkar
Hi Deepak -

Is rmiregistry running on the remote OFBiz server? Secondly, the remote
server must allow incoming remote connections on default 1099 port (if at
all this is the port rmiregistry is started on). Try to do telnet on the
port and see if it is even allowing connections.

Best,
Girish

On Tue, May 5, 2020 at 1:48 PM Deepak Nigam 
wrote:

> Hello all,
>
> Is there any document for enabling RMI in OFBiz?  As per OFBIZ-6942
> , RMI was disabled due
> to
> Java serialization issues. I also tried to revert the changes on local by
> referring to https://markmail.org/message/dukv5glk3elilo5z, but it seems
> that the file/code structure has been changed now.
>
> I can trigger the RMI service host on the same machine (localhost:1099)
> successfully, but it is giving connection error for OFBiz another server
> deployed in the same LAN. I have confirmed that another server is
> accessible for my machine.
>
> Thanks in advance.
>
> Regards
> --
> Deepak Nigam
>
>
> On Mon, May 4, 2020 at 4:23 PM Deepak Nigam 
> wrote:
>
> > Thanks, Pierre and Deepak.
> >
> > Thanks & Regards
> > --
> > Deepak Nigam
> >
> > On Mon, May 4, 2020 at 12:32 PM Deepak Dixit 
> > wrote:
> >
> >> Hi Deepak,
> >>
> >> You can refer following document
> >>
> >>
> https://cwiki.apache.org/confluence/display/OFBIZ/Sync+Setup+Notes+and+Example
> >>
> >> >>Is there any support for managing the data offline in OFBiz web POS?
> >>
> >> I think we don't have any support for offline order taking, if you want
> to
> >> use offline for the web, you can use serviceworker.
> >>
> >>
> >> Kind Regards,
> >> Deepak Dixit
> >> DIRECTOR OF PRODUCT ENGINEERING
> >> mobile: +91 9826754548
> >> email: deepak.di...@hotwax.co
> >> *www.hotwax.co *
> >>
> >>
> >> On Mon, May 4, 2020 at 12:01 PM Deepak Nigam <
> deepak.nigam1...@gmail.com>
> >> wrote:
> >>
> >> > Hello all,
> >> >
> >> > I hope everyone is doing well in this tough time of the global
> pandemic.
> >> >
> >> > Is there any support for managing the data offline in OFBiz web POS?
> >> > Suppose the scenario wherein the internet connectivity got dropped
> for a
> >> > few minutes, still, the business wants to use the POS system and
> >> continue
> >> > its operations. Any possibility of achieving this requirement?
> >> >
> >> > Thanks & Regards
> >> > --
> >> > Deepak Nigam
> >> >
> >>
> >
> >
> >
> >
>


Re: Running jar archive

2020-04-23 Thread Girish Vasmatkar
As I mentioned earlier, OFBIZ_HOME must point to the directory where you
checked out your ofbiz code. It is then up to you to execute the jar file
from anywhere you want.

The idea behind having OFBIZ_HOME is that the code internally starts
looking for resources using OFBIZ_HOME environment variable.



On Thu, Apr 23, 2020 at 9:29 PM Tomek  wrote:

> I invoke the following commands:
>
> cd /home/tk/Pulpit/test
>
> export OFBIZ_HOME=/home/tk/Pulpit/test
>
> /opt/jdk8u242-b08/bin/java -jar ofbiz.jar
>
> It still doesn't work and I have got the same error. Additionally, I
> would like to point out that the OFBIZ_HOME directory contains only one
> file (ofbiz.jar).
>
> On 23.04.2020 17:24, Girish Vasmatkar wrote:
> > You probably do not have OFBIZ_HOME environment variable defined. It
> should
> > be the root directory containing your ofbiz installation.
> >
> > export OFBIZ_HOME=
> >
> > Best,
> > Girish
> >
> > On Thu, Apr 23, 2020 at 4:43 PM Tomek  wrote:
> >
> >> Hi all,
> >>
> >> Is it possible to run ofbiz.jar file without other resources? I have
> >> used 'gradlew clean build' command to build jar archive. The ofbiz.jar
> >> archive is located in build/lib/ofbiz.jar directory by default. So I
> >> have moved this file to another directory and I used 'java -jar
> >> ofbiz.jar' command to run Ofbiz. Unfortunately I have got the following
> >> error:
> >>
> >> Config.java using configuration file start.properties
> >> Set OFBIZ_HOME to - /home/tk/Pulpit/test
> >> Admin socket configured on - /127.0.0.1:10523
> >> 2020-04-23 12:47:40,224 |main |ContainerLoader   |I|
> >> [Startup] Loading containers...
> >> org.apache.ofbiz.base.start.StartupException:
> >> org.apache.ofbiz.base.container.ContainerException: Could not find
> >> container config file
> >> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml (Could
> >> not find container config file
> >> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml)
> >>   at
> >>
> >>
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:80)
> >>   at
> >>
> >>
> org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:63)
> >>   at
> >>
> >>
> org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:218)
> >>   at
> >>
> >>
> org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71)
> >>   at org.apache.ofbiz.base.start.Start.main(Start.java:85)
> >> Caused by: org.apache.ofbiz.base.container.ContainerException: Could not
> >> find container config file
> >> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml
> >>   at
> >>
> >>
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:70)
> >>   at
> >>
> >>
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:78)
> >>   ... 4 more
> >> 2020-04-23 12:47:40,236 |Thread-3 |ContainerLoader   |I|
> >> Shutting down containers
> >>
> >>
>


Re: Running jar archive

2020-04-23 Thread Girish Vasmatkar
You probably do not have OFBIZ_HOME environment variable defined. It should
be the root directory containing your ofbiz installation.

export OFBIZ_HOME=

Best,
Girish

On Thu, Apr 23, 2020 at 4:43 PM Tomek  wrote:

> Hi all,
>
> Is it possible to run ofbiz.jar file without other resources? I have
> used 'gradlew clean build' command to build jar archive. The ofbiz.jar
> archive is located in build/lib/ofbiz.jar directory by default. So I
> have moved this file to another directory and I used 'java -jar
> ofbiz.jar' command to run Ofbiz. Unfortunately I have got the following
> error:
>
> Config.java using configuration file start.properties
> Set OFBIZ_HOME to - /home/tk/Pulpit/test
> Admin socket configured on - /127.0.0.1:10523
> 2020-04-23 12:47:40,224 |main |ContainerLoader   |I|
> [Startup] Loading containers...
> org.apache.ofbiz.base.start.StartupException:
> org.apache.ofbiz.base.container.ContainerException: Could not find
> container config file
> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml (Could
> not find container config file
> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml)
>  at
>
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:80)
>  at
>
> org.apache.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:63)
>  at
>
> org.apache.ofbiz.base.start.StartupControlPanel.loadStartupLoaders(StartupControlPanel.java:218)
>  at
>
> org.apache.ofbiz.base.start.StartupControlPanel.start(StartupControlPanel.java:71)
>  at org.apache.ofbiz.base.start.Start.main(Start.java:85)
> Caused by: org.apache.ofbiz.base.container.ContainerException: Could not
> find container config file
> /home/tk/Pulpit/test/framework/base/config/ofbiz-containers.xml
>  at
>
> org.apache.ofbiz.base.container.ContainerConfig.getConfigurations(ContainerConfig.java:70)
>  at
>
> org.apache.ofbiz.base.container.ContainerLoader.retrieveOfbizContainers(ContainerLoader.java:78)
>  ... 4 more
> 2020-04-23 12:47:40,236 |Thread-3 |ContainerLoader   |I|
> Shutting down containers
>
>


Re: Exposing a REST Webservice in OfBiz

2019-08-22 Thread Girish Vasmatkar
JAX-RS 2.0 should be the version to go with. Then, you can go with whatever
implementation you want to choose from - Jersey, RESTEasy, Apache CXF. You
should be able to set up 2.0 nicely with OFBiz 16.11.

Best,
Girish

On Thu, Aug 22, 2019 at 7:33 AM Lokesh  wrote:

> Hi All,
>
> Is the JAX-RS based implementation to expose RESTFul API's a way forward
> here for OFBiz 16.11 version?
>
> Any pointers or successful attempts?
>
> Regards
> Lokesh
>
>
>
> --
> Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html
>


Re: OFBiz and Camel integration updated

2019-08-05 Thread Girish Vasmatkar
I've created OFBIZ-11147 <https://issues.apache.org/jira/browse/OFBIZ-11147> to
track camel integration. I will provide the plug in along with relevant
details.

Best,
Girish

On Sat, Aug 3, 2019 at 5:07 PM Mathieu Lirzin 
wrote:

> Hello,
>
> Girish Vasmatkar  writes:
>
> > Thanks Bilgin for taking care of pull request. If everyone is okay with
> the
> > changes, I will go ahead and create a ticket for the same to add it as an
> > ofbiz plugin. Let me know of any issues or concerns anyone may have.
> >
> > While writing a few test cases for the various camel components (and I am
> > using CamelTestSupport), it turned out OFBiz test container does not pick
> > them up because it is still based on inheritance (extending TestCase) and
> > not on annotation (any class with @Test annotated methods). I will
> probably
> > elaborate further in a separate thread, but I feel we need to add support
> > for considering such classes as part of test suite as well. We are using
> > JUnit 4 but it is hardly being used except for being available on the
> > classpath. Using JUnit 4 classes will make sure both mechanisms will be
> > supported.
>
> Supporting the JUnit4 runner API which make use of annotations would be
> nice if it helps improving the *sad* state of OFBiz integration tests in
> term of error reporting.
>
> For the record Junit4 annotations are already supported by OFBiz unit
> tests run by ‘./gradlew test’ which by the way should be preferred over
> integration tests in most cases because they run faster.
>
> As a side note, please avoid cross-posting to ‘devel’ and ‘user’ mailing
> lists.
>
> Thanks.
>
> --
> Mathieu Lirzin
> GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37
>


Re: OFBiz and Camel integration updated

2019-08-03 Thread Girish Vasmatkar
Thanks Bilgin for taking care of pull request. If everyone is okay with the
changes, I will go ahead and create a ticket for the same to add it as an
ofbiz plugin. Let me know of any issues or concerns anyone may have.

While writing a few test cases for the various camel components (and I am
using CamelTestSupport), it turned out OFBiz test container does not pick
them up because it is still based on inheritance (extending TestCase) and
not on annotation (any class with @Test annotated methods). I will probably
elaborate further in a separate thread, but I feel we need to add support
for considering such classes as part of test suite as well. We are using
JUnit 4 but it is hardly being used except for being available on the
classpath. Using JUnit 4 classes will make sure both mechanisms will be
supported.

Best,
Girish

On Fri, Jul 19, 2019 at 10:12 AM Girish Vasmatkar <
girish.vasmat...@hotwaxsystems.com> wrote:

> Hi Bilgin
>
> I have created a pull request
> <https://github.com/bibryam/ofbiz-camel/pull/5> for *ofbiz-camel* component
> with the following additions and fixes. Please review and let me know what
> you think. Post review if you feel it is worth incorporating, we can add it
> as an ofbiz plugin.
> Here's the summary -
>
> 1. Auto discovery of RouteBuilders. Considering possibility of a developer
> wanting to create more than one route, I though of scanning available
> RouteBuilder instances in the classpath and then registering them with
> camel context. I think it should be no issue having one RouteBuilder
> configuring single route, instead of all the routes configured by a single
> RouteBuilder.
> 2. Developer can configure property to specify the package where all
> RouteBuilders are packaged and at container initialization, system would
> try to register all available RouteBuilders.
> 3. Additionally, I have also added a custom annotation (CamelRoute) that a
> class can be annotated with. I have not thought about it's implementation
> for now but this may be added in the future. Since, the same can be
> achieved by discovering RouteBuilders, this may not be needed.
> 4. As a future enhancement, I feel the need to introduce XML DSL to
> configure the routes. I am willing to share the design on this if you feel
> it would be worth a feature.
>
> Please let me know if you have any questions related to the pull request.
>
> Best,
> Girish
>
>
> On Wed, Jun 19, 2019 at 12:14 AM Rishi Solanki 
> wrote:
>
>> Dear Taher,
>> Thanks for your reply, I will soon start discussion on dev list. I just go
>> thru the code developed and basics of Apache Camel, seems it would be very
>> helpful to interact OFBiz with outer world. Work is really appreciated,
>> thanks to Bilgin for doing that.
>>
>> Best Regards,
>> --
>> *Rishi Solanki* | Sr Manager, Enterprise Software Development
>> HotWax Systems <http://www.hotwaxsystems.com/>
>> Linkedin: *Rishi Solanki*
>> <https://www.linkedin.com/in/rishi-solanki-62271b7/>
>> Direct: +91-9893287847
>>
>>
>> On Mon, Jun 17, 2019 at 6:09 PM Taher Alkhateeb <
>> slidingfilame...@gmail.com>
>> wrote:
>>
>> > Hopefully the code still works. If yes, I think it would be a good
>> > plugin to add.
>> >
>> > Either way, I think this discussion should perhaps move to the
>> > development mailing list.
>> >
>> > On Mon, Jun 17, 2019 at 1:04 PM Rishi Solanki 
>> > wrote:
>> > >
>> > > Dear Bilgin/Taher,
>> > > I tried to look into the plugins and Jira could not found anything
>> > related.
>> > > Although some discussion is there but I see plugin is not added into
>> > OFBiz
>> > > till now. Can you please share any reference if I missed something?
>> > >
>> > > I see the code in the Bilgin's repo and seems we can take it as ground
>> > and
>> > > test then commit it. If Bilgin allows then extend ofbiz-camel
>> component
>> > to
>> > > next level if possible. And it too late to reply on this thread but I
>> > also
>> > > feel that the plugin should be part of OFBiz repo.
>> > >
>> > > Please suggest if all agree then I can go ahead to create Jira, test,
>> > > enhance and proceed.
>> > >
>> > > Best Regards,
>> > > --
>> > > Rishi Solanki
>> > > Sr Manager, Enterprise Software Development
>> > > *HotWax Systems*
>> > > *Enterprise open source experts*
>> > > cell: +91-98932-87847
>> > > http://www.hotwaxsystems.com
>> > >
>> 

Re: OFBiz and Camel integration updated

2019-07-18 Thread Girish Vasmatkar
Hi Bilgin

I have created a pull request
 for *ofbiz-camel* component
with the following additions and fixes. Please review and let me know what
you think. Post review if you feel it is worth incorporating, we can add it
as an ofbiz plugin.
Here's the summary -

1. Auto discovery of RouteBuilders. Considering possibility of a developer
wanting to create more than one route, I though of scanning available
RouteBuilder instances in the classpath and then registering them with
camel context. I think it should be no issue having one RouteBuilder
configuring single route, instead of all the routes configured by a single
RouteBuilder.
2. Developer can configure property to specify the package where all
RouteBuilders are packaged and at container initialization, system would
try to register all available RouteBuilders.
3. Additionally, I have also added a custom annotation (CamelRoute) that a
class can be annotated with. I have not thought about it's implementation
for now but this may be added in the future. Since, the same can be
achieved by discovering RouteBuilders, this may not be needed.
4. As a future enhancement, I feel the need to introduce XML DSL to
configure the routes. I am willing to share the design on this if you feel
it would be worth a feature.

Please let me know if you have any questions related to the pull request.

Best,
Girish


On Wed, Jun 19, 2019 at 12:14 AM Rishi Solanki 
wrote:

> Dear Taher,
> Thanks for your reply, I will soon start discussion on dev list. I just go
> thru the code developed and basics of Apache Camel, seems it would be very
> helpful to interact OFBiz with outer world. Work is really appreciated,
> thanks to Bilgin for doing that.
>
> Best Regards,
> --
> *Rishi Solanki* | Sr Manager, Enterprise Software Development
> HotWax Systems 
> Linkedin: *Rishi Solanki*
> 
> Direct: +91-9893287847
>
>
> On Mon, Jun 17, 2019 at 6:09 PM Taher Alkhateeb <
> slidingfilame...@gmail.com>
> wrote:
>
> > Hopefully the code still works. If yes, I think it would be a good
> > plugin to add.
> >
> > Either way, I think this discussion should perhaps move to the
> > development mailing list.
> >
> > On Mon, Jun 17, 2019 at 1:04 PM Rishi Solanki 
> > wrote:
> > >
> > > Dear Bilgin/Taher,
> > > I tried to look into the plugins and Jira could not found anything
> > related.
> > > Although some discussion is there but I see plugin is not added into
> > OFBiz
> > > till now. Can you please share any reference if I missed something?
> > >
> > > I see the code in the Bilgin's repo and seems we can take it as ground
> > and
> > > test then commit it. If Bilgin allows then extend ofbiz-camel component
> > to
> > > next level if possible. And it too late to reply on this thread but I
> > also
> > > feel that the plugin should be part of OFBiz repo.
> > >
> > > Please suggest if all agree then I can go ahead to create Jira, test,
> > > enhance and proceed.
> > >
> > > Best Regards,
> > > --
> > > Rishi Solanki
> > > Sr Manager, Enterprise Software Development
> > > *HotWax Systems*
> > > *Enterprise open source experts*
> > > cell: +91-98932-87847
> > > http://www.hotwaxsystems.com
> > >
> > > On Thu, Mar 22, 2018 at 4:00 PM Taher Alkhateeb <
> > slidingfilame...@gmail.com>
> > > wrote:
> > >
> > > > 1- create a JIRA
> > > > 2- provide a patch or reference to your github repo and get some
> > feedback
> > > > 3- commit in $OFBIZ_HOME/plugins/
> > > >
> > > > Given that you're the expert in this domain, I doubt you'll get any
> > > > feedback on the design. However there are a few things which might
> > > > need changing, for example:
> > > > - Putting apache 2 license header in files
> > > > - deleting the data directory given it is empty
> > > > - moving the documentation to src/docs/asciidoc
> > > > - removing some commented-out code
> > > >
> > > > I'd help you out if you'd need my help in anything BTW.
> > > >
> > > > On Thu, Mar 22, 2018 at 12:59 PM, Bilgin Ibryam 
> > wrote:
> > > > > On Wed, Mar 21, 2018 at 4:16 PM, Taher Alkhateeb
> > > > >  wrote:
> > > > >> Super awesome Bilgin,
> > > > >>
> > > > >> Maybe we should consider moving this work to plugins given how
> > useful
> > > > this
> > > > >> feature could be? The license is compatible and the work joins two
> > great
> > > > >> apache projects.
> > > > >
> > > > > Since there is considerable interest in this, it might be worth the
> > > > > effort. What is the processes for adding things into plugins?
> > > > >
> > > > >
> > > > >>
> > > > >> On Wed, Mar 21, 2018, 1:06 PM Bilgin Ibryam 
> > wrote:
> > > > >>
> > > > >>> hi all,
> > > > >>>
> > > > >>> a quick heads up. I've been getting requests to fix the
> ofbiz-camel
> > > > >>> integration demo and finally did it.
> > > > >>> It works with the latest version of OFBiz and Camel
> > > > >>> Also added a nice diagram demonstrating how the integration
> 

Re: Regarding wrapper for listing/getting the data

2019-03-20 Thread Girish Vasmatkar
Hi Rahul

Do you have an external system that wants to talk to OFBiz and thus require
an interface/wrapper/web service to extract data from OFBiz?

Best -
Girish

On Wed, Mar 20, 2019 at 1:24 PM Rahul Utkoor
 wrote:

> Hello all,
>
> We are having a requirement of writing a wrapper for listing/getting the
> data for the functionalities in accounting module of Ofbiz. For some of the
> listing functionalities, Ofbiz UI is tightly coupled with the backend
> implementation. In a crude way we can rewrite all the functionalities using
> entityquery method, but it involves lot of effort to redo it for all of
> them. Is there any optimal way to make use of existing methods?
> Any suggestions are most welcome.
>
> --
>
> *Thanks & Regards,*
> *Rahul.*
>


Re: Updating SSL certificate version

2019-03-06 Thread Girish Vasmatkar
Hi Mathieu

I tried reproducing the issue you're facing with GNU Icecat by providing
the exact cipher suites (that Icecat seems to present in the logs) to my
local OFBiz installation. However, the handshake seems to be working for me.

There seems to be no issue with respect to the protocol version used. It is
all coming down to the fact that Icecat and OFBiz jvm can't settle down on
the cipher suite to choose. As for Epiphany, I could see common cipher
suites sent by both Icecat and Epiphany and yet OFBiz denying handshake.

I'll see if there is more I can extract out of the logs but at the moment I
can't think of a proper solution here apart from installing JCE Unlimited
Strength in the JVM and see if you can get the handshake working.

Thanks and Regards,
Girish


On Wed, Mar 6, 2019 at 1:17 AM Mathieu Lirzin 
wrote:

> with the inlined logs:
>
> Mathieu Lirzin  writes:
>
> > Hello Girish and Jacques,
> >
> > Jacques Le Roux  writes:
> >
> >> Did Girish's answer help? (thanks Girish)
> >
> > Yes it helps alot.
> >
> >> Le 04/03/2019 à 08:09, Girish Vasmatkar a écrit :
> >>>
> >>> Perhaps it will help if you could enable SSL debugging (either in your
> >>> browser or in OFBiz (-Djavax.net.debug=ssl)) and provide details how
> the
> >>> SSL handshake happened. Specifically, it would be interesting to see
> what
> >>> all protocols your browser presented to OFBiz.
> >
> > Here is the log of OFBiz with (-Djavax.net.debug=ssl) with a failing
> > handshake with GNU Icecat:
>
> Using SSLEngineImpl.
> Allow unsafe renegotiation: false
> Allow legacy hello messages: true
> Is initial handshake: true
> Is secure renegotiation: false
> Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 for
> TLSv1
> Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 for
> TLSv1
> Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 for
> TLSv1
> Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 for
> TLSv1
> Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 for
> TLSv1.1
> Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 for
> TLSv1.1
> Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 for
> TLSv1.1
> Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 for
> TLSv1.1
> https-jsse-nio-8443-exec-8, READ: TLSv1 Handshake, length = 512
> *** ClientHello, TLSv1.2
> RandomCookie:  GMT: 1736093966 bytes = { 189, 227, 177, 17, 199, 186, 164,
> 220, 197, 114, 96, 6, 87, 64, 58, 23, 142, 75, 57, 206, 107, 227, 181, 65,
> 168, 6, 76, 155 }
> Session ID:  {193, 60, 237, 251, 184, 155, 76, 93, 36, 222, 130, 94, 35,
> 149, 245, 251, 82, 146, 204, 227, 113, 188, 245, 195, 46, 17, 198, 7, 175,
> 181, 1, 156}
> Cipher Suites: [Unknown 0x13:0x1, Unknown 0x13:0x3, Unknown 0x13:0x2,
> TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
> TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, Unknown 0xcc:0xa9, Unknown
> 0xcc:0xa8, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
> TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
> TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA,
> TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA]
> Compression Methods:  { 0 }
> Extension server_name, server_name: [type=host_name (0), value=localhost]
> Extension extended_master_secret
> Extension renegotiation_info, renegotiated_connection: 
> Extension elliptic_curves, curve names: {unknown curve 29, secp256r1,
> secp384r1, secp521r1, unknown curve 256, unknown curve 257}
> Extension ec_point_formats, formats: [uncompressed]
> Unsupported extension type_35, data:
> Unsupported extension type_16, data:
> 00:0c:02:68:32:08:68:74:74:70:2f:31:2e:31
> Unsupported extension status_request, data: 01:00:00:00:00
> Unsupported extension type_51, data:
> 00:69:00:1d:00:20:15:8a:11:44:3e:65:b5:86:d5:91:8e:46:d4:4c:f1:05:44:48:a7:43:9e:04:69:69:fe:58:f5:80:ce:bc:d2:58:00:17:00:41:04:b7:0f:c1:73:e5:bf:9d:fd:4c:29:24:07:27:9e:77:1e:fb:30:d2:b8:17:b5:87:1e:f6:61:d1:b3:9c:f8:59:2a:cd:63:07:7f:9b:2f:3d:f9:80:a5:e2:f3:09:3d:e5:91:f4:35:2a:d0:ec:aa:89:ed:6d:63:7c:93:74:a6:0e:e9
> Unsupported extension type_43, data: 08:7f:17:03:03:03:02:03:01
> Extension signature_algorithms, signature_algorithms: SHA256withECDSA,
> SHA384withECDSA, SHA512withECDSA, Unknown (hash:0x8, signature:0x4),
> Unknown (hash:0x8, signature:0x5), Unknown (hash:0x8, signature:0x6),
> SHA256withRSA, SHA384withRSA, SHA512withRSA, SHA1withECDSA, SHA1withRSA
> Unsupported extension type_45, data: 01:01
> Unsupported extension type_21, data:
> 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

Re: Updating SSL certificate version

2019-03-03 Thread Girish Vasmatkar
Hi Mathieu

Perhaps it will help if you could enable SSL debugging (either in your
browser or in OFBiz (-Djavax.net.debug=ssl)) and provide details how the
SSL handshake happened. Specifically, it would be interesting to see what
all protocols your browser presented to OFBiz.

It looks like the two could not agree on the cipher suites to use for
encryption unless your browser only supports SSL 2.0 which is outdated or TLS
1.3 which is fairly new . I may be saying obvious here but it will help if
you can turn on SSL debugging and provide details of the SSL handshake. It
will help what ClientHello message looked like when browser initiated
communication with OFBiz. For example, here are the details of connection
to localhost OFBiz on my machine -

Cipher Suite used - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
Protocol used - TLS 1.2.

What I think happened is that both client and server agreed on SSL version
but the server does not support any of the list of cipher suites browser
supports. Please launch OFBiz JVM with javax.net.debug=ssl and that should
help.

Thanks and Regards,
Girish


On Mon, Mar 4, 2019 at 3:54 AM Jacques Le Roux 
wrote:

> Hi Mathieu,
>
> Hold on, I think I can help you but not before tomorrow evening
>
> Hopefully someone will beat me on it...
>
> Jacques
>
> Le 03/03/2019 à 19:00, Mathieu Lirzin a écrit :
> > Hello,
> >
> > I am facing a rather annoying issue when using OFBiz trunk on localhost
> > which prevents me from using my preferred Web browsers.
> >
> > The issue is that some of the browsers I use or more precisely the
> > library used by those browsers to do the TLS handshake seems to not
> > accept the default certificate provided by OFBiz.  Here is the specific
> > error I get on Chromium:
> >
> > --8<---cut here---start->8---
> > This site can’t provide a secure connection localhost uses an
> unsupported protocol.
> > ERR_SSL_VERSION_OR_CIPHER_MISMATCH
> > Unsupported protocol
> > The client and server don't support a common SSL protocol version or
> cipher suite.
> > --8<---cut here---end--->8---
> >
> > Which is similar to what I have on GNU Icecat (→ Firefox)
> >
> > --8<---cut here---start->8---
> > Secure Connection Failed
> >
> > An error occurred during a connection to localhost:8443. Cannot
> communicate securely with peer: no common encryption algorithm(s). Error
> code: SSL_ERROR_NO_CYPHER_OVERLAP
> >
> >  The page you are trying to view cannot be shown because the
> authenticity of the received data could not be verified.
> >  Please contact the website owners to inform them of this problem.
> > --8<---cut here---end--->8---
> >
> > I am using a rather exotic GNU/Linux distribution which is GuixSD so it
> > might be difficult for any of you to reproduce the issue. However my
> > guess is that the format of the OFBiz certificate is considered outdated
> > on my machine.  As a consequence I would like to try to upgrade that
> > certificate to a more recent format version.  Unfortunately I don't know
> > much about SSL/TLS and in particular I don't know what is the proper way
> > to regenerate the OFBiz certificate.
> >
> > The README in “framework/base/config/” mentions the details of that
> > certificate but does not mention the command which has been used to
> > generate it.  Does anyone know how I could achieve the regeneration of
> > tha certificate?
> >
> > Thanks.
> >
>


Re: Integration of ofbiz with rest service

2019-02-20 Thread Girish Vasmatkar
I see couple issues -

   - You have not configured any JAX-RS implementation here. I would expect
   some configuration in web.xml for the JAX-RS runtime system to kick in and
   pick your requests.
   - You have to bypass controller servlet and filter. No need for control
   servlet here. Just get rid of it. This is a separate web module and you do
   not need your requests to go through control servlet.

Since no JAX-RS interceptor or filter or any servlet mapping is
found, @Path annotations won't work.

Best,
Girish

On Wed, Feb 20, 2019 at 12:31 PM snehil maurya 
wrote:

> Hi,
>
> This is a demo plugin we created and we were trying to do some testing in
> this.
> If you can find, in 'OfbizDemoServices' class I have tried to give @Path
> annotations for creating a rest endpoint and using the web.xml I was
> hitting the URL: https://localhost:8443/ofbizDemo/control/ofbizDemoTest/1
> .
>
> But it always returns with an error that the request cannot be found.
> Also, I have not used any request mapping in the controller for this
> endpoint.
>
> Please let us know what we are doing wrong in this case.
>
> Also, as I checked the version of javax.ws.rs-api version is 2.0.1.
>
> Thanks,
> Snehil
>
>
> On Tue, Feb 19, 2019 at 10:43 AM Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
>> What you tried to do (creating a wrapper around ofbiz to delegate the
>> REST requests to ofbiz) is the way forward. This makes more sense. It needs
>> some tweaking because ofbiz does come up (inadvertently) with JAX-RS 1.0
>> dependency and if you try to use a JAX-RS implementation that bundles
>> JAX-RS 2.0, then you are in for some tough times.
>>
>> I presume that is the case with you. I am sure you'd have gotten some
>> exceptions during start-up as you try to register JAX-RS servlet with the
>> web application. It'd help if you can just paste here the exception
>> stacktrace and we'd be in a better position to help you out.
>>
>> Best,
>> Girish
>>
>> On Mon, Feb 18, 2019 at 8:12 PM snehil maurya 
>> wrote:
>>
>>> We tried to create a rest endpoint using JAX-RS, in one of the class in
>>> framework module but then when we ran the ofbiz application that endpoint
>>> was not found. if he can give more insight on how to do it it will help us
>>> greatly
>>>
>>> we were thinking to create a wrapper on top of ofbiz which will act as a
>>> endpoint, and that in turn will communicate with ofbiz code. Resulting both
>>> being on one server, and lesser network traffic.
>>> Will this help
>>>
>>> On Mon, 18 Feb 2019 at 6:45 PM, Girish Vasmatkar <
>>> girish.vasmat...@hotwaxsystems.com> wrote:
>>>
>>>> This is going to be tricky and in my opinion will introduce overhead.
>>>> Possible design decisions (High Level) -
>>>>
>>>> 1. JMS - Have springboot app send JMS messages to a queue/topic and let
>>>> ofbiz subscribe to them. This creates dependency on message broker's
>>>> availability and if the broker is unavailable then your api can not serve
>>>> requests.
>>>> 2. RMI - This is not a recommended way of doing the things. Too much
>>>> complexity for a REST client.
>>>> 3. SOAP - Let ofbiz expose it's services through SOAP and springboot as
>>>> SOAP client. That's just not a good approach.
>>>>
>>>> I can't think of any other way around this.
>>>>
>>>> On Mon, Feb 18, 2019 at 6:17 PM snehil maurya 
>>>> wrote:
>>>>
>>>>> Yes i am planning to launch the springboot app in a separate container.
>>>>>
>>>>> On Mon, 18 Feb 2019 at 5:58 PM, Girish Vasmatkar <
>>>>> girish.vasmat...@hotwaxsystems.com> wrote:
>>>>>
>>>>>> WINK is retired, but there're other frameworks too. Anyway, if you do
>>>>>> decide to take this approach, then you can consider Jersey/CXF/RESTEasy.
>>>>>> You can just use any JAX-RS compliant implementation instead of WINK.
>>>>>>
>>>>>> Coming to you specific requirement - You want to create a (REST)
>>>>>> springboot app to be able to communicate with ofbiz. Do you plan to 
>>>>>> launch
>>>>>> spring boot app in a separate container?
>>>>>>
>>>>>> Best,
>>>>>> Girish
>>>>>>
>>>>>>
>>>>>> On Mon, Feb 18, 2019 at 3:31 PM snehil maurya 
>>>>>> wrote:
>&g

Re: Integration of ofbiz with rest service

2019-02-18 Thread Girish Vasmatkar
What you tried to do (creating a wrapper around ofbiz to delegate the REST
requests to ofbiz) is the way forward. This makes more sense. It needs some
tweaking because ofbiz does come up (inadvertently) with JAX-RS 1.0
dependency and if you try to use a JAX-RS implementation that bundles
JAX-RS 2.0, then you are in for some tough times.

I presume that is the case with you. I am sure you'd have gotten some
exceptions during start-up as you try to register JAX-RS servlet with the
web application. It'd help if you can just paste here the exception
stacktrace and we'd be in a better position to help you out.

Best,
Girish

On Mon, Feb 18, 2019 at 8:12 PM snehil maurya  wrote:

> We tried to create a rest endpoint using JAX-RS, in one of the class in
> framework module but then when we ran the ofbiz application that endpoint
> was not found. if he can give more insight on how to do it it will help us
> greatly
>
> we were thinking to create a wrapper on top of ofbiz which will act as a
> endpoint, and that in turn will communicate with ofbiz code. Resulting both
> being on one server, and lesser network traffic.
> Will this help
>
> On Mon, 18 Feb 2019 at 6:45 PM, Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
>> This is going to be tricky and in my opinion will introduce overhead.
>> Possible design decisions (High Level) -
>>
>> 1. JMS - Have springboot app send JMS messages to a queue/topic and let
>> ofbiz subscribe to them. This creates dependency on message broker's
>> availability and if the broker is unavailable then your api can not serve
>> requests.
>> 2. RMI - This is not a recommended way of doing the things. Too much
>> complexity for a REST client.
>> 3. SOAP - Let ofbiz expose it's services through SOAP and springboot as
>> SOAP client. That's just not a good approach.
>>
>> I can't think of any other way around this.
>>
>> On Mon, Feb 18, 2019 at 6:17 PM snehil maurya 
>> wrote:
>>
>>> Yes i am planning to launch the springboot app in a separate container.
>>>
>>> On Mon, 18 Feb 2019 at 5:58 PM, Girish Vasmatkar <
>>> girish.vasmat...@hotwaxsystems.com> wrote:
>>>
>>>> WINK is retired, but there're other frameworks too. Anyway, if you do
>>>> decide to take this approach, then you can consider Jersey/CXF/RESTEasy.
>>>> You can just use any JAX-RS compliant implementation instead of WINK.
>>>>
>>>> Coming to you specific requirement - You want to create a (REST)
>>>> springboot app to be able to communicate with ofbiz. Do you plan to launch
>>>> spring boot app in a separate container?
>>>>
>>>> Best,
>>>> Girish
>>>>
>>>>
>>>> On Mon, Feb 18, 2019 at 3:31 PM snehil maurya 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I guess the component/ plugin for REST has been decommissioned, as I
>>>>> check on ofbiz official site. Earlier it used wink to do all the rest
>>>>> endpoint generation but it has been retired since april 2017
>>>>>
>>>>> My ask is : i want to develop a rest endpoint in springboot which can
>>>>> communicate with ofbiz
>>>>> I want to know a way to do it .
>>>>>
>>>>> Thanks,
>>>>> Snehil
>>>>>
>>>>> On Mon, 18 Feb 2019 at 2:32 PM, Girish Vasmatkar <
>>>>> girish.vasmat...@hotwaxsystems.com> wrote:
>>>>>
>>>>>> Hey Snehil
>>>>>>
>>>>>> You can have a new component/plugin that could act as a REST web
>>>>>> application. Have you figured out the framework to use to aid the API
>>>>>> development?
>>>>>>
>>>>>> Best,
>>>>>> Girish
>>>>>>
>>>>>> On Mon, Feb 18, 2019 at 10:54 AM snehil27...@gmail.com <
>>>>>> snehil27...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi  All ,
>>>>>>>
>>>>>>> I want to make an application for which i want to use ofbiz as our
>>>>>>> backend framework
>>>>>>> Basically we want to make rest endpoints so that we can hit ofbiz
>>>>>>> and do whatever we want to do with it .
>>>>>>> does anybody have idea how to do it
>>>>>>>
>>>>>>


Re: Integration of ofbiz with rest service

2019-02-18 Thread Girish Vasmatkar
This is going to be tricky and in my opinion will introduce overhead.
Possible design decisions (High Level) -

1. JMS - Have springboot app send JMS messages to a queue/topic and let
ofbiz subscribe to them. This creates dependency on message broker's
availability and if the broker is unavailable then your api can not serve
requests.
2. RMI - This is not a recommended way of doing the things. Too much
complexity for a REST client.
3. SOAP - Let ofbiz expose it's services through SOAP and springboot as
SOAP client. That's just not a good approach.

I can't think of any other way around this.

On Mon, Feb 18, 2019 at 6:17 PM snehil maurya  wrote:

> Yes i am planning to launch the springboot app in a separate container.
>
> On Mon, 18 Feb 2019 at 5:58 PM, Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
>> WINK is retired, but there're other frameworks too. Anyway, if you do
>> decide to take this approach, then you can consider Jersey/CXF/RESTEasy.
>> You can just use any JAX-RS compliant implementation instead of WINK.
>>
>> Coming to you specific requirement - You want to create a (REST)
>> springboot app to be able to communicate with ofbiz. Do you plan to launch
>> spring boot app in a separate container?
>>
>> Best,
>> Girish
>>
>>
>> On Mon, Feb 18, 2019 at 3:31 PM snehil maurya 
>> wrote:
>>
>>> Hi,
>>>
>>> I guess the component/ plugin for REST has been decommissioned, as I
>>> check on ofbiz official site. Earlier it used wink to do all the rest
>>> endpoint generation but it has been retired since april 2017
>>>
>>> My ask is : i want to develop a rest endpoint in springboot which can
>>> communicate with ofbiz
>>> I want to know a way to do it .
>>>
>>> Thanks,
>>> Snehil
>>>
>>> On Mon, 18 Feb 2019 at 2:32 PM, Girish Vasmatkar <
>>> girish.vasmat...@hotwaxsystems.com> wrote:
>>>
>>>> Hey Snehil
>>>>
>>>> You can have a new component/plugin that could act as a REST web
>>>> application. Have you figured out the framework to use to aid the API
>>>> development?
>>>>
>>>> Best,
>>>> Girish
>>>>
>>>> On Mon, Feb 18, 2019 at 10:54 AM snehil27...@gmail.com <
>>>> snehil27...@gmail.com> wrote:
>>>>
>>>>> Hi  All ,
>>>>>
>>>>> I want to make an application for which i want to use ofbiz as our
>>>>> backend framework
>>>>> Basically we want to make rest endpoints so that we can hit ofbiz and
>>>>> do whatever we want to do with it .
>>>>> does anybody have idea how to do it
>>>>>
>>>>


Re: Integration of ofbiz with rest service

2019-02-18 Thread Girish Vasmatkar
WINK is retired, but there're other frameworks too. Anyway, if you do
decide to take this approach, then you can consider Jersey/CXF/RESTEasy.
You can just use any JAX-RS compliant implementation instead of WINK.

Coming to you specific requirement - You want to create a (REST) springboot
app to be able to communicate with ofbiz. Do you plan to launch spring boot
app in a separate container?

Best,
Girish


On Mon, Feb 18, 2019 at 3:31 PM snehil maurya  wrote:

> Hi,
>
> I guess the component/ plugin for REST has been decommissioned, as I check
> on ofbiz official site. Earlier it used wink to do all the rest endpoint
> generation but it has been retired since april 2017
>
> My ask is : i want to develop a rest endpoint in springboot which can
> communicate with ofbiz
> I want to know a way to do it .
>
> Thanks,
> Snehil
>
> On Mon, 18 Feb 2019 at 2:32 PM, Girish Vasmatkar <
> girish.vasmat...@hotwaxsystems.com> wrote:
>
>> Hey Snehil
>>
>> You can have a new component/plugin that could act as a REST web
>> application. Have you figured out the framework to use to aid the API
>> development?
>>
>> Best,
>> Girish
>>
>> On Mon, Feb 18, 2019 at 10:54 AM snehil27...@gmail.com <
>> snehil27...@gmail.com> wrote:
>>
>>> Hi  All ,
>>>
>>> I want to make an application for which i want to use ofbiz as our
>>> backend framework
>>> Basically we want to make rest endpoints so that we can hit ofbiz and do
>>> whatever we want to do with it .
>>> does anybody have idea how to do it
>>>
>>


Re: Integration of ofbiz with rest service

2019-02-18 Thread Girish Vasmatkar
Hey Snehil

You can have a new component/plugin that could act as a REST web
application. Have you figured out the framework to use to aid the API
development?

Best,
Girish

On Mon, Feb 18, 2019 at 10:54 AM snehil27...@gmail.com <
snehil27...@gmail.com> wrote:

> Hi  All ,
>
> I want to make an application for which i want to use ofbiz as our backend
> framework
> Basically we want to make rest endpoints so that we can hit ofbiz and do
> whatever we want to do with it .
> does anybody have idea how to do it
>


Re: How to store big character data in postgres.

2018-10-27 Thread Girish Vasmatkar
Hi Madhi

Why would you want to store a SQL Query in the DB? What's the length of the
query? You can use type "text" with unlimited length.
What's the current data type of the column you're trying to store your
query in? Postgres implements CLOBs using TEXT datatype. You should
consider using TEXT.

Best,
Girish Vasmatkar
HotWax Systems


On Sat, Oct 27, 2018 at 1:48 PM Madhi Krishnan <
madhi.krish...@udyogmandir.in> wrote:

> Hey all..
> I'm trying to store a sql query in postgres..
> but it's not storing because of query being too long..
> can any one tell me how to store big character data ..
> and i got something call ''clob'' .
> if Anyone have come  exapmle of clob will be good..
> Thank You
>


Re: Getting Cannot serialize object of class org.ofbiz.manufacturing.bom.BOMTree Error

2018-09-28 Thread Girish Vasmatkar
Hi Hatim

Deepak's right. Since BOMTree is not serializable, you can't use it as part
of web service call. Making it serializable is not going to be an option
either because then you will have to take care of the complete
serialization chain of BOMTree as well.

Best,
Girish Vasmatkar
HotWax Systems

On Fri, Sep 28, 2018 at 10:30 AM Deepak Nigam 
wrote:

> Hi Hatim,
>
> It seems the issue is occurring because the 'BomTree' class neither
> implements the Serializable interface not extends any class which
> implements the Serializable interface.
>
>
> Thanks & Regards
> --
> Deepak Nigam
>
>
>
> On Fri, Sep 28, 2018 at 10:23 AM hatim.bha...@gmail.com <
> hatim.bha...@gmail.com> wrote:
>
> > Hi Experts,
> >
> > I am getting "Cannot serialize object of class
> > org.ofbiz.manufacturing.bom.BOMTree" error when calling getBOMTree SOAP
> > services using axis2 in my eclipse.
> >
> > If anyone knows how to resolve this please let me know.
> > below is the code which i tried.
> > __
> > private static OMFactory fac;
> >private static OMNamespace omNs;
> >
> >static {
> >   fac = OMAbstractFactory.getOMFactory();
> >   omNs = fac.createOMNamespace("http://ofbiz.apache.org/service/;,
> > "ns1");
> >}
> >
> >public static void main(String[] args) throws AxisFault {
> >
> >   ServiceClient sc = new ServiceClient();
> >   Options opts = new Options();
> >   opts.setTo(new EndpointReference(
> >  "http://ds-sgh632ryd5:8081/webtools/control/SOAPService;));
> >   opts.setAction("getBOMTree");
> >   sc.setOptions(opts);
> >   //Serializable obj = (Serializable)
> sc.sendReceive(createPayLoad());
> >   OMElement res = sc.sendReceive(createPayLoad());
> >
> >   System.out.println(res);
> >}
> >
> >private static OMElement createPayLoad() {
> >
> >   OMElement findPartiesById = fac.createOMElement("getBOMTree",
> omNs);
> >   OMElement mapMap = fac.createOMElement("map-Map", omNs);
> >
> >   findPartiesById.addChild(mapMap);
> >   mapMap.addChild(createMapEntry("bomType", "MANUF_COMPONENT"));
> >   mapMap.addChild(createMapEntry("productId", "10010"));
> >   mapMap.addChild(createMapEntry("login.username", "admin"));
> >   mapMap.addChild(createMapEntry("login.password", "ofbiz"));
> >
> >   return findPartiesById;
> >}
> >
> >private static OMElement createMapEntry(String key, String val) {
> >
> >   OMElement mapEntry = fac.createOMElement("map-Entry", omNs);
> >
> >   // create the key
> >   OMElement mapKey = fac.createOMElement("map-Key", omNs);
> >   OMElement keyElement = fac.createOMElement("std-String", omNs);
> >   OMAttribute keyAttribute = fac.createOMAttribute("value", null,
> key);
> >
> >   mapKey.addChild(keyElement);
> >   keyElement.addAttribute(keyAttribute);
> >
> >   // create the value
> >   OMElement mapValue = fac.createOMElement("map-Value", omNs);
> >   OMElement valElement = fac.createOMElement("std-String", omNs);
> >   OMAttribute valAttribute = fac.createOMAttribute("value", null,
> val);
> >
> >   mapValue.addChild(valElement);
> >   valElement.addAttribute(valAttribute);
> >
> >   // attach to map-Entry
> >   mapEntry.addChild(mapKey);
> >   mapEntry.addChild(mapValue);
> >
> >   return mapEntry;
> >}
> >
> > 
> >
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Hatim
> >
>


Re: OFBiz OutOfMemory and stucked JobPoller issue

2018-09-20 Thread Girish Vasmatkar
Hi Giulio

Since JobPoller mostly deals with creating a ThreadPool and your
description says you seem to have stuck on the poller, it looks like there
is a possibility of hung threads resulting in OOM. But, again, this is
based on cursory glance and might require further investigation based on
thread and heap dump analysis.

Too many hung threads can also resulting in OOM and of course memory leak
can play its part. But you will have a better idea if you have thread and
heap dump with you. Do you see hug thread stacktrace in the log files?

I think it'd help you have JVM properly configured to dump "heap dump" as
soon as OOM occurs. With the team of specialists you have, I am hoping you
already have that configured. For the thread dump, you can always request
JVM (may be with jconsole or jstack or visualvm) to dump "thread dump" as
you see spike in the CPU usage.

It may also be premature to cast doubt on JobPoller only; for,  it is very
much possible for other components to play their part. Things can get a bit
tricky when you are dealing with such a large amount of data. So, it is
best to have thread and heap dump for the necessary analysis and then have
them analysed with your choice of tools to determine the root cause.

Thanks and Best regards,
Girish Vasmatkar
HotWax Systems




On Thu, Sep 20, 2018 at 10:39 PM Taher Alkhateeb 
wrote:

> This smells like a memory leak. The problem is how to pin down the exact
> cause. Maybe something in network setting, or the job poller or something
> else.
>
> Perhaps the first thing to try to do to narrow it down is to run a profiler
> against the JVM to see where the leak is happening. If you can narrow down
> the class / method then it would be much easier to handle.
>
> On Thu, Sep 20, 2018, 7:43 PM Giulio Speri - MpStyle Srl <
> giulio.sp...@mpstyle.it> wrote:
>
> > Hello everyone,
> >
> > hope you're doing good.
> > I am writing, because I am struggling with a quite strange problem, over
> an
> > ofbiz installation, for one of our customers.
> > This installation is composed by two instances of OFBiz (v13.07.03),
> served
> > via an Apache Tomcat webserver, along with a load balancer.
> > The database server is MariaDB.
> >
> > We had the first problems, about 3 weeks ago, when suddenly, the front1
> > (ofbiz instance 1), stopped serving web requests; front2, instead, was
> > still working correctly.
> >
> > Obviously we checked the log files, and we saw that async services were
> > failing; the failure was accompanied by this error line:
> >
> > *Thread "AsyncAppender-async" java.lang.OutOfMemoryError: GC overhead
> limit
> > exceeded*
> >
> > We analyzed the situation with our system specialists, and they told us
> > that the application was highly stressing machine resources (cpu always
> at
> > or near 100%, RAM usage rapidly increasing), until the jvm run out of
> > memory.
> > This "resource-high-consumption situation", occurred only when ofbiz1
> > instance was started with the JobPoller enabled; if the JobPoller was not
> > enabled, ofbiz run with low resource usage.
> >
> > We then focused on the db, to check first of all the dimensions; the
> result
> > was disconcerting; 45GB, mainly divided on four tables: SERVER_HIT (about
> > 18 GB), VISIT (about 15 GB), ENTITY_SYNC_REMOVE (about 8 GB), VISITOR
> > (about 2 GB).
> > All the other tables had a size in the order of few MB each.
> >
> > The first thing we did, was to clear all those tables, reducing
> > considerably the db size.
> > After the cleaning, we tried to start ofbiz1 again, with the JobPoller
> > component enabled; this caused a lot of old scheduled/queued jobs, to
> > execute.
> > Except than for the start-up time, the resource usage of the machine,
> > stabilized around normal to low values (cpu 1-10%).
> > Ofbiz seemed to work (web request was served), but we noticed taht the
> > JobPoller did not schedule or run jobs, anymore.
> > The number of job in "Pending" state in the JobSandbox entity was small
> > (about 20); no Queued, no Failed, no jobs in other states.
> > In addition to this, unfortunately, after few hours, jvm run out of
> memory
> > again.
> >
> > Our jvm has an heap maximum size of 20GB ( we have 32GB on the  machine),
> > so it's not so small, I think.
> > The next step we're going to do is set-up locally the application over
> the
> > same production db to see what happens.
> >
> > Now that I explained the situation, I am going to ask if, in your
> > opinion/experience:
> >
> > Could the JobPoller component be the root (and only)

Re: Unknown Listener at random ports

2018-09-08 Thread Girish Vasmatkar
Hello Sameer

They are most likely to be GradleDaemon or GradleWrapper...

Please use *jps *command that comes bundled with JDK. It will list the name
of the process as well so you'd have an idea what process lis listening on
which port. Just run *jps* and observe the output.

Best,
Girish Vasmatkar
HotWax Systems

On Sat, Sep 8, 2018 at 2:15 PM Deepak Dixit  wrote:

> Hi Sameer,
>
> Your email has been moderated, Please subscribe user mailing list
> http://ofbiz.apache.org/mailing-lists.html
>
> Thanks & Regards
> --
> Deepak Dixit
>
>
> On Sat, Sep 8, 2018 at 6:34 AM, snig...@broadsoft.com <
> snig...@broadsoft.com
> > wrote:
>
> > When starting application, I see following listener:
> >
> > netstat -anp | grep -w LISTEN | grep java
> > (Not all processes could be identified, non-owned process info
> >  will not be shown, you would have to be root to see it all.)
> > tcp0  0 :::1099 :::*
> >   LISTEN  11666/java
> > tcp0  0 :::8080 :::*
> >   LISTEN  11666/java
> > tcp0  0 :::8181 :::*
> >   LISTEN  11666/java
> > tcp0  0 :::38360:::*
> >   LISTEN  11666/java
> > tcp0  0 :::127.0.0.1:10523  :::*
> >   LISTEN  11666/java
> >
> > Port :::38360, this randomly port. (43594, 44559). Every time, I restart
> > it comes with different port. Trying to dig down and find what is
> listener
> > on this port. But couldn't find.
> >
> > 1099, 8080 & 8181, which we set in ofbiz-container. 10523 for Startup.
> But
> > this one really don't know what it is.
> >
> > Any idea, which process is running this?
> >
> > Thanks
> > Sameer
> >
>


Re: E-commerce

2018-08-25 Thread Girish Vasmatkar
Not sure if I am following you but I will give it a try.

Did you mean how Theme.xml file is loaded?

Look at OFBIZ_HOME/framework/base/config/component-load.xml and see below
line




It scans all folders under themes folder assuming they are themes.

And then look at org.apache.ofbiz.widget.model.ThemeFactory.java

Code looks for Theme.xml file to load your theme's definitions.

Thanks and Best Regards,
Girish Vasmatkar

On Sat, Aug 25, 2018 at 3:02 PM Shrilesh Korgaonkar <
shrilesh.korgaon...@udyogmandir.in> wrote:

> Plugins – e-commerce
>
> How does plugins\ecommerce\widget\Theme.xml
>
> Where it is defined as the theme file
>
> Or it automatically loader with others files which are there in the widget
> folder
>


Request to become contributor

2018-08-19 Thread Girish Vasmatkar
Hello All

Please consider my application to become OFBiz contributor. Following are
the details...


Full Name: Girish Vasmatkar
User Name: girish.vasmatkar
Email: girish...@gmail.com

I have already filed ICLA and is signed as well.

https://people.apache.org/unlistedclas.html

Please let me know if any further details are needed from my side.

Thanks and Regards,
Girish Vasmatkar


Re: Trying to create a pdf using xsl-fo

2018-08-14 Thread Girish Vasmatkar
It could be due to various reasons ... I am drilling down such reasons ...
although as Michael mentioned seeing your code will help to pin-point the
root cause.

1. Did you create the file using copy-paste? Chances are that some invalid
characters were introduced.
2. Make sure the XML declaration is at the very top without any preceding
spaces. The XML prolog must be the first thing in the XML. No blank
characters or lines should be there at the start of the file.

I am hoping you can spot the issue in your ftl due to the above obvious
reasons. If it is still not apparent, then please provide the source code.


Thanks,
Girish Vasmatkar
HotWax Systems


On Tue, Aug 14, 2018 at 8:35 PM Madhi Krishnan <
madhi.krish...@udyogmandir.in> wrote:

> Hey all..i'm trying to to make pdf view when user hits a particular
> url..using xsl-fo..
> but it ends up with an error
>
> The Following Errors Occurred:
>
> Unable to transform FO file: org.apache.fop.apps.FOPException:
> org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 6; The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
> javax.xml.transform.TransformerException: org.xml.sax.SAXParseException;
> lineNumber: 6; columnNumber: 6; The processing instruction target matching
> "[xX][mM][lL]" is not allowed.
>
> i have created a fo.ftl file..
>


Re: Confusing download to build project

2018-08-09 Thread Girish Vasmatkar
Hi Ahamd

I believe you do not need to get confused between IntelliJ Gradle and the one 
you have installed on your machine.

The same applies to eclipse if you choose to opt for that. Gradle wrapper will 
take care of the specific grade version is needed to run the cradle script. You 
can work with gradlew commands outside of IntelliJ in the OS terminal window or 
just open a new terminal in IntelliJ as well and then work with it accordingly.

It holds true for eclipse as well. This works for me and should work for you as 
well.

Hope this helps.

Thanks,
Girish Vasmatkar
HotWax Systems



> On 10-Aug-2018, at 2:41 AM, Ahmad Saki  wrote:
> 
> Thank for replying.
> How to embed IntelliJ Gradle with OFBiz gradlew Taher Alkhateeb
> 
> 
> On Thu, Aug 9, 2018, 12:33 PM Taher Alkhateeb 
> wrote:
> 
>> 1- compile time dependencies
>> 2- runtime dependencies
>> 3- probably a different gradle (comes with Intellij, not embedded with
>> OFBiz)
>> 
>> On Wed, Aug 8, 2018 at 10:56 PM, Ahmad Saki  wrote:
>>> 1. When I login using ServerName\User>>> open cmd>>> `gradlew cleanAll
>>> loadDefault` command to download dependencies>>>
>>>`gradlew ofbiz` command to start OFBiz- It stops at 91% [ref:
>>> OFBiz_do-not_complete_start_process.png] although it run on browser.
>>> 
>>> 2. When I login using ServerName\Administrator>>> open cmd>>> `gradlew
>>> ofbiz` command to start OFBiz- It starts downloading again.
>>> 
>>> 3. When I import project to Intellij IDE It starts downloading again.
>>> 
>>> Why is it downloading it repeatedly!
>>> 
>>> Thanks
>>> Ahamd Saki
>>