Re: Generating a Nested Menu

2010-12-14 Thread Scott Gray
Hi Bruno,

Are you sure OFBIZ-2104 isn't implemented, I'm sure I recall doing this a 
couple of years ago...

Regards
Scott

On 14/12/2010, at 7:50 PM, Bruno Busco wrote:

> Hi Naveen,
> unfortunately the multilevel menu is not completely implemented in the menu
> widget.
> 
> We have had some discussion about it but not yet implemented.
> 
> You can find something interesting here:
> https://issues.apache.org/jira/browse/OFBIZ-2104
> https://issues.apache.org/jira/browse/OFBIZ-3373
> 
> Any contribution in this area will be greatly appreciated.
> 
> Regards,
> Bruno
> 
> 2010/12/14 BJ Freeman 
> 
>> have you looked at the source code of a page, say for parytmgr, using the
>> different themes.
>> you will find your answer.
>> 
>> =
>> BJ Freeman
>> Strategic Power Office with Supplier Automation  <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com  
>> Systems Integrator-- Glad to Assist
>> 
>> Chat  Y! messenger: bjfr33man
>> 
>> Naveen Kumar sent the following on 12/13/2010 5:53 AM:
>> 
>> 
>> 
>> Hi all,
>>> 
>>> My project spec requires that I need to create an ofbiz menu the following
>>> way in a nestedstructure:
>>> 
>>> 
>>>...
>>>PARTY
>>>PROJECT
>>>*SFA** ** (class="active")*
>>>Main
>>>Accounts
>>>Contacts
>>>   * Leads** ** (class="active")*
>>>Create New
>>>*Create Lead From vCard ** (class="active")*
>>>Competitors&  Partners
>>>Events
>>>Documents
>>>Forecast
>>>Opportunities
>>>Preferences
>>>BUSINESS INTELLIGENCE
>>>EBAY
>>>...
>>> 
>>> 
>>> 
>>> The main-menu, app-menu and the button tabs ALL should come within a
>>> SINGLE
>>> NESTED unordered list with specific classes (like  for
>>> the current active APP/SCREEN). This single nested list should be
>>> dynamically generated.
>>> 
>>> Is this possible to create such a list? If "yes", please suggest me some
>>> ways to implement this (in code).
>>> 
>>> Thank you,
>>> Naveen.
>>> 
>>> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Generating a Nested Menu

2010-12-14 Thread Scott Gray
It looks like nested menu items are supported but not nesting other menus.

Regards
Scott

On 14/12/2010, at 9:14 PM, Scott Gray wrote:

> Hi Bruno,
> 
> Are you sure OFBIZ-2104 isn't implemented, I'm sure I recall doing this a 
> couple of years ago...
> 
> Regards
> Scott
> 
> On 14/12/2010, at 7:50 PM, Bruno Busco wrote:
> 
>> Hi Naveen,
>> unfortunately the multilevel menu is not completely implemented in the menu
>> widget.
>> 
>> We have had some discussion about it but not yet implemented.
>> 
>> You can find something interesting here:
>> https://issues.apache.org/jira/browse/OFBIZ-2104
>> https://issues.apache.org/jira/browse/OFBIZ-3373
>> 
>> Any contribution in this area will be greatly appreciated.
>> 
>> Regards,
>> Bruno
>> 
>> 2010/12/14 BJ Freeman 
>> 
>>> have you looked at the source code of a page, say for parytmgr, using the
>>> different themes.
>>> you will find your answer.
>>> 
>>> =
>>> BJ Freeman
>>> Strategic Power Office with Supplier Automation  <
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com  
>>> Systems Integrator-- Glad to Assist
>>> 
>>> Chat  Y! messenger: bjfr33man
>>> 
>>> Naveen Kumar sent the following on 12/13/2010 5:53 AM:
>>> 
>>> 
>>> 
>>> Hi all,
 
 My project spec requires that I need to create an ofbiz menu the following
 way in a nestedstructure:
 
 
   ...
   PARTY
   PROJECT
   *SFA** ** (class="active")*
   Main
   Accounts
   Contacts
  * Leads** ** (class="active")*
   Create New
   *Create Lead From vCard ** (class="active")*
   Competitors&  Partners
   Events
   Documents
   Forecast
   Opportunities
   Preferences
   BUSINESS INTELLIGENCE
   EBAY
   ...
 
 
 
 The main-menu, app-menu and the button tabs ALL should come within a
 SINGLE
 NESTED unordered list with specific classes (like  for
 the current active APP/SCREEN). This single nested list should be
 dynamically generated.
 
 Is this possible to create such a list? If "yes", please suggest me some
 ways to implement this (in code).
 
 Thank you,
 Naveen.
 
 
> 



smime.p7s
Description: S/MIME cryptographic signature


Integration Ofbiz with Quick book

2010-12-14 Thread pooja wed
Dear ,

  I came across Ofbiz (open source ERP).I want Invoice form should be
integrated with Quick book (Accounting software).without logging into Quick
book it should be done can u guide me step by step.



Regards,
 Shantha.A


practice application 2 throwing exception

2010-12-14 Thread doitifucan

Hi, 
i completed the practice 1 application. While working with practice 2 am
getting the below exception

Screen Render Error

java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
at
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
at
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
at 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

please guide me any better way to identify what went wrong.

the error log below

2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [ 
ModelScreenWidget.java:885:ERROR] 

 runtime exception report
--
Error rendering included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]: 
Exception: java.lang.NullPointerException
Message: null
 stack trace
---
java.lang.NullPointerException
org.ofbiz.widget.ModelWidget.(ModelWidget.java:65)
org.ofbiz.widget.form.ModelForm.(ModelForm.java:208)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:155)
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:151)
org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:86)
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:882)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgets

Re: Integration Ofbiz with Quick book

2010-12-14 Thread BJ Freeman
the simplist is to create IFF file using an Ftl. this would be imported 
into quickbooks.
for an automated one there are a few that provide a component that does 
this. do a google search

ofbiz quickbooks.
It requires the quickbooks toolkit if you want to do something on your own.


pooja wed sent the following on 12/14/2010 3:00 AM:

Dear ,

   I came across Ofbiz (open source ERP).I want Invoice form should be
integrated with Quick book (Accounting software).without logging into Quick
book it should be done can u guide me step by step.



Regards,
  Shantha.A



Re: practice application 2 throwing exception

2010-12-14 Thread BJ Freeman

NullPointerException usually says that it expecting data and there is none.

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


doitifucan sent the following on 12/14/2010 3:25 AM:


Hi,
i completed the practice 1 application. While working with practice 2 am
getting the below exception

Screen Render Error

java.lang.RuntimeException: Error rendering included form named
[ListPersons] at location [component://practice/widget/PracticeForms.xml]:
java.lang.NullPointerException
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
at
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
at
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397)
at 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91)
at
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796)
at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
at 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

please guide me any better way to identify what went wrong.

the error log below

2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [
ModelScreenWidget.java:885:ERROR]

 runtime exception report
--
Error rendering included form named [ListPersons] at location
[component://practice/widget/PracticeForms.xml]:
Exception: java.lang.NullPointerException
Message: null
 stack trace
---
java.lang.NullPointerException
org.ofbiz.widget.ModelWidget.(ModelWidget.java:65)
org.ofbiz.widget.form.ModelForm.(ModelForm.java:208)
org.ofbiz.widget.form.FormFactory.createModelForm(FormF

Re: Generating a Nested Menu

2010-12-14 Thread Bruno Busco
Yes,
I think this is what the sub-menu attribute of the menu-item tag should be
for.
It is not implemented yet.

Regards,
Bruno

2010/12/14 Scott Gray 

> It looks like nested menu items are supported but not nesting other menus.
>
> Regards
> Scott
>
> On 14/12/2010, at 9:14 PM, Scott Gray wrote:
>
> > Hi Bruno,
> >
> > Are you sure OFBIZ-2104 isn't implemented, I'm sure I recall doing this a
> couple of years ago...
> >
> > Regards
> > Scott
> >
> > On 14/12/2010, at 7:50 PM, Bruno Busco wrote:
> >
> >> Hi Naveen,
> >> unfortunately the multilevel menu is not completely implemented in the
> menu
> >> widget.
> >>
> >> We have had some discussion about it but not yet implemented.
> >>
> >> You can find something interesting here:
> >> https://issues.apache.org/jira/browse/OFBIZ-2104
> >> https://issues.apache.org/jira/browse/OFBIZ-3373
> >>
> >> Any contribution in this area will be greatly appreciated.
> >>
> >> Regards,
> >> Bruno
> >>
> >> 2010/12/14 BJ Freeman 
> >>
> >>> have you looked at the source code of a page, say for parytmgr, using
> the
> >>> different themes.
> >>> you will find your answer.
> >>>
> >>> =
> >>> BJ Freeman
> >>> Strategic Power Office with Supplier Automation  <
> >>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> >>> Specialtymarket.com  
> >>> Systems Integrator-- Glad to Assist
> >>>
> >>> Chat  Y! messenger: bjfr33man
> >>>
> >>> Naveen Kumar sent the following on 12/13/2010 5:53 AM:
> >>>
> >>>
> >>>
> >>> Hi all,
> 
>  My project spec requires that I need to create an ofbiz menu the
> following
>  way in a nestedstructure:
> 
> 
>    ...
>    PARTY
>    PROJECT
>    *SFA** ** (class="active")*
>    Main
>    Accounts
>    Contacts
>   * Leads** ** (class="active")*
>    Create New
>    *Create Lead From vCard ** (class="active")*
>    Competitors&  Partners
>    Events
>    Documents
>    Forecast
>    Opportunities
>    Preferences
>    BUSINESS INTELLIGENCE
>    EBAY
>    ...
> 
> 
> 
>  The main-menu, app-menu and the button tabs ALL should come within a
>  SINGLE
>  NESTED unordered list with specific classes (like
>  for
>  the current active APP/SCREEN). This single nested list should be
>  dynamically generated.
> 
>  Is this possible to create such a list? If "yes", please suggest me
> some
>  ways to implement this (in code).
> 
>  Thank you,
>  Naveen.
> 
> 
> >
>
>


Getting error when going to Find Approved Requirements screen

2010-12-14 Thread Shereen

Hi all
I'm trying to make a product requirement then approve it
then go to the screen "Find approved requirements by supplier" so that I
should see the requirements grouped by supplier
then I face the following exception

Error getting list size
Exception: org.ofbiz.entity.GenericDataSourceException
Message: SQL Exception while executing the following:SELECT COUNT(1) FROM
(SELE
T COUNT(DISTINCT *)  FROM OFBIZ.REQUIREMENT RQ INNER JOIN
OFBIZ.REQUIREMENT_ROL
 RQR ON RQ.REQUIREMENT_ID = RQR.REQUIREMENT_ID WHERE (RQR.ROLE_TYPE_ID = ?
AND
Q.STATUS_ID = ? AND RQ.REQUIREMENT_TYPE_ID = ? AND ((RQR.THRU_DATE IS NULL
OR R
R.THRU_DATE > ?) AND (RQR.FROM_DATE IS NULL OR RQR.FROM_DATE <= ?))) GROUP
BY R
R.PARTY_ID) TEMP_NAME (Syntax error: Encountered "*" at line 1, column 45.)
 cause


Exception: java.sql.SQLSyntaxErrorException
Message: Syntax error: Encountered "*" at line 1, column 45.
 cause


Exception: org.apache.derby.impl.jdbc.EmbedSQLException
Message: Syntax error: Encountered "*" at line 1, column 45.
 cause


Exception: org.apache.derby.iapi.error.StandardException
Message: Syntax error: Encountered "*" at line 1, column 45.
 stack trace
--

ERROR 42X01: Syntax error: Encountered "*" at line 1, column 45.
org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
org.apache.derby.impl.sql.compile.ParserImpl.parseStatement(Unknown Source)
org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternal
tatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement20.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement30.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement40.(Unknown Source)
org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnect
on.java:291)
org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnect
on.java:291)
org.ofbiz.entity.jdbc.SQLProcessor.prepareStatement(SQLProcessor.java:362)
org.ofbiz.entity.datasource.GenericDAO.selectCountByCondition(GenericDAO.java:1
81)
org.ofbiz.entity.util.EntityListIterator.getResultsSizeAfterPartialList(EntityL
stIterator.java:515)

I'm using 10.04 and I didnt change anything in the file script service of
the requirements has anyone used the requirements and the feature of
grouping the requirements by suppliers?
is their a bug or have I misused something
Can anyone tell me what's the exception is about?
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Getting-error-when-going-to-Find-Approved-Requirements-screen-tp3087755p3087755.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Sub queries using entity engine !

2010-12-14 Thread Prashant Punekar
Hi All,

Can we write a sub query using entity engine ?
Here is the query which is to be generated using entity engine.

Thanks in advance.

Regards,
Prashant


SELECT
pc.category_name
  ,COUNT(DISTINCT p.product_id)

FROM  product_category_member pcm INNER JOIN
  product_category pc
ONpc.product_category_id = pcm.product_category_id LEFT OUTER JOIN
(
SELECT p.product_id
FROMproduct p INNER JOIN
inventory_item ii
ON  p.product_id = ii.product_id

GROUP BY  p.product_id
HAVING  SUM(ii.AVAILABLE_TO_PROMISE_TOTAL) > 0 /***no inventory**/) AS p

ON pcm.product_id = p.product_id
GROUP BY  pc.category_name



http://www.mindtree.com/email/disclaimer.html


Re: Getting error when going to Find Approved Requirements screen

2010-12-14 Thread BJ Freeman

Syntax error: Encountered "*" at line 1, column 45.
of the sql that was sent to the  derby.

this should not  happen if your using OOTB and using the normal patterns 
in code.



=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Shereen sent the following on 12/14/2010 11:03 AM:


Hi all
I'm trying to make a product requirement then approve it
then go to the screen "Find approved requirements by supplier" so that I
should see the requirements grouped by supplier
then I face the following exception

Error getting list size
Exception: org.ofbiz.entity.GenericDataSourceException
Message: SQL Exception while executing the following:SELECT COUNT(1) FROM
(SELE
T COUNT(DISTINCT *)  FROM OFBIZ.REQUIREMENT RQ INNER JOIN
OFBIZ.REQUIREMENT_ROL
  RQR ON RQ.REQUIREMENT_ID = RQR.REQUIREMENT_ID WHERE (RQR.ROLE_TYPE_ID = ?
AND
Q.STATUS_ID = ? AND RQ.REQUIREMENT_TYPE_ID = ? AND ((RQR.THRU_DATE IS NULL
OR R
R.THRU_DATE>  ?) AND (RQR.FROM_DATE IS NULL OR RQR.FROM_DATE<= ?))) GROUP
BY R
R.PARTY_ID) TEMP_NAME (Syntax error: Encountered "*" at line 1, column 45.)
 cause


Exception: java.sql.SQLSyntaxErrorException
Message: Syntax error: Encountered "*" at line 1, column 45.
 cause


Exception: org.apache.derby.impl.jdbc.EmbedSQLException
Message: Syntax error: Encountered "*" at line 1, column 45.
 cause


Exception: org.apache.derby.iapi.error.StandardException
Message: Syntax error: Encountered "*" at line 1, column 45.
 stack trace
--

ERROR 42X01: Syntax error: Encountered "*" at line 1, column 45.
org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
org.apache.derby.impl.sql.compile.ParserImpl.parseStatement(Unknown Source)
org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternal
tatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement20.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement30.(Unknown Source)
org.apache.derby.impl.jdbc.EmbedPreparedStatement40.(Unknown Source)
org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnect
on.java:291)
org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnect
on.java:291)
org.ofbiz.entity.jdbc.SQLProcessor.prepareStatement(SQLProcessor.java:362)
org.ofbiz.entity.datasource.GenericDAO.selectCountByCondition(GenericDAO.java:1
81)
org.ofbiz.entity.util.EntityListIterator.getResultsSizeAfterPartialList(EntityL
stIterator.java:515)

I'm using 10.04 and I didnt change anything in the file script service of
the requirements has anyone used the requirements and the feature of
grouping the requirements by suppliers?
is their a bug or have I misused something
Can anyone tell me what's the exception is about?




OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Tolu Williams

Fails with the following error.

classes:
  [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; inferred type does not conform to declared
bound(s)
  [javac15] inferred: java.util.Map
  [javac15] bound(s): java.util.Map
  [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
  [javac15] 
 
^
  [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
executing this line:
/opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
while executing this line:
/opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while
executing this line:
/opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see
the compiler error output for details.


Please HELP i run my production from the stable trunk and update one a
month. I have never had a stable trunk update not compile.

-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3087778.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Getting error when going to Find Approved Requirements screen

2010-12-14 Thread Shereen


Also when I navigate to "Find approved requirements" I face the following
exception 
does anyone have a clue about that? 
2010-12-14 21:17:40,156 (http-0.0.0.0-8443-3)
[FlexibleStringExpander.java:509:W
ARN ]
 exception report
--

Error evaluating BSH scriptlet [${bsh:
org.ofbiz.party.party.PartyHelper.getPart
yName(delegator, partyId, false);}], inserting nothing; error was: Sourced
file:
 inline evaluation of: ``
org.ofbiz.party.party.PartyHelper.getPartyName(delegat
or, partyId, false);'' : Undefined variable or class name while evaluating:
org.
ofbiz.party.party.PartyHelper : at Line: 1 : in file: inline evaluation of:
`` o
rg.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);''
: or
g .ofbiz .party .party .PartyHelper .getPartyName ( delegator , partyId ,
false
)

Exception: bsh.EvalError
Message: Sourced file: inline evaluation of: ``
org.ofbiz.party.party.PartyHelpe
r.getPartyName(delegator, partyId, false);'' : Undefined variable or class
name
while evaluating: org.ofbiz.party.party.PartyHelper
 stack trace
---

Sourced file: inline evaluation of: ``
org.ofbiz.party.party.PartyHelper.getPart
yName(delegator, partyId, false);'' : Undefined variable or class name while
eva
luating: org.ofbiz.party.party.PartyHelper : at Line: 1 : in file: inline
evalua
tion of: `` org.ofbiz.party.party.PartyHelper.getPartyName(delegator,
partyId, f
alse);'' : org .ofbiz .party .party .PartyHelper .getPartyName ( delegator ,
par
tyId , false )
bsh.UtilEvalError.toEvalError(Unknown Source)
bsh.UtilEvalError.toEvalError(Unknown Source)
bsh.BSHMethodInvocation.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.Interpreter.evalParsedScript(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
org.ofbiz.base.util.BshUtil.eval(BshUtil.java:72)
org.ofbiz.base.util.string.FlexibleStringExpander$BshElem.get(FlexibleStringExpa
nder.java:500)
org.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExp
ander.java:386)
org.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExp
ander.java:356)
org.ofbiz.widget.form.ModelFormField$DisplayField.getDescription(ModelFormField.
java:2101)
org.ofbiz.widget.form.MacroFormRenderer.renderDisplayField(MacroFormRenderer.jav
a:190)
org.ofbiz.widget.form.ModelFormField$DisplayField.renderFieldString(ModelFormFie
ld.java:2084)
org.ofbiz.widget.form.ModelFormField.renderFieldString(ModelFormField.java:595)
org.ofbiz.widget.form.ModelForm.renderItemRow(ModelForm.java:1665)
org.ofbiz.widget.form.ModelForm.renderItemRows(ModelForm.java:1593)
org.ofbiz.widget.form.ModelForm.renderListFormString(ModelForm.java:1105)
org.ofbiz.widget.form.ModelForm.renderFormString(ModelForm.java:839)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWid
get.java:840)
org.ofbiz.widget.screen.MacroScreenRenderer.renderScreenletSubWidget(MacroScreen
Renderer.java:710)
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Getting-error-when-going-to-Find-Approved-Requirements-screen-tp3087755p3087784.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Sub queries using entity engine !

2010-12-14 Thread BJ Freeman

what was the entity or entity view that created this sql.

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Prashant Punekar sent the following on 12/14/2010 11:16 AM:

Hi All,

Can we write a sub query using entity engine ?
Here is the query which is to be generated using entity engine.

Thanks in advance.

Regards,
Prashant


SELECT
 pc.category_name
   ,COUNT(DISTINCT p.product_id)

FROM  product_category_member pcm INNER JOIN
   product_category pc
ONpc.product_category_id = pcm.product_category_id LEFT OUTER JOIN
 (
SELECT p.product_id
FROMproduct p INNER JOIN
 inventory_item ii
ON  p.product_id = ii.product_id

GROUP BY  p.product_id
HAVING  SUM(ii.AVAILABLE_TO_PROMISE_TOTAL)>  0 /***no inventory**/) AS p

ON pcm.product_id = p.product_id
GROUP BY  pc.category_name



http://www.mindtree.com/email/disclaimer.html





Re: Getting error when going to Find Approved Requirements screen

2010-12-14 Thread BJ Freeman

inline evaluation of: ``
org.ofbiz.party.party.PartyHelper.getPartyName(delegat
or, partyId, false);'' : Undefined variable or class name while evaluating:


=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Shereen sent the following on 12/14/2010 11:24 AM:



Also when I navigate to "Find approved requirements" I face the following
exception
does anyone have a clue about that?
2010-12-14 21:17:40,156 (http-0.0.0.0-8443-3)
[FlexibleStringExpander.java:509:W
ARN ]
 exception report
--

Error evaluating BSH scriptlet [${bsh:
org.ofbiz.party.party.PartyHelper.getPart
yName(delegator, partyId, false);}], inserting nothing; error was: Sourced
file:
  inline evaluation of: ``
org.ofbiz.party.party.PartyHelper.getPartyName(delegat
or, partyId, false);'' : Undefined variable or class name while evaluating:
org.
ofbiz.party.party.PartyHelper : at Line: 1 : in file: inline evaluation of:
`` o
rg.ofbiz.party.party.PartyHelper.getPartyName(delegator, partyId, false);''
: or
g .ofbiz .party .party .PartyHelper .getPartyName ( delegator , partyId ,
false
)

Exception: bsh.EvalError
Message: Sourced file: inline evaluation of: ``
org.ofbiz.party.party.PartyHelpe
r.getPartyName(delegator, partyId, false);'' : Undefined variable or class
name
while evaluating: org.ofbiz.party.party.PartyHelper
 stack trace
---

Sourced file: inline evaluation of: ``
org.ofbiz.party.party.PartyHelper.getPart
yName(delegator, partyId, false);'' : Undefined variable or class name while
eva
luating: org.ofbiz.party.party.PartyHelper : at Line: 1 : in file: inline
evalua
tion of: `` org.ofbiz.party.party.PartyHelper.getPartyName(delegator,
partyId, f
alse);'' : org .ofbiz .party .party .PartyHelper .getPartyName ( delegator ,
par
tyId , false )
bsh.UtilEvalError.toEvalError(Unknown Source)
bsh.UtilEvalError.toEvalError(Unknown Source)
bsh.BSHMethodInvocation.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.Interpreter.evalParsedScript(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
org.ofbiz.base.util.BshUtil.eval(BshUtil.java:72)
org.ofbiz.base.util.string.FlexibleStringExpander$BshElem.get(FlexibleStringExpa
nder.java:500)
org.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExp
ander.java:386)
org.ofbiz.base.util.string.FlexibleStringExpander.expandString(FlexibleStringExp
ander.java:356)
org.ofbiz.widget.form.ModelFormField$DisplayField.getDescription(ModelFormField.
java:2101)
org.ofbiz.widget.form.MacroFormRenderer.renderDisplayField(MacroFormRenderer.jav
a:190)
org.ofbiz.widget.form.ModelFormField$DisplayField.renderFieldString(ModelFormFie
ld.java:2084)
org.ofbiz.widget.form.ModelFormField.renderFieldString(ModelFormField.java:595)
org.ofbiz.widget.form.ModelForm.renderItemRow(ModelForm.java:1665)
org.ofbiz.widget.form.ModelForm.renderItemRows(ModelForm.java:1593)
org.ofbiz.widget.form.ModelForm.renderListFormString(ModelForm.java:1105)
org.ofbiz.widget.form.ModelForm.renderFormString(ModelForm.java:839)
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWid
get.java:840)
org.ofbiz.widget.screen.MacroScreenRenderer.renderScreenletSubWidget(MacroScreen
Renderer.java:710)




Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman

did a clean check out of 9.04.
ant run-install
compiled and installed.
did you do a
ant clean
ant build


=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 11:22 AM:


Fails with the following error.

classes:
   [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
   [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; inferred type does not conform to declared
bound(s)
   [javac15] inferred: java.util.Map
   [javac15] bound(s): java.util.Map
   [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
   [javac15]
^
   [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
executing this line:
/opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
while executing this line:
/opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while
executing this line:
/opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see
the compiler error output for details.


Please HELP i run my production from the stable trunk and update one a
month. I have never had a stable trunk update not compile.





Importing Line Breaks

2010-12-14 Thread Jeremy Olmstead
If I have a text field that I want to import from an xml file, how do I code
line breaks in the xml file?

Thanks,
Jeremy


Re: Importing Line Breaks

2010-12-14 Thread BJ Freeman


in ofbiz, what is the requirement of having line beaks in xml.
if you talking about
<>linebreak
<>
this is not necessary for importing.
if you want to do this get an xml editor that will format the xml file.


=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jeremy Olmstead sent the following on 12/14/2010 12:02 PM:

If I have a text field that I want to import from an xml file, how do I code
line breaks in the xml file?

Thanks,
Jeremy





Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Tolu Williams

Just tried again usually use this process
ant clean-all
ant run-install-seed


Just tried 
ant build and got the same error.


  [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; inferred type does not conform to declared
bound(s)
  [javac15] inferred: java.util.Map
  [javac15] bound(s): java.util.Map
  [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
  [javac15] 
 
^

I am using jdk 1.6 (and have been using it with no issue for over a year
now.)

Thanks!
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3087873.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Importing Line Breaks

2010-12-14 Thread Jeremy Olmstead
What I meant is that I have a database outside of ofbiz with a long text
field that includes line breaks.  I am building the xml files outside of
ofbiz for importing into the ofbiz database.  How can I code the xml file so
that ofbiz imports the data with the same line breaks as from the original
database field?

Thanks,
Jeremy

On Tue, Dec 14, 2010 at 2:07 PM, BJ Freeman  wrote:

>
> in ofbiz, what is the requirement of having line beaks in xml.
> if you talking about
> <>linebreak
> <>
> this is not necessary for importing.
> if you want to do this get an xml editor that will format the xml file.
>
>
> =
> BJ Freeman
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Jeremy Olmstead sent the following on 12/14/2010 12:02 PM:
>
>  If I have a text field that I want to import from an xml file, how do I
>> code
>> line breaks in the xml file?
>>
>> Thanks,
>> Jeremy
>>
>>
>


Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman


classes:
  [javac15] Compiling 4 source files to C:\projects\java\ofbiz 
9.4_current\framework\security\build\classes


_src-available:

jar:
  [jar] Building jar: C:\projects\java\ofbiz 
9.4_current\framework\security\build\lib\ofbiz-security.jar


you might check the file again svn I don't see what it is talking about "V"
this also could be lack of memory for compile.

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 12:12 PM:


Just tried again usually use this process
ant clean-all
ant run-install-seed


Just tried
ant build and got the same error.


   [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
   [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; inferred type does not conform to declared
bound(s)
   [javac15] inferred: java.util.Map
   [javac15] bound(s): java.util.Map
   [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
   [javac15]
^

I am using jdk 1.6 (and have been using it with no issue for over a year
now.)

Thanks!




Re: Importing Line Breaks

2010-12-14 Thread BJ Freeman

if these are to be read by browser,then use 
you can escape it to pass through.

= BJ Freeman Strategic Power Office with Supplier Automation Specialtymarket.com Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Jeremy Olmstead sent the following on 12/14/2010 12:22 PM: What I meant is that I have a database outside of ofbiz with a long text field that includes line breaks. I am building the xml files outside of ofbiz for importing into the ofbiz database. How can I code the xml file so that ofbiz imports the data with the same line breaks as from the original database field? Thanks, Jeremy On Tue, Dec 14, 2010 at 2:07 PM, BJ Freeman wrote: in ofbiz, what is the requirement of having line beaks in xml. if you talking about <>linebreak <> this is not necessary for importing. if you want to do this get an xml editor that will format the xml file. = BJ Freeman Strategic Power Office with Supplier Automation< http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Jeremy Olmstead sent the following on 12/14/2010 12:02 PM: If I have a text field that I want to import from an xml file, how do I code line breaks in the xml file? Thanks, Jeremy

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Tolu Williams

When you say check the file in svn what do you mean? 

also i have 1.75gb of RAM on this vps 1GB is free as of now.

Please help. Production is down for going on 2 hrs.

Thanks!
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3087949.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman

rule for future don't upgrade production without doing a test.
I meant check
framework/security/src/org/ofbiz/security/OFBizSecurity.java
to see if the same as in the SVN.
it has not been changed since 11/11/09

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 12:53 PM:


When you say check the file in svn what do you mean?

also i have 1.75gb of RAM on this vps 1GB is free as of now.

Please help. Production is down for going on 2 hrs.

Thanks!




Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman
your other option is to compile on a local machine then create a zip 
file of ofbiz*.jar the upload them to you production.



=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/14/2010 12:57 PM:

rule for future don't upgrade production without doing a test.
I meant check
framework/security/src/org/ofbiz/security/OFBizSecurity.java
to see if the same as in the SVN.
it has not been changed since 11/11/09

=
BJ Freeman
Strategic Power Office with Supplier Automation

Specialtymarket.com 
Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 12:53 PM:


When you say check the file in svn what do you mean?

also i have 1.75gb of RAM on this vps 1GB is free as of now.

Please help. Production is down for going on 2 hrs.

Thanks!







Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Tolu Williams

SO there is no way to tell from the stack what exactly is causing the
failuure? how can i revert back (can i see a history of svn checkout to see
which revision i can roll back to?)

This is pretty rediculous though. here is the entire stack again.


### START

[of...@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
Buildfile: build.xml

build:
 [echo] [build] == Start Building (Compile) ==

ofbiz-init:

dir-init:
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql

copy-derby-props:

build:
 [echo] [build] == Start Building Framework (Compile) ==

prepare:
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib

classes:
  [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/start/build/classes

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
 [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
Overriding previous definition of reference to local.class.path

prepare:
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib

classes:
  [javac15] Compiling 102 source files to
/opt/ofbiz/ofbiz.9.04/framework/base/build/classes
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
Overriding previous definition of reference to local.class.path
Overriding previous definition of reference to src.exc.set

prepare:
[mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib

classes:
  [javac15] Compiling 124 source files to
/opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
Overriding previous definition of reference to local.class.path

prepare:
[mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib

classes:
  [javac15] Compiling 2 source files to
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
Overriding previous definition of reference to local.class.path

prepare:
[mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib

classes:
  [javac15] Compiling 5 source files to
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
Overriding previous definition of reference to local.class.path

prepare:
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib

classes:
  [javac15] Compiling 1 source file to
/opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
  [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
Overriding previous definition of reference to local.class.path

prepare:
[mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib

classes:
  [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; i
nferred type does not conform to declared bound(s)
  [javac15] inferred: java.util.Map
  [javac15] bound(s): java.util.Map
  [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
  [javac15] 
 
^
  [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
executing this line:
/opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
while executing this line:
/opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error oc

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Scott Gray
You mentioned that you are using java 1.6 but that doesn't appear to be the 
case since the javac15 compiler is being used.  I'm not sure if that is the 
cause but it is worth noting.

You could also try a quick fix by explicitly declaring the type rather than 
allowing it to be implied, change this:
Map> simpleRoleEntity = UtilMisc.toMap(
to this:
Map> simpleRoleEntity = UtilMisc.>toMap(

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 10:34 AM, Tolu Williams wrote:

> 
> SO there is no way to tell from the stack what exactly is causing the
> failuure? how can i revert back (can i see a history of svn checkout to see
> which revision i can roll back to?)
> 
> This is pretty rediculous though. here is the entire stack again.
> 
> 
> ### START
> 
> [of...@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
> Buildfile: build.xml
> 
> build:
> [echo] [build] == Start Building (Compile) ==
> 
> ofbiz-init:
> 
> dir-init:
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql
> 
> copy-derby-props:
> 
> build:
> [echo] [build] == Start Building Framework (Compile) ==
> 
> prepare:
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib
> 
> classes:
>  [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
> [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
> Overriding previous definition of reference to local.class.path
> 
> prepare:
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib
> 
> classes:
>  [javac15] Compiling 102 source files to
> /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>  [javac15] Note: Some input files use unchecked or unsafe operations.
>  [javac15] Note: Recompile with -Xlint:unchecked for details.
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
> Overriding previous definition of reference to local.class.path
> Overriding previous definition of reference to src.exc.set
> 
> prepare:
>[mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib
> 
> classes:
>  [javac15] Compiling 124 source files to
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>  [javac15] Note: Some input files use unchecked or unsafe operations.
>  [javac15] Note: Recompile with -Xlint:unchecked for details.
> 
> _src-available:
> Overriding previous definition of reference to _src-extra-set
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
> Overriding previous definition of reference to local.class.path
> 
> prepare:
>[mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib
> 
> classes:
>  [javac15] Compiling 2 source files to
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
> 
> _src-available:
> Overriding previous definition of reference to _src-extra-set
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
> Overriding previous definition of reference to local.class.path
> 
> prepare:
>[mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib
> 
> classes:
>  [javac15] Compiling 5 source files to
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
> 
> _src-available:
> Overriding previous definition of reference to _src-extra-set
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
> Overriding previous definition of reference to local.class.path
> 
> prepare:
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib
> 
> classes:
>  [javac15] Compiling 1 source file to
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
> 
> _src-available:
> Overriding previous definition of reference to _src-extra-set
> 
> jar:
>  [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
> Overriding previous definition of reference to local.class.path
> 
> prepare:
>[mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>[mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib
> 
> classes:
>  [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/security/build/

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Adrian Crum
The file that generates the error has remained relatively unchanged 
since the 9.04 branch was created. The compiler error is most likely a 
compiler version issue or some configuration error on your local machine.


-Adrian

On 12/14/2010 1:34 PM, Tolu Williams wrote:


SO there is no way to tell from the stack what exactly is causing the
failuure? how can i revert back (can i see a history of svn checkout to see
which revision i can roll back to?)

This is pretty rediculous though. here is the entire stack again.


### START

[of...@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
Buildfile: build.xml

build:
  [echo] [build] == Start Building (Compile) ==

ofbiz-init:

dir-init:
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql

copy-derby-props:

build:
  [echo] [build] == Start Building Framework (Compile) ==

prepare:
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib

classes:
   [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/start/build/classes

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
  [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
Overriding previous definition of reference to local.class.path

prepare:
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib

classes:
   [javac15] Compiling 102 source files to
/opt/ofbiz/ofbiz.9.04/framework/base/build/classes
   [javac15] Note: Some input files use unchecked or unsafe operations.
   [javac15] Note: Recompile with -Xlint:unchecked for details.

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
Overriding previous definition of reference to local.class.path
Overriding previous definition of reference to src.exc.set

prepare:
 [mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib

classes:
   [javac15] Compiling 124 source files to
/opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
   [javac15] Note: Some input files use unchecked or unsafe operations.
   [javac15] Note: Recompile with -Xlint:unchecked for details.

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
Overriding previous definition of reference to local.class.path

prepare:
 [mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib

classes:
   [javac15] Compiling 2 source files to
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
Overriding previous definition of reference to local.class.path

prepare:
 [mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib

classes:
   [javac15] Compiling 5 source files to
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
Overriding previous definition of reference to local.class.path

prepare:
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib

classes:
   [javac15] Compiling 1 source file to
/opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
   [jar] Building jar:
/opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
Overriding previous definition of reference to local.class.path

prepare:
 [mkdir] Created dir:
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
 [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib

classes:
   [javac15] Compiling 4 source files to
/opt/ofbiz/ofbiz.9.04/framework/security/build/classes
   [javac15]
/opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
invalid inferred types for V; i
nferred type does not conform to declared bound(s)
   [javac15] inferred: java.util.Map
   [javac15] bound(s): java.util.Map
   [javac15] public static final Map>
simpleRoleEntity = UtilMisc.toMap(
   [javac15]
^
   [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Tolu Williams

Thanks guys for your insight. 

Here is what java -version returns

[of...@cultureshockmedia ~]$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
[of...@cultureshockmedia ~]$ 


the ofbiz user owns the ofbiz software and everything has been working
swimmingly up till now.. definitely the fact that others are able to build
the exact revision with no issues points to something wrong with my
environment, my concern is why is it using javac15 when i have java 1.6 in
the path. where else could it be picking 15 from? i dont have any other java
installed on my system i don't think. How can i fix it? change my java
version? is there any higher level of debug i can put on the build process
to figure it out?

I will try changing the file but it would much rather work with unmodified
builds, i have made very scant modifications to stock 9.0.4, i am definitely
not doing anything untoward and the fact that i've updates so many times in
the recent and distant past with the same three commands has me perplexed.

Actually i just recently did a yum update on my system .. hmmm let me look a
bit further.

Thanks!
-- 
View this message in context: 
http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3088074.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman

yeah when I switched from 1.5 to 1.6 the open jdk was the problem
I had to load the sun release of the JDK.

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 2:03 PM:


Thanks guys for your insight.

Here is what java -version returns

[of...@cultureshockmedia ~]$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
[of...@cultureshockmedia ~]$


the ofbiz user owns the ofbiz software and everything has been working
swimmingly up till now.. definitely the fact that others are able to build
the exact revision with no issues points to something wrong with my
environment, my concern is why is it using javac15 when i have java 1.6 in
the path. where else could it be picking 15 from? i dont have any other java
installed on my system i don't think. How can i fix it? change my java
version? is there any higher level of debug i can put on the build process
to figure it out?

I will try changing the file but it would much rather work with unmodified
builds, i have made very scant modifications to stock 9.0.4, i am definitely
not doing anything untoward and the fact that i've updates so many times in
the recent and distant past with the same three commands has me perplexed.

Actually i just recently did a yum update on my system .. hmmm let me look a
bit further.

Thanks!




Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread Scott Gray
This is your first mention of using openjdk, I would suggest using Oracle's JDK.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 11:03 AM, Tolu Williams wrote:

> 
> Thanks guys for your insight. 
> 
> Here is what java -version returns
> 
> [of...@cultureshockmedia ~]$ java -version
> java version "1.6.0_17"
> OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
> OpenJDK Client VM (build 14.0-b16, mixed mode)
> [of...@cultureshockmedia ~]$ 
> 
> 
> the ofbiz user owns the ofbiz software and everything has been working
> swimmingly up till now.. definitely the fact that others are able to build
> the exact revision with no issues points to something wrong with my
> environment, my concern is why is it using javac15 when i have java 1.6 in
> the path. where else could it be picking 15 from? i dont have any other java
> installed on my system i don't think. How can i fix it? change my java
> version? is there any higher level of debug i can put on the build process
> to figure it out?
> 
> I will try changing the file but it would much rather work with unmodified
> builds, i have made very scant modifications to stock 9.0.4, i am definitely
> not doing anything untoward and the fact that i've updates so many times in
> the recent and distant past with the same three commands has me perplexed.
> 
> Actually i just recently did a yum update on my system .. hmmm let me look a
> bit further.
> 
> Thanks!
> -- 
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3088074.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.



smime.p7s
Description: S/MIME cryptographic signature


Re: OFBIZ will not compile! 9.0.4 at revision 1049215

2010-12-14 Thread BJ Freeman

oopps scott is correct Oracle release

=
BJ Freeman
Strategic Power Office with Supplier Automation  

Specialtymarket.com  
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/14/2010 2:11 PM:

yeah when I switched from 1.5 to 1.6 the open jdk was the problem
I had to load the sun release of the JDK.

=
BJ Freeman
Strategic Power Office with Supplier Automation

Specialtymarket.com 
Systems Integrator-- Glad to Assist

Chat Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 2:03 PM:


Thanks guys for your insight.

Here is what java -version returns

[of...@cultureshockmedia ~]$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
[of...@cultureshockmedia ~]$


the ofbiz user owns the ofbiz software and everything has been working
swimmingly up till now.. definitely the fact that others are able to
build
the exact revision with no issues points to something wrong with my
environment, my concern is why is it using javac15 when i have java
1.6 in
the path. where else could it be picking 15 from? i dont have any
other java
installed on my system i don't think. How can i fix it? change my java
version? is there any higher level of debug i can put on the build
process
to figure it out?

I will try changing the file but it would much rather work with
unmodified
builds, i have made very scant modifications to stock 9.0.4, i am
definitely
not doing anything untoward and the fact that i've updates so many
times in
the recent and distant past with the same three commands has me
perplexed.

Actually i just recently did a yum update on my system .. hmmm let me
look a
bit further.

Thanks!







Re: Importing Line Breaks

2010-12-14 Thread Scott Gray
If I'm not wrong then you shouldn't need to do anything special, the line 
breaks would be included in the xml during export, such as:


And then those same link breaks would arrive into the OFBiz database during 
import.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 9:22 AM, Jeremy Olmstead wrote:

> What I meant is that I have a database outside of ofbiz with a long text
> field that includes line breaks.  I am building the xml files outside of
> ofbiz for importing into the ofbiz database.  How can I code the xml file so
> that ofbiz imports the data with the same line breaks as from the original
> database field?
> 
> Thanks,
> Jeremy
> 
> On Tue, Dec 14, 2010 at 2:07 PM, BJ Freeman  wrote:
> 
>> 
>> in ofbiz, what is the requirement of having line beaks in xml.
>> if you talking about
>> <>linebreak
>> <>
>> this is not necessary for importing.
>> if you want to do this get an xml editor that will format the xml file.
>> 
>> 
>> =
>> BJ Freeman
>> Strategic Power Office with Supplier Automation  <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com  
>> Systems Integrator-- Glad to Assist
>> 
>> Chat  Y! messenger: bjfr33man
>> 
>> 
>> Jeremy Olmstead sent the following on 12/14/2010 12:02 PM:
>> 
>> If I have a text field that I want to import from an xml file, how do I
>>> code
>>> line breaks in the xml file?
>>> 
>>> Thanks,
>>> Jeremy
>>> 
>>> 
>> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Importing Line Breaks

2010-12-14 Thread Jeremy Olmstead
You are correct.  When I put  in for the breaks it took them literally.
 When I just left the breaks alone they imported correctly.  Thank you!

Jeremy

On Tue, Dec 14, 2010 at 4:43 PM, Scott Gray wrote:

> If I'm not wrong then you shouldn't need to do anything special, the line
> breaks would be included in the xml during export, such as:
> 
>
> And then those same link breaks would arrive into the OFBiz database during
> import.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 15/12/2010, at 9:22 AM, Jeremy Olmstead wrote:
>
> > What I meant is that I have a database outside of ofbiz with a long text
> > field that includes line breaks.  I am building the xml files outside of
> > ofbiz for importing into the ofbiz database.  How can I code the xml file
> so
> > that ofbiz imports the data with the same line breaks as from the
> original
> > database field?
> >
> > Thanks,
> > Jeremy
> >
> > On Tue, Dec 14, 2010 at 2:07 PM, BJ Freeman  wrote:
> >
> >>
> >> in ofbiz, what is the requirement of having line beaks in xml.
> >> if you talking about
> >> <>linebreak
> >> <>
> >> this is not necessary for importing.
> >> if you want to do this get an xml editor that will format the xml file.
> >>
> >>
> >> =
> >> BJ Freeman
> >> Strategic Power Office with Supplier Automation  <
> >> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> >> Specialtymarket.com  
> >> Systems Integrator-- Glad to Assist
> >>
> >> Chat  Y! messenger: bjfr33man
> >>
> >>
> >> Jeremy Olmstead sent the following on 12/14/2010 12:02 PM:
> >>
> >> If I have a text field that I want to import from an xml file, how do I
> >>> code
> >>> line breaks in the xml file?
> >>>
> >>> Thanks,
> >>> Jeremy
> >>>
> >>>
> >>
>
>


Re: Importing Line Breaks

2010-12-14 Thread Scott Gray
You're welcome.  Just as an FYI, the form widget automatically converts line 
breaks to  tags for display fields but freemarker won't so if you intend 
on displaying them via a template you'd need to manually replace them prior to 
rendering. Something like ${theText?replace("\n", "")}

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 11:53 AM, Jeremy Olmstead wrote:

> You are correct.  When I put  in for the breaks it took them literally.
> When I just left the breaks alone they imported correctly.  Thank you!
> 
> Jeremy
> 
> On Tue, Dec 14, 2010 at 4:43 PM, Scott Gray wrote:
> 
>> If I'm not wrong then you shouldn't need to do anything special, the line
>> breaks would be included in the xml during export, such as:
>> 
>> 
>> And then those same link breaks would arrive into the OFBiz database during
>> import.
>> 
>> Regards
>> Scott
>> 
>> HotWax Media
>> http://www.hotwaxmedia.com
>> 
>> On 15/12/2010, at 9:22 AM, Jeremy Olmstead wrote:
>> 
>>> What I meant is that I have a database outside of ofbiz with a long text
>>> field that includes line breaks.  I am building the xml files outside of
>>> ofbiz for importing into the ofbiz database.  How can I code the xml file
>> so
>>> that ofbiz imports the data with the same line breaks as from the
>> original
>>> database field?
>>> 
>>> Thanks,
>>> Jeremy
>>> 
>>> On Tue, Dec 14, 2010 at 2:07 PM, BJ Freeman  wrote:
>>> 
 
 in ofbiz, what is the requirement of having line beaks in xml.
 if you talking about
 <>linebreak
 <>
 this is not necessary for importing.
 if you want to do this get an xml editor that will format the xml file.
 
 
 =
 BJ Freeman
 Strategic Power Office with Supplier Automation  <
 http://www.businessesnetwork.com/automation/viewforum.php?f=52>
 Specialtymarket.com  
 Systems Integrator-- Glad to Assist
 
 Chat  Y! messenger: bjfr33man
 
 
 Jeremy Olmstead sent the following on 12/14/2010 12:02 PM:
 
 If I have a text field that I want to import from an xml file, how do I
> code
> line breaks in the xml file?
> 
> Thanks,
> Jeremy
> 
> 
 
>> 
>> 



smime.p7s
Description: S/MIME cryptographic signature


OFBiz WebDAV Setting.

2010-12-14 Thread Anil Soni
Anybody aware about WebDAV setting in OFBiz ? I want to disable WebDAV from 
OFBiz side, I checked that its disabled from Apache HTTP server but don't know 
how to disable it from OFBiz.

Any Idea?

Regards,
Anil Soni
Cell : +91-9930302283



The contents of this e-mail and any attachment(s) may contain confidential or 
privileged information for the intended recipient(s). Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail and 
using or disseminating the information, and must notify the sender and delete 
it from their system. L&T Infotech will not accept responsibility or liability 
for the accuracy or completeness of, or the presence of any virus or disabling 
code in this e-mail"

__

Re: practice application 2 throwing exception

2010-12-14 Thread Chirag Manocha
Check the location of form and name of form. Also look for the form name, it is 
case-sensitive. 

Regards 
-- 
Chirag Manocha 
Emforium Software Pvt. Ltd. | ALL-IN Software 
+91-98735-47457 | +91-98263-19099 
Please don't print this Email unless you really need to - this will preserve 
trees on planet earth. 




From: "doitifucan"  
To: user@ofbiz.apache.org 
Sent: Tuesday, December 14, 2010 4:55:46 PM 
Subject: practice application 2 throwing exception 


Hi, 
i completed the practice 1 application. While working with practice 2 am 
getting the below exception 

Screen Render Error 

java.lang.RuntimeException: Error rendering included form named 
[ListPersons] at location [component://practice/widget/PracticeForms.xml]: 
java.lang.NullPointerException 
at 
org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:886)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:862)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:734)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:172)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:764)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
 
at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397) 
at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:704)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:143)
 
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:232)
 
at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:397) 
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) 
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:91) 
at 
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:100)
 
at 
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:796) 
at 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537) 
at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:203) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:260) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) 
at 
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:63)
 
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 
at java.lang.Thread.run(Thread.java:619) 

please guide me any better way to identify what went wrong. 

the error log below 

2010-12-14 16:39:55,546 (http-0.0.0.0-8080-1) [ 
ModelScreenWidget.java:885:ERROR] 

 runtime exception report 
-- 
Error rendering included form named [ListPersons] at location 
[component://practice/widget/PracticeForms.xml]: 
Exception: java.lang.NullPointerException 
Message: null 
 stack trace 
--- 
java.lang.NullPointerException 
org.ofbiz.widget.ModelWidget.(ModelWidget.java:65) 
org.ofbiz.widget.form.ModelForm.(ModelForm.java:208) 
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:155) 
org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:151) 
org.ofbiz.widget.form.FormFactory.getFormFromLocatio

Re: Questions regarding survey

2010-12-14 Thread varun bhansaly
Hi Santosh,
Have you found the purpose of items #4, #5.
It would be really helpful if you (or if any one else) share your findings.

On Mon, Jul 12, 2010 at 5:47 PM, Santosh Malviya wrote:

> Hello list,
>
> I am working with content component for survey and I want to know purpose
> of
> following fields: -
>
> (1) responseService (on survey creation form under SurveyID tab)
> (2) AcroForm (PDF) Content ID (on survey creation form under SurveyID tab)
> (3) PDF Content Id (on survey creation form under SurveyID tab)
> (4) W/Question (in list of questions under Questions tab)
> (5) W/Option (in list of questions under Questions tab)
>
> Thanks and Regards
> Santosh Malviya
>



-- 
Regards,
Varun Bhansaly