[jira] [Comment Edited] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419452#comment-15419452 ] Wai edited comment on OFBIZ-7910 at 8/12/16 8:49 PM: - In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block {code} dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } {code} Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. was (Author: wt): In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block {{monospaced}} dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } {{monospaced}} Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419452#comment-15419452 ] Wai edited comment on OFBIZ-7910 at 8/12/16 8:48 PM: - In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block {{monospaced}} dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } {{monospaced}} Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. was (Author: wt): In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block {{monospaced dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } }} Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419452#comment-15419452 ] Wai edited comment on OFBIZ-7910 at 8/12/16 8:48 PM: - In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block {{monospaced dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } }} Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. was (Author: wt): In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419452#comment-15419452 ] Wai commented on OFBIZ-7910: In /ofbiz/build.gradle, I added Taher's suggestion in the 'dependencies' block dependencies { ... compile fileTree(dir: file("${rootDir}/lib"), include: '**/*.jar') ... } Then I added the 3rd party in-house jar into /ofbiz/lib. Ran $ gradle cleanAll build Now my hot-deploy component compiles ok. > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419341#comment-15419341 ] Wai commented on OFBIZ-7910: Thanks, that worked. Wai > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15419060#comment-15419060 ] Wai commented on OFBIZ-7910: I followed your suggestion by modifying /ofbiz/build.gradle and replace the dependency to compile files('$OFBIZ_HOME/lib') and placing myInHouse.jar into /ofbiz/lib After running $ gradlew cleanAll build, a compilation error occurs with mycomponent1 with symbol not found. > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7910) Improve component template(s) to work with the Gradle solution
[ https://issues.apache.org/jira/browse/OFBIZ-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15418980#comment-15418980 ] Wai commented on OFBIZ-7910: Hello Taher, Jacques Here are my findings. My source tree contains the following relevant details... /ofbiz /ofbiz/lib /ofbiz/hot-deploy/mycomponent1 /ofbiz/hot-deploy/mycomponent1/lib mycomponent1 references a class in myInHouse.jar Try1: I placed the myInHouse.jar in /ofbiz/lib Modified /ofbiz/build.gradle and added the following to dependencies compile files('lib') Ran $gradlew cleanAll build The compilation failed on mycomponent1. -the failure is due to mycomponent1 referencing a class that is not found. This class is in myInHouse.jar Try2: I placed the myInHouse.jar into /ofbiz/hot-deploy/mycomponent1/lib Ran $gradlew cleanAll build The compilation was sucessful. Conclusion: My findinds corroborates Taher's comment about searching in the local 'lib' directory of each component to locate the custom jars. I also noticed a deficiency with the build script. Consider a developer creates multiple hot-deploy components. Each component references classes from the same myInHouse.jar. This would require a copy of the same jar in each of the components 'lib' directory. This is very inconvenient. I suggest to modify the script so that each hot-deploy component can reference one myInHouse.jar located in /ofbiz/lib. I hope this helps. Wai > Improve component template(s) to work with the Gradle solution > -- > > Key: OFBIZ-7910 > URL: https://issues.apache.org/jira/browse/OFBIZ-7910 > Project: OFBiz > Issue Type: Sub-task > Components: framework >Reporter: Pierre Smits >Assignee: Jacques Le Roux >Priority: Trivial > Attachments: OFBIZ-7910-Resources-build.gradle.patch > > > Currently the component generated with the createComponent task doesn't have > the means to work with the Gradle build solution visavis dependency > management. > The reason for this is that no build.gradle template exists that need to be > copied into the new component. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-7948. -- Resolution: Not A Problem > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417125#comment-15417125 ] Wai commented on OFBIZ-7948: That worked. Thanks. > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15415356#comment-15415356 ] Wai commented on OFBIZ-7948: Following your instruction by placing the build.gradle into the hot-deploy component, I ran gradlew and received the following error. $ gradlew cleanAll FAILURE: Build failed with an exception. * Where: Build file '/home/me/workspace/ofbiz-trunk/hot-deploy/mycomponent/build.gradle' line: 3 * What went wrong: A problem occurred evaluating project ':hot-deploy:mycomponent'. > Could not find method compile() for arguments [file collection] on project > ':hot-deploy:mycomponent'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15414551#comment-15414551 ] Wai edited comment on OFBIZ-7948 at 8/10/16 1:12 AM: - What if my component makes use of custom in-house jars. Where would one put these jars and how to configure gradle to look for them when compiling? Also how to configure ofbiz to look for these jars when it is run? was (Author: wt): What if my component makes use of custom in-house jars. Where would one put these jars and how to configure gradle to look for them? > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15414551#comment-15414551 ] Wai commented on OFBIZ-7948: What if my component makes use of custom in-house jars. Where would one put these jars and how to configure gradle to look for them? > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-7948) gradle does not recognize paths to 3rd party jars in hot-deploy components
[ https://issues.apache.org/jira/browse/OFBIZ-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-7948: --- Summary: gradle does not recognize paths to 3rd party jars in hot-deploy components (was: ofbiz does not recognize paths of 3rd party jars in hot-deploy components) > gradle does not recognize paths to 3rd party jars in hot-deploy components > -- > > Key: OFBIZ-7948 > URL: https://issues.apache.org/jira/browse/OFBIZ-7948 > Project: OFBiz > Issue Type: Bug > Components: Gradle >Affects Versions: Trunk >Reporter: Wai > > I have a hot-deploy component. This component relies on 3rd party jars. I > have added the paths to the 3rd party jars in the component's > ofbiz-component.xml but the gradle build process complains about not being > able to find symbols in those jars. > This component used to build successfully with ant but now that ofbiz has > switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7948) ofbiz does not recognize paths of 3rd party jars in hot-deploy components
Wai created OFBIZ-7948: -- Summary: ofbiz does not recognize paths of 3rd party jars in hot-deploy components Key: OFBIZ-7948 URL: https://issues.apache.org/jira/browse/OFBIZ-7948 Project: OFBiz Issue Type: Bug Components: Gradle Affects Versions: Trunk Reporter: Wai I have a hot-deploy component. This component relies on 3rd party jars. I have added the paths to the 3rd party jars in the component's ofbiz-component.xml but the gradle build process complains about not being able to find symbols in those jars. This component used to build successfully with ant but now that ofbiz has switched to gradle, the build process fails -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7942) problem with running hot-deploy component
[ https://issues.apache.org/jira/browse/OFBIZ-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15409256#comment-15409256 ] Wai commented on OFBIZ-7942: Thanks for the command. Having used the command you provided, ofbiz is complaining about another issue... Branch: http://svn.apache.org/repos/asf/ofbiz/trunk Revision: [1755113] Built on: 2016-08-05 05:29:43 Java Version: 1.8.0_92 (Oracle Corporation 25.92-b14) FreeMarker template error: Template inclusion failed (for parameter value "ofbizhome://runtime/GitInfo.ftl"): /home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-test/runtime/GitInfo.ftl (No such file or directory) I ran $./gradlew gitInfoFooter with the following console error. Note, I did not checkout the ofbiz source using git. $ gradlew gitInfoFooter :gitInfoFooter fatal: Not a git repository (or any parent up to mount point /home/wt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). :gitInfoFooter FAILED FAILURE: Build failed with an exception. * Where: Build file '/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-test/build.gradle' line: 665 * What went wrong: Execution failed for task ':gitInfoFooter'. > Process 'command 'git'' finished with non-zero exit value 128 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 6.878 secs > problem with running hot-deploy component > - > > Key: OFBIZ-7942 > URL: https://issues.apache.org/jira/browse/OFBIZ-7942 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk >Reporter: Wai > Attachments: mycomponent.tar.bz2 > > > When running a hot-deploy component and exception occurs. I have included the > component for reference purposes. > Used the following steps to create the component... > -ran $ gradlew createComponent -PcomponentName=mycomponent > -PcomponentResourceName=myrscname -PwebappName=mywebapp -PbasePermission=NONE > -added request and associated screen. > -ran $ gradlew cleanAll loadDefault > -ran $ gradlew ofbiz > The console shows the following exception... > FreeMarker template error: Template inclusion failed (for parameter value > "ofbizhome://runtime/SvnInfo.ftl"): > /home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-test/runtime/SvnInfo.ftl > (No such file or directory) FTL stack trace ("~" means nesting-related): > - Failed at: #include "ofbizhome://runtime/SvnInfo... [in template > "component://tomahawk/template/Footer.ftl" at line 26, column 104] Java > stack trace (for programmers): freemarker.core._MiscTemplateException: > [... Exception message was already printed; see it above ...] at > freemarker.core.Include.accept(Include.java:164) at > freemarker.core.Environment.visit(Environment.java:326) at > freemarker.core.Environment.visit(Environment.java:332) at > freemarker.core.Environment.process(Environment.java:305) at > org.apache.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261) > at > org.apache.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) > at > org.apache.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) > at > org.apache.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1321) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) > at > org.apache.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:214) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-7942) problem with running hot-deploy component
[ https://issues.apache.org/jira/browse/OFBIZ-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-7942: --- Attachment: mycomponent.tar.bz2 the hot-deploy component to help create the issue. > problem with running hot-deploy component > - > > Key: OFBIZ-7942 > URL: https://issues.apache.org/jira/browse/OFBIZ-7942 > Project: OFBiz > Issue Type: Bug >Affects Versions: Trunk >Reporter: Wai > Attachments: mycomponent.tar.bz2 > > > When running a hot-deploy component and exception occurs. I have included the > component for reference purposes. > Used the following steps to create the component... > -ran $ gradlew createComponent -PcomponentName=mycomponent > -PcomponentResourceName=myrscname -PwebappName=mywebapp -PbasePermission=NONE > -added request and associated screen. > -ran $ gradlew cleanAll loadDefault > -ran $ gradlew ofbiz > The console shows the following exception... > FreeMarker template error: Template inclusion failed (for parameter value > "ofbizhome://runtime/SvnInfo.ftl"): > /home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-test/runtime/SvnInfo.ftl > (No such file or directory) FTL stack trace ("~" means nesting-related): > - Failed at: #include "ofbizhome://runtime/SvnInfo... [in template > "component://tomahawk/template/Footer.ftl" at line 26, column 104] Java > stack trace (for programmers): freemarker.core._MiscTemplateException: > [... Exception message was already printed; see it above ...] at > freemarker.core.Include.accept(Include.java:164) at > freemarker.core.Environment.visit(Environment.java:326) at > freemarker.core.Environment.visit(Environment.java:332) at > freemarker.core.Environment.process(Environment.java:305) at > org.apache.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261) > at > org.apache.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) > at > org.apache.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) > at > org.apache.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1321) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) > at > org.apache.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) > at > org.apache.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:214) > at > org.apache.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) > at > org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) > at -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7942) problem with running hot-deploy component
Wai created OFBIZ-7942: -- Summary: problem with running hot-deploy component Key: OFBIZ-7942 URL: https://issues.apache.org/jira/browse/OFBIZ-7942 Project: OFBiz Issue Type: Bug Affects Versions: Trunk Reporter: Wai When running a hot-deploy component and exception occurs. I have included the component for reference purposes. Used the following steps to create the component... -ran $ gradlew createComponent -PcomponentName=mycomponent -PcomponentResourceName=myrscname -PwebappName=mywebapp -PbasePermission=NONE -added request and associated screen. -ran $ gradlew cleanAll loadDefault -ran $ gradlew ofbiz The console shows the following exception... FreeMarker template error: Template inclusion failed (for parameter value "ofbizhome://runtime/SvnInfo.ftl"): /home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-test/runtime/SvnInfo.ftl (No such file or directory) FTL stack trace ("~" means nesting-related): - Failed at: #include "ofbizhome://runtime/SvnInfo... [in template "component://tomahawk/template/Footer.ftl" at line 26, column 104] Java stack trace (for programmers): freemarker.core._MiscTemplateException: [... Exception message was already printed; see it above ...] at freemarker.core.Include.accept(Include.java:164) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.process(Environment.java:305) at org.apache.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:261) at org.apache.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) at org.apache.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) at org.apache.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) at org.apache.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1321) at org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.apache.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.apache.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at org.apache.ofbiz.widget.model.ScreenFactory.renderReferencedScreen(ScreenFactory.java:214) at org.apache.ofbiz.widget.model.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:780) at org.apache.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7754) The big problem when load seed.
[ https://issues.apache.org/jira/browse/OFBIZ-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15368271#comment-15368271 ] Wai commented on OFBIZ-7754: Seeing this solution from a customer's point of view may seem counter-intuitive. As previously suggested, I think using a separate readerName such as 'seed' and 'seed-initial' for such a file would be a good idea and have it loaded when it is actually required as a separate step. > The big problem when load seed. > --- > > Key: OFBIZ-7754 > URL: https://issues.apache.org/jira/browse/OFBIZ-7754 > Project: OFBiz > Issue Type: Improvement > Components: framework >Affects Versions: Trunk >Reporter: Kongrath Suankaewmanee >Assignee: Jacques Le Roux > Attachments: OFBIZ-7754.patch > > > Hi All, > Regarding, [OFBIZ-7112|https://issues.apache.org/jira/browse/OFBIZ-7112] > That's good for who start on use the ofbiz with initial setup, but not for > the site that already online and has to update the OFBiz core. Because when > has update OFBiz core they will use command load-seed for update. > The problem is if we use load-seed mean the configuration data that's already > exists will be replaced by the data from this file, > *CommonSystemPropertyData.xml* > So, for my suggestion should change the reader from *seed* to *seed-initial* > or remove systemPropertyValue from the data file. > Thank you, > Kongrath -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7754) The big problem when load seed.
[ https://issues.apache.org/jira/browse/OFBIZ-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15368242#comment-15368242 ] Wai commented on OFBIZ-7754: A property value can be empty. It is the same as commenting out a property. In such a case, a default value in ofbiz code would be used. "...But is it required? Please give me a number of examples where this is needed. As far as I can see a properties value always has content either Y/N or False/True or a value" >>>A sample case in which an issue would result is if nothing is a valid value for a property. In such a scenario, if the user wants to set the database-based version of the property to nothing, the code would proceed to get a value from the file-based counterpart. Which is not what is desired. "...Further, anybody just starting with the system will try to change the most important properties file 'general.properties' and will see no result" >>>It should be noted that the database-based version of property is a special case. Generally, a user using ofbiz in single tenant mode would be using the file-based properties. In such a situation, the user should not have loaded the database-base version into the database. >>>And if seed data for database-based properties need to be loaded, it should be customized according to the user's requirements. In other words, those properties that are not required should be edited out before seeding. > The big problem when load seed. > --- > > Key: OFBIZ-7754 > URL: https://issues.apache.org/jira/browse/OFBIZ-7754 > Project: OFBiz > Issue Type: Improvement > Components: framework >Affects Versions: Trunk >Reporter: Kongrath Suankaewmanee >Assignee: Jacques Le Roux > Attachments: OFBIZ-7754.patch > > > Hi All, > Regarding, [OFBIZ-7112|https://issues.apache.org/jira/browse/OFBIZ-7112] > That's good for who start on use the ofbiz with initial setup, but not for > the site that already online and has to update the OFBiz core. Because when > has update OFBiz core they will use command load-seed for update. > The problem is if we use load-seed mean the configuration data that's already > exists will be replaced by the data from this file, > *CommonSystemPropertyData.xml* > So, for my suggestion should change the reader from *seed* to *seed-initial* > or remove systemPropertyValue from the data file. > Thank you, > Kongrath -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-7754) The big problem when load seed.
[ https://issues.apache.org/jira/browse/OFBIZ-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15368022#comment-15368022 ] Wai edited comment on OFBIZ-7754 at 7/8/16 5:28 PM: Regarding property values: A property can have both a value or empty. 'empty' simply means that a property is commented out or present but contain an empty value. If the value is empty, then a default value would be that coded in the software. Ofbiz modes: I think we need to consider ofbiz in the 1)single tenant mode and 2) multitenant mode. In single tenant mode, ofbiz should only be using the properties files. Using the database to store similar properties would be redundant. If the owner wished to change the properties, one would just modify the relevant properties file. Methods of deployment: I can think of a few methods of ofbiz deployment. Deployment#1) owner of ofbiz(in single tenant mode) is also the user In such a setup. The user would not require a database version of property files. The owner can simply modify the appropriate files. Deployment#2) owner of ofbiz(in single tenant mode) is a provider of ofbiz service to paid users. In such a setup, multiple instances of ofbiz is run on separate ports(perhaps in separate virtual machines). Each ofbiz instance is assigned to a paid user. Hence, a database equivalent of changeable properties is placed in the database associated with each paid user. This would allow the owner to simply modify the property values tailored to each paid user. Based on the previous comments, it seems the paid user is able to load seed data himself. Note#1: I believe this is the original intent of why a database version of properties was created. In such a scenario, if the database property is missing or contains an empty value for a given paid user, ofbiz would fallback on the value of the file-based property value. Note#2: The peculiar interaction between the file-based property and the database-based property as it was coded (ie. before my patch) is as follows. The peculiar aspect is useCase#3. why have a database-based property if it is not going to override the file-based version. Hence, if database-based property has an empty value then it is meant to be empty (and thus use the hardcoded default in ofbiz code). As mentioned in the section "Regarding property values" above. it is possible to have a property that contains an empty value. it is the same as commenting out the property in the file. {noformat} database-based property file-based property result --- --- -- useCase#1:property1=value1property1=value2use property1=value1 useCase#2:nil property1=value2use property1=value2 useCase#3:property1= property1=value2use property1=value2 (this scenario is strange???) {noformat} Deployment#3) owner of ofbiz(in multitenant mode) is a provider of ofbiz service to paid users. In such a setup, one instance of ofbiz is serving multiple paid users. Each paid user accesses his assigned database via the one instance of ofbiz. Each database would contain it's own property values and the paid user has access and is responsible for configuring his own property values. The properties that are available for the paid user to modify is determined by the ofbiz owner. The interaction between database-based property and file-based property is as follows. Notice that if a database-entry is present, its value(or lack thereof) would always override that of the file-based version. {noformat} database-based property file-based property result --- --- -- useCase#1:property1=value1property1=value2use property1=value1 useCase#2:nil property1=value2use property1=value2 useCase#3:property1= property1=value2use property1= {noformat} was (Author: wt): Regarding property values: A property can have both a value or empty. 'empty' simply means that a property is commented out or present but contain an empty value. If the value is empty, then a default value would be that coded in the software. Ofbiz modes: I think we need to consider ofbiz in the 1)single tenant mode and 2) multitenant mode. In single tenant mode, ofbiz should only be using the properties files. Using the database to store similar properties would be redundant. If the owner wished to change the properties, one would just modify the relevant properties file. Methods of deployment: I can think of a few methods of ofbiz deployment. Deployment#1) owner of ofbiz(in single tenant mode) is also the user
[jira] [Commented] (OFBIZ-7754) The big problem when load seed.
[ https://issues.apache.org/jira/browse/OFBIZ-7754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15368022#comment-15368022 ] Wai commented on OFBIZ-7754: Regarding property values: A property can have both a value or empty. 'empty' simply means that a property is commented out or present but contain an empty value. If the value is empty, then a default value would be that coded in the software. Ofbiz modes: I think we need to consider ofbiz in the 1)single tenant mode and 2) multitenant mode. In single tenant mode, ofbiz should only be using the properties files. Using the database to store similar properties would be redundant. If the owner wished to change the properties, one would just modify the relevant properties file. Methods of deployment: I can think of a few methods of ofbiz deployment. Deployment#1) owner of ofbiz(in single tenant mode) is also the user In such a setup. The user would not require a database version of property files. The owner can simply modify the appropriate files. Deployment#2) owner of ofbiz(in single tenant mode) is a provider of ofbiz service to paid users. In such a setup, multiple instances of ofbiz is run on separate ports(perhaps in separate virtual machines). Each ofbiz instance is assigned to a paid user. Hence, a database equivalent of changeable properties is placed in the database associated with each paid user. This would allow the owner to simply modify the property values tailored to each paid user. Based on the previous comments, it seems the paid user is able to load seed data himself. Note#1: I believe this is the original intent of why a database version of properties was created. In such a scenario, if the database property is missing or contains an empty value for a given paid user, ofbiz would fallback on the value of the file-based property value. Note#2: The peculiar interaction between the file-based property and the database-based property as it was coded (ie. before my patch) is as follows. The peculiar aspect is useCase#3. why have a database-based property if it is not going to override the file-based version. Hence, if database-based property has an empty value then it is meant to be empty (and thus use the hardcoded default in ofbiz code). As mentioned in the section "Regarding property values" above. it is possible to have a property that contains an empty value. it is the same as commenting out the property in the file. {{monospaced}} database-based property file-based property result --- --- -- useCase#1:property1=value1property1=value2use property1=value1 useCase#2:nil property1=value2use property1=value2 useCase#3:property1= property1=value2use property1=value2 (this scenario is strange???) {{monospaced}} Deployment#3) owner of ofbiz(in multitenant mode) is a provider of ofbiz service to paid users. In such a setup, one instance of ofbiz is serving multiple paid users. Each paid user accesses his assigned database via the one instance of ofbiz. Each database would contain it's own property values and the paid user has access and is responsible for configuring his own property values. The properties that are available for the paid user to modify is determined by the ofbiz owner. The interaction between database-based property and file-based property is as follows. Notice that if a database-entry is present, its value(or lack thereof) would always override that of the file-based version. {{ database-based property file-based property result --- --- -- useCase#1:property1=value1property1=value2use property1=value1 useCase#2:nil property1=value2use property1=value2 useCase#3:property1= property1=value2use property1= }} > The big problem when load seed. > --- > > Key: OFBIZ-7754 > URL: https://issues.apache.org/jira/browse/OFBIZ-7754 > Project: OFBiz > Issue Type: Improvement > Components: framework >Affects Versions: Trunk >Reporter: Kongrath Suankaewmanee >Assignee: Jacques Le Roux > Attachments: OFBIZ-7754.patch > > > Hi All, > Regarding, [OFBIZ-7112|https://issues.apache.org/jira/browse/OFBIZ-7112] > That's good for who start on use the ofbiz with initial setup, but not for > the site that already online and has to update the OFBiz core. Because when > has update OFBiz core they will use command load-seed for update. > The problem is if we use load-seed mean the configuration data that's
[jira] [Commented] (OFBIZ-7311) Formatting and renaming of the CSS files as per best practices
[ https://issues.apache.org/jira/browse/OFBIZ-7311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15337940#comment-15337940 ] Wai commented on OFBIZ-7311: There is some cleanup required. when the css file name changed to use style.css and stylertl.css, there are still references to maincss.css and mainrtl.css thoughout the source code. > Formatting and renaming of the CSS files as per best practices > -- > > Key: OFBIZ-7311 > URL: https://issues.apache.org/jira/browse/OFBIZ-7311 > Project: OFBiz > Issue Type: Improvement > Components: themes >Affects Versions: Trunk >Reporter: Swapnil M Mane >Assignee: Pranay Pandey >Priority: Minor > Fix For: Upcoming Branch > > Attachments: OFBIZ-7311-bizznesstime.patch, > OFBIZ-7311-bluelight.patch, OFBIZ-7311-droppingcrumbs.patch, > OFBIZ-7311-flatgrey.patch, OFBIZ-7311-multiflex.patch, > OFBIZ-7311-rainbowstone.patch, OFBIZ-7311-renamed-maincss-to-style.patch, > OFBIZ-7311-tomahawk.patch > > > In CSS files, we are having various inconsistency in the formatting of the > code for e.g. we have following types of code formatting > // No space > {code} > ul#preferences-menu a:hover { > text-decoration: none; > } > {code} > // Space of 2 > {code} > div.autocomplete ul { > list-style-type:none; > margin:0; > padding:0; > } > {code} > // Space of 4 > {code} > .control-area a { > font-size: 1.1em; > color: #5CA3D7; > } > {code} > For better readability we should format the existing files with space of 4. > Also for some theme, we named CSS files as *maincss.css* and for some, we > named it as *style.css*. We can rename these file as per best practices for > consistency. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-7112: --- Attachment: OFBIZ-7112.patch bug fix and update seed data > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai >Assignee: Jacques Le Roux > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch, OFBIZ-7112.patch, > OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15330735#comment-15330735 ] Wai commented on OFBIZ-7112: Hi Jacques, I ran the test but I do not see any errors that relates to my modification. Could you provide a console output of your test results. I ran this test... $ ant run-test-suite -Dtest.component=entity -Dtest.suiteName=entitytests Thanks > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai >Assignee: Jacques Le Roux > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15301310#comment-15301310 ] Wai commented on OFBIZ-7112: "isExistInDb" is first defined in MapgetSystemPropertyValue(String, String, Delegator). This method is call by many other methods. "isExistInDb" is used to indicate whether the method is returning an empty value for the property that 'exists' in the database rather than as a result of an absent database entry for the property. The other methods... boolean propertyValueEqualsIgnoreCase(String, String, String, Delegator) String getPropertyValue(String, String, String, Delegator) String getPropertyValue(String, String, Delegator) String getMessage(String, String, Locale, Delegator) uses the above method and needs to decide whether to use the empty value returned (ie. empty value from an existing property entry in database) or decide if it needs to read from the property file (ie. property entry does not exist in database) > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15296619#comment-15296619 ] Wai commented on OFBIZ-7112: I meant that if propertyName exist in the database(even if it's corresponding value is empty), the database should override the properties file. > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15296609#comment-15296609 ] Wai commented on OFBIZ-7112: Initially ofbiz was primarily using properties files. Then corresponding entries were added to database. I'm assuming that we are moving one step towards multitenant support. > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15296604#comment-15296604 ] Wai commented on OFBIZ-7112: That's correct Jacques. My reasoning is that the database overrides the properties file. Otherwise it wouldn't make sense. Hence, if there is an entry in the database (even thought the assoc value is empty) we should use the database. If the properties files are preferred, then remove the entry from the database. > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-7112: --- Attachment: OFBIZ-7112.patch comment cleanup > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch, OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-7112) EntityUtilProperties
[ https://issues.apache.org/jira/browse/OFBIZ-7112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-7112: --- Attachment: OFBIZ-7112.patch > EntityUtilProperties > > > Key: OFBIZ-7112 > URL: https://issues.apache.org/jira/browse/OFBIZ-7112 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-7112.patch > > > Ofbiz reads properties from either a properties file or the > entity:SystemProperty. The way it works previously is that ofbiz reads from > the entity:SystemProperty first and if there is no value associated with the > target propertyname, it would then locate the value from the relevant > properties file. > In other words, if there is a database entry for a property, the database > entry should override the associated properties file. > The issue is that if a database entry exist but the value is empty, it would > look for a value from the properties file. It should not do so. If a > database entry exists for the propertyname of interest, the value should be > taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7112) EntityUtilProperties
Wai created OFBIZ-7112: -- Summary: EntityUtilProperties Key: OFBIZ-7112 URL: https://issues.apache.org/jira/browse/OFBIZ-7112 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai Ofbiz reads properties from either a properties file or the entity:SystemProperty. The way it works previously is that ofbiz reads from the entity:SystemProperty first and if there is no value associated with the target propertyname, it would then locate the value from the relevant properties file. In other words, if there is a database entry for a property, the database entry should override the associated properties file. The issue is that if a database entry exist but the value is empty, it would look for a value from the properties file. It should not do so. If a database entry exists for the propertyname of interest, the value should be taken from the database even if it holds an empty value. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7071) CategoryContent & ProductContent cachekey problem on multi tenant environment
[ https://issues.apache.org/jira/browse/OFBIZ-7071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15290862#comment-15290862 ] Wai commented on OFBIZ-7071: The jira I reported earlier is the one you're referring to. > CategoryContent & ProductContent cachekey problem on multi tenant environment > - > > Key: OFBIZ-7071 > URL: https://issues.apache.org/jira/browse/OFBIZ-7071 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Trunk > Environment: Multitenant >Reporter: Ingo Wolfmayr >Assignee: Jacques Le Roux > Fix For: 14.12.01, 15.12.01 > > Attachments: ofbiz.patch > > > Two tenants: > DEMO1 > DEMO2 > Category Demo 1: > c-0001 > Title: Demo1 > Category Demo 2: > c-0001 > Title: Demo2 > Depending on which tenant did create the cachekey, both tenants will display > the same title. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7066) temporal expression screen missing date dialogbox
Wai created OFBIZ-7066: -- Summary: temporal expression screen missing date dialogbox Key: OFBIZ-7066 URL: https://issues.apache.org/jira/browse/OFBIZ-7066 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Wai go to https://localhost:8443/webtools/control/editTemporalExpression go to frequency expression section notice date dialog button is missing -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-7013) party search form does not properly collapse sections when none|postal|telecom|other selected
[ https://issues.apache.org/jira/browse/OFBIZ-7013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15249940#comment-15249940 ] Wai commented on OFBIZ-7013: Thanks,Wai > party search form does not properly collapse sections when > none|postal|telecom|other selected > - > > Key: OFBIZ-7013 > URL: https://issues.apache.org/jira/browse/OFBIZ-7013 > Project: OFBiz > Issue Type: Improvement > Components: party >Affects Versions: Trunk >Reporter: Wai >Assignee: Jacques Le Roux >Priority: Trivial > Fix For: Upcoming Branch > > Attachments: collapseFindParty.patch > > > go to: /partymgr/control/findparty > click on either none, postal, telecom,other radiobutton. > notice that after clicking on another radiobutton, the section that was > previously expanded is not automatically collapsed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-7014) listing always contain empty first entry
[ https://issues.apache.org/jira/browse/OFBIZ-7014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-7014. -- Resolution: Not A Problem the context variable previousItem was meant to be used with 'position' attribute in form fields. Not in the way that was used in the sample form. > listing always contain empty first entry > - > > Key: OFBIZ-7014 > URL: https://issues.apache.org/jira/browse/OFBIZ-7014 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS >Affects Versions: Trunk >Reporter: Wai > > when creating a or to display a listing. > the first entry is alway empty > Use this sample form to see the symptom: > > > > > operator="equals" value="FINISHED_GOOD"/> > > > > > > /> > > > > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7014) listing always contain empty first entry
Wai created OFBIZ-7014: -- Summary: listing always contain empty first entry Key: OFBIZ-7014 URL: https://issues.apache.org/jira/browse/OFBIZ-7014 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai when creating a or to display a listing. the first entry is alway empty Use this sample form to see the symptom: -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-7013) party search form does not properly collapse sections when none|postal|telecom|other selected
Wai created OFBIZ-7013: -- Summary: party search form does not properly collapse sections when none|postal|telecom|other selected Key: OFBIZ-7013 URL: https://issues.apache.org/jira/browse/OFBIZ-7013 Project: OFBiz Issue Type: Bug Components: party Affects Versions: Trunk Reporter: Wai go to: /partymgr/control/findparty click on either none, postal, telecom,other radiobutton. notice that after clicking on another radiobutton, the section that was previously expanded is not automatically collapsed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6997) code correction for service=findContentParents
[ https://issues.apache.org/jira/browse/OFBIZ-6997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6997: --- Attachment: OFBIZ-6997.patch > code correction for service=findContentParents > -- > > Key: OFBIZ-6997 > URL: https://issues.apache.org/jira/browse/OFBIZ-6997 > Project: OFBiz > Issue Type: Bug > Components: content >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-6997.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6997) code correction for service=findContentParents
Wai created OFBIZ-6997: -- Summary: code correction for service=findContentParents Key: OFBIZ-6997 URL: https://issues.apache.org/jira/browse/OFBIZ-6997 Project: OFBiz Issue Type: Bug Components: content Affects Versions: Trunk Reporter: Wai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6979) All static variables should be revisited for multitenant operation
Wai created OFBIZ-6979: -- Summary: All static variables should be revisited for multitenant operation Key: OFBIZ-6979 URL: https://issues.apache.org/jira/browse/OFBIZ-6979 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai All classes containing static variables should be revisited to make sure they do not present a problem when ofbiz if operating in multitenant mode. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-6973) Flaw in content wrapper cache handling with encoderType
[ https://issues.apache.org/jira/browse/OFBIZ-6973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222675#comment-15222675 ] Wai edited comment on OFBIZ-6973 at 4/2/16 3:19 AM: Since this cache is a static variable in ProductPromoContentWrapper, ProductContentWrapper ProductConfigItemContentWrapper, CategoryContentWrapper, OrderContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. Come to think of it, this should be applied to all classes that define a static UtilCache. Pascal Proulx, Jacque Leroux: Should I create a report for this? was (Author: wt): Since this cache is a static variable in ProductPromoContentWrapper, ProductContentWrapper ProductConfigItemContentWrapper, CategoryContentWrapper, OrderContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. Come to think of it, this should be applied to all classes that define a static UtilCache. Jacque Leroux: Should I create a report for this? > Flaw in content wrapper cache handling with encoderType > --- > > Key: OFBIZ-6973 > URL: https://issues.apache.org/jira/browse/OFBIZ-6973 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Release Branch 14.12 >Reporter: P Proulx >Assignee: Jacques Le Roux > Fix For: 14.12.01, Upcoming Branch, 15.12.01 > > > In Ofbiz 14.12 branch there is a flaw in the patches added in ticket > https://issues.apache.org/jira/browse/OFBIZ-6669 > In ProductContentWrapper#getProductContentAsText and all similar content > wrappers using a cache, the cacheKey does not include the new encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId"); > {code} > This makes it possible for subsequent calls on the same wrapper using > different encoderTypes to return content having the wrong encoding and create > potential security flaws. > The key should include the encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + > encoderType; > {code} > I leave you to find all the occurrences. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-6973) Flaw in content wrapper cache handling with encoderType
[ https://issues.apache.org/jira/browse/OFBIZ-6973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222675#comment-15222675 ] Wai edited comment on OFBIZ-6973 at 4/2/16 3:18 AM: Since this cache is a static variable in ProductPromoContentWrapper, ProductContentWrapper ProductConfigItemContentWrapper, CategoryContentWrapper, OrderContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. Come to think of it, this should be applied to all classes that define a static UtilCache. Jacque Leroux: Should I create a report for this? was (Author: wt): Since this cache is a static variable in ProductPromoContentWrapper, ProductContentWrapper ProductConfigItemContentWrapper, CategoryContentWrapper, OrderContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. > Flaw in content wrapper cache handling with encoderType > --- > > Key: OFBIZ-6973 > URL: https://issues.apache.org/jira/browse/OFBIZ-6973 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Release Branch 14.12 >Reporter: P Proulx >Assignee: Jacques Le Roux > Fix For: 14.12.01, Upcoming Branch, 15.12.01 > > > In Ofbiz 14.12 branch there is a flaw in the patches added in ticket > https://issues.apache.org/jira/browse/OFBIZ-6669 > In ProductContentWrapper#getProductContentAsText and all similar content > wrappers using a cache, the cacheKey does not include the new encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId"); > {code} > This makes it possible for subsequent calls on the same wrapper using > different encoderTypes to return content having the wrong encoding and create > potential security flaws. > The key should include the encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + > encoderType; > {code} > I leave you to find all the occurrences. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-6973) Flaw in content wrapper cache handling with encoderType
[ https://issues.apache.org/jira/browse/OFBIZ-6973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222675#comment-15222675 ] Wai edited comment on OFBIZ-6973 at 4/2/16 3:14 AM: Since this cache is a static variable in ProductPromoContentWrapper, ProductContentWrapper ProductConfigItemContentWrapper, CategoryContentWrapper, OrderContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. was (Author: wt): Since this cache is a static variable in ProductPromoContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. > Flaw in content wrapper cache handling with encoderType > --- > > Key: OFBIZ-6973 > URL: https://issues.apache.org/jira/browse/OFBIZ-6973 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Release Branch 14.12 >Reporter: P Proulx >Assignee: Jacques Le Roux > Fix For: 14.12.01, Upcoming Branch, 15.12.01 > > > In Ofbiz 14.12 branch there is a flaw in the patches added in ticket > https://issues.apache.org/jira/browse/OFBIZ-6669 > In ProductContentWrapper#getProductContentAsText and all similar content > wrappers using a cache, the cacheKey does not include the new encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId"); > {code} > This makes it possible for subsequent calls on the same wrapper using > different encoderTypes to return content having the wrong encoding and create > potential security flaws. > The key should include the encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + > encoderType; > {code} > I leave you to find all the occurrences. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6973) Flaw in content wrapper cache handling with encoderType
[ https://issues.apache.org/jira/browse/OFBIZ-6973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15222675#comment-15222675 ] Wai commented on OFBIZ-6973: Since this cache is a static variable in ProductPromoContentWrapper. I think it would be useful to include the tenantId as well. Since in multitenant mode all tenants would be using the same cache. > Flaw in content wrapper cache handling with encoderType > --- > > Key: OFBIZ-6973 > URL: https://issues.apache.org/jira/browse/OFBIZ-6973 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Release Branch 14.12 >Reporter: P Proulx >Assignee: Jacques Le Roux > Fix For: 14.12.01, Upcoming Branch, 15.12.01 > > > In Ofbiz 14.12 branch there is a flaw in the patches added in ticket > https://issues.apache.org/jira/browse/OFBIZ-6669 > In ProductContentWrapper#getProductContentAsText and all similar content > wrappers using a cache, the cacheKey does not include the new encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId"); > {code} > This makes it possible for subsequent calls on the same wrapper using > different encoderTypes to return content having the wrong encoding and create > potential security flaws. > The key should include the encoderType: > {code} > String cacheKey = productContentTypeId + SEPARATOR + locale + > SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + > encoderType; > {code} > I leave you to find all the occurrences. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6846) party image not shown after upload. eg. page not refreshed
[ https://issues.apache.org/jira/browse/OFBIZ-6846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15112641#comment-15112641 ] Wai commented on OFBIZ-6846: You're right. closing. > party image not shown after upload. eg. page not refreshed > -- > > Key: OFBIZ-6846 > URL: https://issues.apache.org/jira/browse/OFBIZ-6846 > Project: OFBiz > Issue Type: Bug > Components: party >Affects Versions: Trunk >Reporter: Wai > > use this link. > https://localhost:8443/partymgr/control/viewprofile?partyId=DemoCustomer > select 'logo image'. > select 'isPublic=Y' > -after upload, notice the page is not refreshed. as a result, the image is > not shown. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6846) party image not shown after upload. eg. page not refreshed
[ https://issues.apache.org/jira/browse/OFBIZ-6846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6846. -- Resolution: Duplicate > party image not shown after upload. eg. page not refreshed > -- > > Key: OFBIZ-6846 > URL: https://issues.apache.org/jira/browse/OFBIZ-6846 > Project: OFBiz > Issue Type: Bug > Components: party >Affects Versions: Trunk >Reporter: Wai > > use this link. > https://localhost:8443/partymgr/control/viewprofile?partyId=DemoCustomer > select 'logo image'. > select 'isPublic=Y' > -after upload, notice the page is not refreshed. as a result, the image is > not shown. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6846) party image not shown after upload. eg. page not refreshed
Wai created OFBIZ-6846: -- Summary: party image not shown after upload. eg. page not refreshed Key: OFBIZ-6846 URL: https://issues.apache.org/jira/browse/OFBIZ-6846 Project: OFBiz Issue Type: Bug Components: party Affects Versions: Trunk Reporter: Wai use this link. https://localhost:8443/partymgr/control/viewprofile?partyId=DemoCustomer select 'logo image'. select 'isPublic=Y' -after upload, notice the page is not refreshed. as a result, the image is not shown. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6789) image management cannot share images
Wai created OFBIZ-6789: -- Summary: image management cannot share images Key: OFBIZ-6789 URL: https://issues.apache.org/jira/browse/OFBIZ-6789 Project: OFBiz Issue Type: Bug Components: product Affects Versions: Trunk Reporter: Wai -go to https://localhost:8443/catalog/control/Imagemanagement -upload an image for a product -go to https://localhost:8443/catalog/control/ListImageGallery -select the product in question -notice that clicking the 'share' button does nothing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6786) link does not invoke jquery dialog when clicked
Wai created OFBIZ-6786: -- Summary: link does not invoke jquery dialog when clicked Key: OFBIZ-6786 URL: https://issues.apache.org/jira/browse/OFBIZ-6786 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Wai -use demo database. -go to http://demo-trunk-ofbiz.apache.org/example/control/authview/findExampleAjax -click on link cell. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6700) Added some text for French language in ProductEntityLabels.xml, no functional change
Wai created OFBIZ-6700: -- Summary: Added some text for French language in ProductEntityLabels.xml, no functional change Key: OFBIZ-6700 URL: https://issues.apache.org/jira/browse/OFBIZ-6700 Project: OFBiz Issue Type: Bug Components: product Affects Versions: Trunk Reporter: Wai To the native French speaker, please review the translations to make sure that the diction is correct. Thanks in advance. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6700) Added some text for French language in ProductEntityLabels.xml, no functional change
[ https://issues.apache.org/jira/browse/OFBIZ-6700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6700: --- Attachment: OFBIZ-6700.patch > Added some text for French language in ProductEntityLabels.xml, no functional > change > > > Key: OFBIZ-6700 > URL: https://issues.apache.org/jira/browse/OFBIZ-6700 > Project: OFBiz > Issue Type: Bug > Components: product >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-6700.patch > > > To the native French speaker, please review the translations to make sure > that the diction is correct. > Thanks in advance. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6665) ecommerce screen exception
Wai created OFBIZ-6665: -- Summary: ecommerce screen exception Key: OFBIZ-6665 URL: https://issues.apache.org/jira/browse/OFBIZ-6665 Project: OFBiz Issue Type: Bug Components: specialpurpose/ecommerce Affects Versions: Trunk Reporter: Wai Try this. http://localhost:8080/ecommerce/scanning-book-product-CFSV1001-p console output... 2015-10-09 12:39:04,778 |http-bio-8080-exec-7 |ServiceDispatcher |T| Sync service [ecommerce/getProductFeatures] finished in [1] milliseconds 2015-10-09 12:39:04,789 |http-bio-8080-exec-7 |ServiceDispatcher |T| [[ASync service started...- total:0.0,since last(Begin):0.0]] - 'ecommerce / countProductView' 2015-10-09 12:39:04,789 |http-bio-8080-exec-7 |ServiceDispatcher |T| [[ASync service finished...- total:0.0,since last(ASync service sta...):0.0]] - 'ecommerce / countProductView' 2015-10-09 12:39:04,914 |http-bio-8080-exec-7 |ProductConfigWorker |I| New configId created:null 2015-10-09 12:39:04,964 |http-bio-8080-exec-7 |runtime |E| Error executing FreeMarker template freemarker.core._TemplateModelException: Java method "org.ofbiz.product.config.ProductConfigItemContentWrapper.get(String)" takes 1 argument, but 2 was given. FTL stack trace ("~" means nesting-related): - Failed at: #assign image = question.content.get(... [in template "component://ecommerce/webapp/ecommerce/catalog/configproductdetail.ftl" at line 464, column 17] at freemarker.ext.beans.SimpleMethod.unwrapArguments(SimpleMethod.java:67) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:72) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:80) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6627) multiple select dropdown listbox shows only one entry
Wai created OFBIZ-6627: -- Summary: multiple select dropdown listbox shows only one entry Key: OFBIZ-6627 URL: https://issues.apache.org/jira/browse/OFBIZ-6627 Project: OFBiz Issue Type: Bug Components: order Affects Versions: Trunk Reporter: Wai Use this link https://localhost:8443/ordermgr/control/FindRequest Notice the customer request type id, status id, etc -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6600) Scrum total billing cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6600. -- Resolution: Fixed The patch works. Thanks Pierre. > Scrum total billing cause exception > --- > > Key: OFBIZ-6600 > URL: https://issues.apache.org/jira/browse/OFBIZ-6600 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/scrum >Affects Versions: Trunk >Reporter: Wai >Assignee: Pierre Smits > Attachments: OFBIZ-6600-ProductBilling.groovy.patch > > > Use this link > https://localhost:8443/scrum/control/TotalBilling -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6599) Scrum backlog status chart show errors
Wai created OFBIZ-6599: -- Summary: Scrum backlog status chart show errors Key: OFBIZ-6599 URL: https://issues.apache.org/jira/browse/OFBIZ-6599 Project: OFBiz Issue Type: Bug Components: specialpurpose/scrum Affects Versions: Trunk Reporter: Wai Use this link https://localhost:8443/scrum/control/ViewProduct?productId=DEMO-PRODUCT-1 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6599) Scrum backlog status chart show errors
[ https://issues.apache.org/jira/browse/OFBIZ-6599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6599: --- Description: Use this link https://localhost:8443/scrum/control/ViewProduct?productId=DEMO-PRODUCT-1 Also found errors on screen via... https://localhost:8443/scrum/control/ProductStatistics was: Use this link https://localhost:8443/scrum/control/ViewProduct?productId=DEMO-PRODUCT-1 > Scrum backlog status chart show errors > -- > > Key: OFBIZ-6599 > URL: https://issues.apache.org/jira/browse/OFBIZ-6599 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/scrum >Affects Versions: Trunk >Reporter: Wai > > Use this link > https://localhost:8443/scrum/control/ViewProduct?productId=DEMO-PRODUCT-1 > Also found errors on screen via... > https://localhost:8443/scrum/control/ProductStatistics -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6600) Scrum total billing cause exception
Wai created OFBIZ-6600: -- Summary: Scrum total billing cause exception Key: OFBIZ-6600 URL: https://issues.apache.org/jira/browse/OFBIZ-6600 Project: OFBiz Issue Type: Bug Components: specialpurpose/scrum Affects Versions: Trunk Reporter: Wai Use this link https://localhost:8443/scrum/control/TotalBilling -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6601) example component causes exceptions
Wai created OFBIZ-6601: -- Summary: example component causes exceptions Key: OFBIZ-6601 URL: https://issues.apache.org/jira/browse/OFBIZ-6601 Project: OFBiz Issue Type: Bug Components: specialpurpose/example Affects Versions: Trunk Environment: Try this link https://localhost:8443/exampleext/control/EditExample?exampleId=EX02 Reporter: Wai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6591) ofbiz does not compile
[ https://issues.apache.org/jira/browse/OFBIZ-6591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6591: --- Attachment: OFBIZ-6591.patch > ofbiz does not compile > -- > > Key: OFBIZ-6591 > URL: https://issues.apache.org/jira/browse/OFBIZ-6591 > Project: OFBiz > Issue Type: Bug > Components: ALL APPLICATIONS >Affects Versions: Trunk >Reporter: Wai > Attachments: OFBIZ-6591.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6591) ofbiz does not compile
Wai created OFBIZ-6591: -- Summary: ofbiz does not compile Key: OFBIZ-6591 URL: https://issues.apache.org/jira/browse/OFBIZ-6591 Project: OFBiz Issue Type: Bug Components: ALL APPLICATIONS Affects Versions: Trunk Reporter: Wai Attachments: OFBIZ-6591.patch -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6590) Cannot assign a product to a category
Wai created OFBIZ-6590: -- Summary: Cannot assign a product to a category Key: OFBIZ-6590 URL: https://issues.apache.org/jira/browse/OFBIZ-6590 Project: OFBiz Issue Type: Bug Components: product Affects Versions: Trunk Reporter: Wai Use this link: https://localhost:8443/catalog/control/EditProductCategories?productId=CFSV1001 -try adding this product to a category -an exception happens Console output -- 2015-08-29 17:06:42,171 |ttp-bio-8443-exec-11 |Log |I| [CategoryServices.xml#checkCategoryRelatedPermission line 736] Checking category permission, roleCategories= 2015-08-29 17:06:42,172 |ttp-bio-8443-exec-11 |ServiceDispatcher |T| Sync service [catalog/productCategoryGenericPermission] finished in [56] milliseconds 2015-08-29 17:06:42,179 |ttp-bio-8443-exec-11 |ServiceDispatcher |T| Sync service [catalog/checkCategoryPermissionWithViewPurchaseAllow] finished in [125] milliseconds 2015-08-29 17:06:42,180 |ttp-bio-8443-exec-11 |ServiceDispatcher |E| Incoming context (in runSync : safeAddProductToCategory) does not match expected requirements org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [safeAddProductToCategory.fromDate] at org.ofbiz.service.ModelService.validate(ModelService.java:551) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:376) [ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) [ofbiz-service.jar:?] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) [ofbiz-service.jar:?] at org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:340) [ofbiz-webapp.jar:?] at org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:781) [ofbiz-webapp.jar:?] at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:490) [ofbiz-webapp.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6589) popup calendar does not work in all themes
Wai created OFBIZ-6589: -- Summary: popup calendar does not work in all themes Key: OFBIZ-6589 URL: https://issues.apache.org/jira/browse/OFBIZ-6589 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Wai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6583) simple coding cleanup
Wai created OFBIZ-6583: -- Summary: simple coding cleanup Key: OFBIZ-6583 URL: https://issues.apache.org/jira/browse/OFBIZ-6583 Project: OFBiz Issue Type: Bug Components: ALL APPLICATIONS Affects Versions: Trunk Reporter: Wai Code cleanup -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6583) simple coding cleanup
[ https://issues.apache.org/jira/browse/OFBIZ-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6583: --- Attachment: OFBIZ-6583.patch simple coding cleanup - Key: OFBIZ-6583 URL: https://issues.apache.org/jira/browse/OFBIZ-6583 Project: OFBiz Issue Type: Bug Components: ALL APPLICATIONS Affects Versions: Trunk Reporter: Wai Attachments: OFBIZ-6583.patch Code cleanup -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6555) errors and warning after load-extseed and running ofbiz
[ https://issues.apache.org/jira/browse/OFBIZ-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14715947#comment-14715947 ] Wai commented on OFBIZ-6555: I logged this issue against the trunk. I do not know if it applies to prior versions. errors and warning after load-extseed and running ofbiz --- Key: OFBIZ-6555 URL: https://issues.apache.org/jira/browse/OFBIZ-6555 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai Fix For: Upcoming Branch After running $ ant load-extseed The error.log file contains the following: {code} 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not
[jira] [Commented] (OFBIZ-6569) popup calendar icon missing and dialog is transparent in flat grey theme
[ https://issues.apache.org/jira/browse/OFBIZ-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14698919#comment-14698919 ] Wai commented on OFBIZ-6569: It works. Thanks Shi. popup calendar icon missing and dialog is transparent in flat grey theme Key: OFBIZ-6569 URL: https://issues.apache.org/jira/browse/OFBIZ-6569 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk, Upcoming Branch Reporter: Wai Assignee: Shi Jinghai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6569) popup calendar icon missing and dialog is transparent in flat grey theme
[ https://issues.apache.org/jira/browse/OFBIZ-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6569. -- Resolution: Fixed popup calendar icon missing and dialog is transparent in flat grey theme Key: OFBIZ-6569 URL: https://issues.apache.org/jira/browse/OFBIZ-6569 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk, Upcoming Branch Reporter: Wai Assignee: Shi Jinghai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6569) popup calendar icon missing and dialog is transparent in flat grey theme
Wai created OFBIZ-6569: -- Summary: popup calendar icon missing and dialog is transparent in flat grey theme Key: OFBIZ-6569 URL: https://issues.apache.org/jira/browse/OFBIZ-6569 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Wai -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6555) errors and warning after load-extseed and running ofbiz
[ https://issues.apache.org/jira/browse/OFBIZ-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14640717#comment-14640717 ] Wai commented on OFBIZ-6555: Thanks. Closing issue. errors and warning after load-extseed and running ofbiz --- Key: OFBIZ-6555 URL: https://issues.apache.org/jira/browse/OFBIZ-6555 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai After running $ ant load-extseed The error.log file contains the following: 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: statusDelay 2015-07-09 14:19:24,484 |delegator-startup-1 |ModelReader
[jira] [Closed] (OFBIZ-6555) errors and warning after load-extseed and running ofbiz
[ https://issues.apache.org/jira/browse/OFBIZ-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6555. -- Resolution: Fixed errors and warning after load-extseed and running ofbiz --- Key: OFBIZ-6555 URL: https://issues.apache.org/jira/browse/OFBIZ-6555 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai After running $ ant load-extseed The error.log file contains the following: 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: statusDelay 2015-07-09 14:19:24,484 |delegator-startup-1 |ModelReader |I| Finished loading entities; #Entities=878
[jira] [Created] (OFBIZ-6555) ant load-extseed show some errors and warnings
Wai created OFBIZ-6555: -- Summary: ant load-extseed show some errors and warnings Key: OFBIZ-6555 URL: https://issues.apache.org/jira/browse/OFBIZ-6555 Project: OFBiz Issue Type: Bug Reporter: Wai After running $ ant load-extseed The error.log file contains the following: 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: statusDelay 2015-07-09 14:19:24,484 |delegator-startup-1 |ModelReader |I| Finished loading entities; #Entities=878 #ViewEntities=310 #Fields=9170 #Relationships=2981 #AutoRelationships=2196 2015-07-09 14:19:24,497 |delegator-startup-1 |GenericDelegator |I| Doing entity definition check... 2015-07-09 14:19:24,500 |delegator-startup-1 |ModelEntityChecker |I| [initReservedWords] array
[jira] [Commented] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14620953#comment-14620953 ] Wai commented on OFBIZ-6553: Looks good. Closing issue. Thanks ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6553. -- Resolution: Fixed ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6555) ant load-extseed show some errors and warnings
[ https://issues.apache.org/jira/browse/OFBIZ-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6555: --- Description: After running $ ant load-extseed The error.log file contains the following: 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: statusDelay 2015-07-09 14:19:24,484 |delegator-startup-1 |ModelReader |I| Finished loading entities; #Entities=878 #ViewEntities=310 #Fields=9170 #Relationships=2981 #AutoRelationships=2196 2015-07-09 14:19:24,497 |delegator-startup-1 |GenericDelegator |I| Doing entity definition check... 2015-07-09 14:19:24,500 |delegator-startup-1 |ModelEntityChecker |I| [initReservedWords] array length = 1025 2015-07-09 14:19:24,602 |OFBiz-batch-1|GenericDelegator |I| Delegator default
[jira] [Updated] (OFBIZ-6555) errors and warning after load-extseed and running ofbiz
[ https://issues.apache.org/jira/browse/OFBIZ-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6555: --- Summary: errors and warning after load-extseed and running ofbiz (was: ant load-extseed show some errors and warnings) errors and warning after load-extseed and running ofbiz --- Key: OFBIZ-6555 URL: https://issues.apache.org/jira/browse/OFBIZ-6555 Project: OFBiz Issue Type: Bug Reporter: Wai After running $ ant load-extseed The error.log file contains the following: 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:23:09,750 |OFBiz-batch-3|DatabaseUtil |E| Error adding foreign key: ModelEntity was null for related entity name Tenant The ofbiz.log contains the following note worthy errors and warnings: 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawEncryptedValue 2015-07-09 14:19:24,348 |delegator-startup-1 |ModelViewEntity |W| [TestingCryptoRawView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: rawSaltedEncryptedValue 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByItem]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [ModelViewEntity.populateFields] ERROR: could not find ModelField for entity name: ItemIssuanceQuantitySum and field: issuedDateTime 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |E| [OrderItemQuantityReportGroupByProduct]: [populateFields] ERROR: could not find ModelField for field name issuedDateTime on entity with name: ItemIssuanceQuantitySum 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,432 |delegator-startup-1 |ModelViewEntity |W| [OrderItemQuantityReportGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOpen 2015-07-09 14:19:24,435 |delegator-startup-1 |ModelViewEntity |W| [OrderReportSalesGroupByProduct]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: quantityOrdered 2015-07-09 14:19:24,438 |delegator-startup-1 |ModelViewEntity |W| [OrderItemAndShipGrpInvResAndItemSum]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totQuantityAvailable 2015-07-09 14:19:24,446 |delegator-startup-1 |ModelViewEntity |W| [ProjectPhaseTaskActualRatedHoursView]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: totalRatedHours 2015-07-09 14:19:24,453 |delegator-startup-1 |ModelViewEntity |W| [ExampleStatusDetail]: Conversion for complex-alias needs to be implemented for cache and in-memory eval stuff to work correctly, will not work for alias: statusDelay 2015-07-09 14:19:24,484 |delegator-startup-1 |ModelReader
[jira] [Closed] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6553. -- Resolution: Fixed ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14618538#comment-14618538 ] Wai commented on OFBIZ-6553: Thanks for the fix. Closing the issue. ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6550) expand all/collapse all does not work
[ https://issues.apache.org/jira/browse/OFBIZ-6550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6550. -- Resolution: Fixed expand all/collapse all does not work - Key: OFBIZ-6550 URL: https://issues.apache.org/jira/browse/OFBIZ-6550 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai go to https://localhost:8443/catalog/control/EditProduct?productId=GZ-1006-1 click on 'expand all' button...does not work click on 'collapse all' button.does not work -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Reopened] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai reopened OFBIZ-6553: After installing the seed data. I discovered some warning messages when ofbiz is run. I'm using postgresql with character set utf8. console output: 2015-07-08 19:29:07,345 |delegator-startup-1 |ModelReader |I| Finished loading entities; #Entities=878 #ViewEntities=323 #Fields=9170 #Relationships=2982 #AutoRelationships=2197 2015-07-08 19:29:07,375 |delegator-startup-1 |GenericDelegator |I| Doing entity definition check... 2015-07-08 19:29:07,381 |delegator-startup-1 |ModelEntityChecker |I| [initReservedWords] array length = 1025 2015-07-08 19:29:07,507 |delegator-startup-1 |GenericDelegator |W| =-=-=-=-= Found 4 warnings when checking the entity definitions: 2015-07-08 19:29:07,508 |delegator-startup-1 |GenericDelegator |W| [FieldNotUnique] Field [userLoginId of entity SecmgrSgrpAssignedUserMemberUsersView is not unique for that entity. 2015-07-08 19:29:07,508 |delegator-startup-1 |GenericDelegator |W| [RelFKNameGT18] The foreign key named LINKEDIN_USER_STORE (length:19) was greater than 18 characters in length for relation ProductStore of entity LinkedInUser. 2015-07-08 19:29:07,508 |delegator-startup-1 |GenericDelegator |W| [RelFKNameGT18] The foreign key named STORE_OAUTH_LINKEDIN (length:20) was greater than 18 characters in length for relation ProductStore of entity OAuth2LinkedIn. 2015-07-08 19:29:07,508 |delegator-startup-1 |GenericDelegator |W| [RelationNameNotUnique] Relation EnumerationType of entity ThirdPartyLogin is not unique for that entity. 2015-07-08 19:29:07,512 |OFBiz-batch-1|GenericDelegator |I| Delegator default initializing helper localposttenant for entity group org.ofbiz.tenant. 2015-07-08 19:29:07,512 |OFBiz-batch-2|GenericDelegator |I| Delegator default initializing helper localpostolap for entity group org.ofbiz.olap. 2015-07-08 19:29:07,516 |OFBiz-batch-3|GenericDelegator |I| Delegator default initializing helper localpostgres for entity group org.ofbiz. 2015-07-08 19:29:07,521 |OFBiz-batch-3|GenericDelegator |I| Doing database check as requested in entityengine.xml with addMissing=true 2015-07-08 19:29:07,521 |OFBiz-batch-1|GenericDelegator |I| Doing database check as requested in entityengine.xml with addMissing=true ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai Assignee: Shi Jinghai $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows
[jira] [Commented] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14617233#comment-14617233 ] Wai commented on OFBIZ-6548: Shi, thanks for looking into the issue. I was using a postgresql when this report was created. I reinstalled fresh demo data into ofbiz for postgresql and the issue does not happen anymore. Perhaps it was stale data in my database related to themes that was causing the issue. I'll close this issue. setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Environment: running on ubuntu 15.04 java: Java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Using following browsers: Chromium v43.0.2357.81 Firefox v38.0 Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Closed] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai closed OFBIZ-6548. -- Resolution: Not A Problem setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Environment: running on ubuntu 15.04 java: Java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Using following browsers: Chromium v43.0.2357.81 Firefox v38.0 Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6553) ant load-extseed cause exception
Wai created OFBIZ-6553: -- Summary: ant load-extseed cause exception Key: OFBIZ-6553 URL: https://issues.apache.org/jira/browse/OFBIZ-6553 Project: OFBiz Issue Type: Bug Reporter: Wai $ ant load-extseed causes exception [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6553) ant load-extseed cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6553: --- Description: $ ant load-extseed on a fresh database [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] 2015-07-07 16:15:06,309 |main |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] java.lang.Exception: Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][lastUpdatedTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][loginMethTypeId,OAuth2(java.lang.String)][loginProviderId,LinkedIn(java.lang.String)][productStoreId,9000(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.THIRD_PARTY_LOGIN (PRODUCT_STORE_ID, LOGIN_METH_TYPE_ID, LOGIN_PROVIDER_ID, FROM_DATE, THRU_DATE, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: insert or update on table third_party_login violates foreign key constraint prod_store_logins [java] Detail: Key (product_store_id)=(9000) is not present in table product_store.)). Rolling back transaction. [java] at org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:374) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:313) [ofbiz-entity.jar:?] [java] at org.ofbiz.entity.GenericDelegator.create(GenericDelegator.java:925) [ofbiz-entity.jar:?] was: $ ant load-extseed causes exception [java] 2015-07-07 16:15:06,249 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Finished 3 values from file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2CommonSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Beginning import from URL: file:/ofbiz-trunk/specialpurpose/passport/data/OAuth2LinkedInSeedData.xml [java] 2015-07-07 16:15:06,298 |main |EntitySaxReader |I| Transaction Timeout set to 2 hours (7200 seconds) [java] 2015-07-07 16:15:06,309 |main |GenericDelegator |E| Failure in create operation for entity [ThirdPartyLogin]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ThirdPartyLogin][createdStamp,2015-07-07 16:15:06.306(java.sql.Timestamp)][createdTxStamp,2015-07-07 16:15:06.298(java.sql.Timestamp)][fromDate,2011-01-01 00:00:00.0(java.sql.Timestamp)][lastUpdatedStamp,2015-07-07
[jira] [Comment Edited] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14615367#comment-14615367 ] Wai edited comment on OFBIZ-6548 at 7/6/15 5:52 PM: I've updated the environment section of this report. The issue applies to both firefox and chromium. This applies to the latest trunk sources. Also notice that the 'next', 'last', jumping to page does not work. Thanks was (Author: wt): I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. This applies to the latest trunk sources. Also notice that the 'next', 'last', jumping to page does not work. Thanks setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Environment: running on ubuntu 15.04 java: Java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Using following browsers: Chromium v43.0.2357.81 Firefox v38.0 Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6550) expand all/collapse all does not work
Wai created OFBIZ-6550: -- Summary: expand all/collapse all does not work Key: OFBIZ-6550 URL: https://issues.apache.org/jira/browse/OFBIZ-6550 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai go to https://localhost:8443/catalog/control/EditProduct?productId=GZ-1006-1 click on 'expand all' button...does not work click on 'collapse all' button.does not work -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6548: --- Environment: running on ubuntu 15.04 Using following... Chromium v43.0.2357.81 Firefox v38.0 setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Environment: running on ubuntu 15.04 Using following... Chromium v43.0.2357.81 Firefox v38.0 Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-6548: --- Environment: running on ubuntu 15.04 java: Java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Using following browsers: Chromium v43.0.2357.81 Firefox v38.0 was: running on ubuntu 15.04 Using following... Chromium v43.0.2357.81 Firefox v38.0 setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Environment: running on ubuntu 15.04 java: Java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) Using following browsers: Chromium v43.0.2357.81 Firefox v38.0 Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14615367#comment-14615367 ] Wai edited comment on OFBIZ-6548 at 7/6/15 5:43 PM: I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. This applies to the latest trunk sources. Thanks was (Author: wt): I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14615367#comment-14615367 ] Wai commented on OFBIZ-6548: I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (OFBIZ-6548) setting new view size does not auto update screen.
[ https://issues.apache.org/jira/browse/OFBIZ-6548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14615367#comment-14615367 ] Wai edited comment on OFBIZ-6548 at 7/6/15 5:46 PM: I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. This applies to the latest trunk sources. Also notice that the 'next', 'last', jumping to page does not work. Thanks was (Author: wt): I'm using the following... Chromium v43.0.2357.81 Firefox v38.0 running on ubuntu 15.04 The issue applies to both firefox and chromium. This applies to the latest trunk sources. Thanks setting new view size does not auto update screen. -- Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai Assignee: Shi Jinghai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6548) setting new view size does not auto update screen.
Wai created OFBIZ-6548: -- Summary: setting new view size does not auto update screen. Key: OFBIZ-6548 URL: https://issues.apache.org/jira/browse/OFBIZ-6548 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: Trunk Reporter: Wai Go to https://localhost:8443/catalog/control/EditFeatureTypes Select another value for 'items per page'. Notice the page does not refresh. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6542) TERRITORY type not displayed in State/Province dropdown list
Gan Hong-Wai created OFBIZ-6542: --- Summary: TERRITORY type not displayed in State/Province dropdown list Key: OFBIZ-6542 URL: https://issues.apache.org/jira/browse/OFBIZ-6542 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: 13.07.02 Reporter: Gan Hong-Wai Priority: Minor On the Create New Party Page, the State/Province dropdown list does not show regions marked out as TERRITORY. Similar issue: OFBIZ-1737. File: framework/common/src/org/ofbiz/common/CommonWorkers.java Line 144 is missing: EntityCondition.makeCondition(geoTypeId, TERRITORY), -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6512) service engine notification cause exception
Wai created OFBIZ-6512: -- Summary: service engine notification cause exception Key: OFBIZ-6512 URL: https://issues.apache.org/jira/browse/OFBIZ-6512 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Wai In serviceengine.xml, when notification group, default.success.main, is enabled, exception occurs. eg. service-config ... ... notification-group name=default.success.main notification subject=Service Success ${model.serviceName} screen=component://content/widget/EmailScreens.xml#ServiceNotification/ notify type=fromf...@example.com/notify notify type=tot...@example.com/notify /notification-group 2015-06-17 08:12:03,832 |http-bio-8443-exec-1 |ServiceDispatcher |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen' 2015-06-17 08:12:03,833 |http-bio-8443-exec-1 |TransactionUtil |W| Not committing transaction, status is No Transaction (6) 2015-06-17 08:12:03,833 |http-bio-8443-exec-1 |ServiceDispatcher |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen' 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil |I| Transaction rolled back 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil |W| Not committing transaction, status is No Transaction (6) 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |ServiceDispatcher |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / sendMailFromScreen' 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil |I| Transaction rolled back 2015-06-17 08:12:03,837 |http-bio-8443-exec-1 |TransactionUtil |W| Not committing transaction, status is No Transaction (6) 2015-06-17 08:12:03,838 |http-bio-8443-exec-1 |ModelNotification |E| null org.ofbiz.service.GenericServiceException: Service [sendMailFromScreen] target threw an unexpected exception (null) at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:115) ~[ofbiz-service.jar:?] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) ~[ofbiz-service.jar:?] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:103) ~[ofbiz-service.jar:?] at org.ofbiz.service.ModelNotification.callNotify(ModelNotification.java:54) ~[ofbiz-service.jar:?] at org.ofbiz.service.ModelService.evalNotifications(ModelService.java:1020) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:554) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) ~[ofbiz-service.jar:?] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:88) ~[ofbiz-service.jar:?] at org.ofbiz.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:172) ~[ofbiz-widget.jar:?] at org.ofbiz.widget.renderer.ScreenRenderer.populateBasicContext(ScreenRenderer.java:150) ~[ofbiz-widget.jar:?] at org.ofbiz.widget.renderer.ScreenRenderer.populateContextForService(ScreenRenderer.java:320) ~[ofbiz-widget.jar:?] at org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:465) ~[ofbiz-common.jar:?] at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31] at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31] at org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) ~[ofbiz-service.jar:?] at org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:395) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:227) ~[ofbiz-service.jar:?] at org.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:103) ~[ofbiz-service.jar:?] at org.ofbiz.service.ModelNotification.callNotify(ModelNotification.java:54) ~[ofbiz-service.jar:?] at org.ofbiz.service.ModelService.evalNotifications(ModelService.java:1020) ~[ofbiz-service.jar:?] at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:554)
[jira] [Commented] (OFBIZ-5949) ofbizsetup create product store cause exception, remove use of temp file to load entity data
[ https://issues.apache.org/jira/browse/OFBIZ-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14577793#comment-14577793 ] Wai commented on OFBIZ-5949: There seems to be a confusion about the 1) ofbizsetup feature 2) multitenancy consideration 3) ofbizsetup as it operates at this time As I see it... 1) ofbizsetup feature It is simply a feature that allows a new owner to configure his ofbiz with initial data to start using his ofbiz. eg. 1st party and username, product, catalog, categories, product store, and most importantly general ledger setup for the owner organization. This feature is friendly and convenient but not necessary as the owner can always go to the appropriate components to configure the above data provided he know where to go and what needs to be done. By 'owner' I mean a) The party that owns the ofbiz installation. ie general.properties/mulitenant=N b) The party that is the owner of the tenant that was assigned to him by a multitenant ofbiz provider. ie general.properties/mulitenant=Y 2) multitenant consideration As far as I'm aware, this is already multitenant aware. Ie. the owner logs in to his ofbiz installation using a preconfigured username with admin authorizations or logs in as a preconfigured tenant with associated tenantId and username with admin authorizations for that tenant. 3) ofbizsetup as it operates at this time It is for this point this jira report was created. As it exist, ofbizsetup is using a temp file to load template data (eg. ProductStoreData.xml) into the database. In a multitenant setup, this method is prone to data corruption if 2 tenants are loading their respective template data file. I think the confusion was further aggrevated by the fact that there is also another enhancement to the code. And that is the use of FlexibleStringExpander to load template data files. ie note the the change in the placeholder in template files... eg. ProductStoreData.xml PRODUCTSTOREID to ${productStoreId} ORGPARTYID to ${orgPartyId} etc. As an additional comment, I'm not familiar with the discussion and history of ofbizsetup that Pierre Smits was referring to. I think that is more related to the infrastructure of ofbiz. This jira was not about that. This jira is simply a bug fix + enhancement. ofbizsetup create product store cause exception, remove use of temp file to load entity data Key: OFBIZ-5949 URL: https://issues.apache.org/jira/browse/OFBIZ-5949 Project: OFBiz Issue Type: Bug Components: commonext/setup Affects Versions: Trunk Reporter: Wai Assignee: Jacques Le Roux Attachments: OFBIZ-5949.patch, OFBIZ-5949.patch, OFBIZ-5949.patch The exception is caused by foreign key constraint violation between ShipmentCostEstimate and CarrierShipmentMethod entities. Currently, when creating a new product store using ofbizsetup component default data associated with the product store is loaded into the database using the following steps. 1. read default data from entity xml file and replace specific items in the read data and write to temp file. 2. use service=parseEntityXmlFile to load the processed file into database. The issue with this method is that the temp file can present a problem when ofbiz is operating in multitenant mode. The solution is to modify the relevant services so that no temp file needs generated. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6460) select survey for product store cause exception
Wai created OFBIZ-6460: -- Summary: select survey for product store cause exception Key: OFBIZ-6460 URL: https://issues.apache.org/jira/browse/OFBIZ-6460 Project: OFBiz Issue Type: Bug Components: product Affects Versions: Trunk Reporter: Wai Using demo data -go to https://localhost:8443/catalog/control/EditProductStore?productStoreId=90101 -click on survey tab ...console output... 2015-06-05 13:56:07,551 |http-bio-8443-exec-7 |RequestHandler |I| Rendering View [EditProductStoreSurveys], sessionId=9B85D3D48AC8A8494125D9C3D64B8C3D.jvm1 2015-06-05 13:56:07,553 |http-bio-8443-exec-7 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [1] milliseconds 2015-06-05 13:56:07,580 |http-bio-8443-exec-7 |ServiceDispatcher |T| Sync service [catalog/getVisualThemeResources] finished in [26] milliseconds 2015-06-05 13:56:07,643 |http-bio-8443-exec-7 |ScreenFactory |I| Got 21 screens in 0.007s from: file:/zzz/ofbiz-trunk-wrk-restapi/applications/product/widget/catalog/StoreScreens.xml 2015-06-05 13:56:07,692 |http-bio-8443-exec-7 |ScriptUtil |W| Error running script at location [component://product/webapp/catalog/WEB-INF/actions/store/EditProductStoreSurveys.groovy]: java.lang.IllegalArgumentException: Passed List had more than one value. java.lang.IllegalArgumentException: Passed List had more than one value. at org.ofbiz.entity.util.EntityUtil.getOnly(EntityUtil.java:107) ~[ofbiz-entity.jar:?] at org.ofbiz.entity.util.EntityQuery.queryOne(EntityQuery.java:417) ~[ofbiz-entity.jar:?] at org.ofbiz.entity.util.EntityQuery$queryOne$3.call(Unknown Source) ~[?:?] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) ~[groovy-all-2.2.1.jar:2.2.1] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) ~[groovy-all-2.2.1.jar:2.2.1] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) ~[groovy-all-2.2.1.jar:2.2.1] at EditProductStoreSurveys.run(EditProductStoreSurveys.groovy:35) ~[?:?] -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (OFBIZ-6434) In ofbizsetup, create product category causes exception
Wai created OFBIZ-6434: -- Summary: In ofbizsetup, create product category causes exception Key: OFBIZ-6434 URL: https://issues.apache.org/jira/browse/OFBIZ-6434 Project: OFBiz Issue Type: Bug Components: commonext/setup Affects Versions: Trunk Reporter: Wai in ofbizsetup. create 1st productCategory gives exception. Seems that ofbiz tries to auto create a promotions category but the resulting productCategoryId is too long for for the database field defined as a varchar(20). My database is currently configured to use utf8. ...console output... INSERT INTO public.PRODUCT_CATEGORY (PRODUCT_CATEGORY_ID, PRODUCT_CATEGORY_TYPE_ID, PRIMARY_PARENT_CATEGORY_ID, CATEGORY_NAME, DESCRIPTION, LONG_DESCRIPTION, CATEGORY_IMAGE_URL, LINK_ONE_IMAGE_URL, LINK_TWO_IMAGE_URL, DETAIL_SCREEN, SHOW_IN_SELECT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES ('MYCOCLG1_ID_PROMOTIONS', 'CATALOG_CATEGORY', NULL, 'MYCOCLG1_ID Promotions', NULL, NULL, NULL, NULL, NULL, 'component://ecommerce/widget/CatalogScreens.xml#categorydetailmatrix', NULL, '2015-05-29 13:03:32.74 -04:00:00', '2015-05-29 13:03:32.587000 -04:00:00', '2015-05-29 13:03:32.74 -04:00:00', '2015-05-29 13:03:32.587000 -04:00:00') 2015-05-29 13:03:32,743 |ttp-bio-8443-exec-10 |GenericDelegator |E| Failure in create operation for entity [ProductCategory]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:ProductCategory][categoryName,MYCOCLG1_ID Promotions(java.lang.String)][createdStamp,2015-05-29 13:03:32.74(java.sql.Timestamp)][createdTxStamp,2015-05-29 13:03:32.587(java.sql.Timestamp)][detailScreen,component://ecommerce/widget/CatalogScreens.xml#categorydetailmatrix(java.lang.String)][lastUpdatedStamp,2015-05-29 13:03:32.74(java.sql.Timestamp)][lastUpdatedTxStamp,2015-05-29 13:03:32.587(java.sql.Timestamp)][productCategoryId,MYCOCLG1_ID_PROMOTIONS(java.lang.String)][productCategoryTypeId,CATALOG_CATEGORY(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.PRODUCT_CATEGORY (PRODUCT_CATEGORY_ID, PRODUCT_CATEGORY_TYPE_ID, PRIMARY_PARENT_CATEGORY_ID, CATEGORY_NAME, DESCRIPTION, LONG_DESCRIPTION, CATEGORY_IMAGE_URL, LINK_ONE_IMAGE_URL, LINK_TWO_IMAGE_URL, DETAIL_SCREEN, SHOW_IN_SELECT, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: value too long for type character varying(20))) -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (OFBIZ-5949) ofbizsetup create product store cause exception, remove use of temp file to load entity data
[ https://issues.apache.org/jira/browse/OFBIZ-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wai updated OFBIZ-5949: --- Attachment: OFBIZ-5949.patch OFBIZ-6216 solved the foreign key violation issue related to NEXT_DAY_AIR in the template file ProductStoreData.xml. Now this patch contains only the modifications related to a multitenant friendly way of loading data from a template file (eg. ProductStoreData.xml). ofbizsetup create product store cause exception, remove use of temp file to load entity data Key: OFBIZ-5949 URL: https://issues.apache.org/jira/browse/OFBIZ-5949 Project: OFBiz Issue Type: Bug Components: commonext/setup Affects Versions: Trunk Reporter: Wai Assignee: Jacques Le Roux Attachments: OFBIZ-5949.patch, OFBIZ-5949.patch, OFBIZ-5949.patch The exception is caused by foreign key constraint violation between ShipmentCostEstimate and CarrierShipmentMethod entities. Currently, when creating a new product store using ofbizsetup component default data associated with the product store is loaded into the database using the following steps. 1. read default data from entity xml file and replace specific items in the read data and write to temp file. 2. use service=parseEntityXmlFile to load the processed file into database. The issue with this method is that the temp file can present a problem when ofbiz is operating in multitenant mode. The solution is to modify the relevant services so that no temp file needs generated. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6313) change language cause exception
[ https://issues.apache.org/jira/browse/OFBIZ-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14519437#comment-14519437 ] Wai commented on OFBIZ-6313: $ java -version java version 1.8.0_31 Java(TM) SE Runtime Environment (build 1.8.0_31-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) change language cause exception --- Key: OFBIZ-6313 URL: https://issues.apache.org/jira/browse/OFBIZ-6313 Project: OFBiz Issue Type: Bug Components: ALL APPLICATIONS Affects Versions: Trunk Reporter: Wai select the link to change language. ...console output... 2015-04-28 23:31:34,542 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [5] milliseconds 2015-04-28 23:31:34,567 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getVisualThemeResources] finished in [24] milliseconds 2015-04-28 23:31:34,724 |http-bio-8443-exec-3 |ScreenFactory |I| Got 9 screens in 0.064s from: file:/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-wrk-restapi/framework/common/widget/LookupScreens.xml 2015-04-28 23:31:34,741 |http-bio-8443-exec-3 |ScreenFactory |I| Got 24 screens in 0.015s from: file:/home/wt/wt-mystuff/eclipse/workspace/ofbiz-trunk-wrk-restapi/framework/common/widget/CommonScreens.xml 2015-04-28 23:31:34,746 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [1] milliseconds 2015-04-28 23:31:34,749 |http-bio-8443-exec-3 |ServiceDispatcher |T| Sync service [catalog/getVisualThemeResources] finished in [2] milliseconds 2015-04-28 23:31:35,146 |http-bio-8443-exec-3 |runtime |E| Error executing FreeMarker template freemarker.core._TemplateModelException: ?substring(...) argument #2 had invalid value: The index mustn't be greater than the length of the string, 0, but it was 2. FTL stack trace (~ means nesting-related): - Failed at: #if ar.iw?contains(langAttr?substri... [in template component://common/webcommon/includes/listLocales.ftl at line 34, column 9] at freemarker.core.MessageUtil.newMethodArgInvalidValueException(MessageUtil.java:262) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.BuiltInsForStringsBasic$substringBI$1.newIndexGreaterThanLengthException(BuiltInsForStringsBasic.java:598) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.BuiltInsForStringsBasic$substringBI$1.exec(BuiltInsForStringsBasic.java:581) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.MethodCall._eval(MethodCall.java:62) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.ListLiteral.getModelList(ListLiteral.java:89) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.MethodCall._eval(MethodCall.java:60) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.eval(Expression.java:78) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.evalToBoolean(Expression.java:118) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Expression.evalToBoolean(Expression.java:110) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:46) ~[freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.visitByHiddingParent(Environment.java:333) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:148) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.visitIteratorBlock(Environment.java:559) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.MixedContent.accept(MixedContent.java:62) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.visit(Environment.java:312) [freemarker-2.3.22.jar:2.3.22] at freemarker.core.Environment.process(Environment.java:290) [freemarker-2.3.22.jar:2.3.22] at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) [ofbiz-base.jar:?] at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) [ofbiz-widget.jar:?] at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216)
[jira] [Commented] (OFBIZ-6309) Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList
[ https://issues.apache.org/jira/browse/OFBIZ-6309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14519449#comment-14519449 ] Wai commented on OFBIZ-6309: The patch is not in the proper format. Cannot be used as is. Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList - Key: OFBIZ-6309 URL: https://issues.apache.org/jira/browse/OFBIZ-6309 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Christian Carlow Assignee: Adrian Crum Fix For: 14.12.01, 13.07.02, Upcoming Branch Attachments: OFBIZ-6309.patch For some reason Locale.getAvailableLocales() returns an array list whose first member is a locale without a display name which causes an FTL error at ListLocales page. The error is not occurring for the demo trunk. The attached patch adds a line to UtilMisc to check that a displayName exists before adding the locale to the list in case the same happens for other users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (OFBIZ-6309) Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList
[ https://issues.apache.org/jira/browse/OFBIZ-6309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14519541#comment-14519541 ] Wai commented on OFBIZ-6309: The first line in the patch caused my patch process to fail. If you had already committed the change, then its not a problem. Thanks. Freemarker errors at lanaguge change page due to locale with no display name returned by Locale.getAvailableLocales() in UtilMisc.java#getAvailableLocaleList - Key: OFBIZ-6309 URL: https://issues.apache.org/jira/browse/OFBIZ-6309 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: Trunk Reporter: Christian Carlow Assignee: Adrian Crum Fix For: 14.12.01, 13.07.02, Upcoming Branch Attachments: OFBIZ-6309.patch For some reason Locale.getAvailableLocales() returns an array list whose first member is a locale without a display name which causes an FTL error at ListLocales page. The error is not occurring for the demo trunk. The attached patch adds a line to UtilMisc to check that a displayName exists before adding the locale to the list in case the same happens for other users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)