"ant run-install" and mysql problems

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

"ant run-install" and mysql problems

Lucio Crusca-6
I'm trying svn release branch 9.04 with mysql, following the instruction here:

http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide

"ant run-install" has given the following output (tail):

-------------------
[java] 2009-09-03 18:22:54,369 (main) [EntityDataLoadContainer.java:275:INFO ]
00002 of 11140 from file:/opt/ofbiz-
svn/ofbiz.9.04/specialpurpose/webpos/data/DemoPosData.xml
     [java] 2009-09-03 18:22:54,369 (main)
[EntityDataLoadContainer.java:280:INFO ] The following errors occured in the
data load:
     [java] 2009-09-03 18:22:54,369 (main)
[EntityDataLoadContainer.java:282:INFO ] [install.loadData]: Error loading XML
Resource "file:/opt/ofbiz-
svn/ofbiz.9.04/framework/common/data/DimensionTypeData.xml"; Error was: A
transaction error occurred reading data
     [java] 2009-09-03 18:22:54,370 (main)
[EntityDataLoadContainer.java:282:INFO ] [install.loadData]: Error loading XML
Resource "file:/opt/ofbiz-
svn/ofbiz.9.04/applications/product/data/DimensionTypeData.xml"; Error was: A
transaction error occurred reading data
     [java] 2009-09-03 18:22:54,370 (main)
[EntityDataLoadContainer.java:286:INFO ] =-=-=-=-=-=-= Finished the data load
with 11140 rows changed.
     [java] 2009-09-03 18:22:54,370 (main) [    ContainerLoader.java:114:INFO
] Shutting down containers

BUILD SUCCESSFUL
Total time: 9 minutes 17 seconds
-----------------

What's that error? Should I worry about that since it said "BUILD SUCCESSFUL"?
Could it be caused by a race condition on the database since I was having a
look at the ofbiz tables with phpmyadmin while "ant run-install" was running?
--
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com
Reply | Threaded
Open this post in threaded view
|

Re: "ant run-install" and mysql problems

Lucio Crusca-6
I've tried "ant run-install" again with the same results, so I guess that's
not a race condition. Then I ran ant again and logged the output to a file,
here are the first exceptions I get:

[java] 2009-09-04 08:16:23,864 (main) [   EntityDataLoader.java:130:WARN ]
Could not get URL for Component ResourceHandler:
org.ofbiz.base.component.ComponentException: File Resource not found:
/opt/ofbiz-svn/ofbiz.9.04/themes/bizznesstime/data/BizznessTimeThemeData.xml

[java] 2009-09-04 08:16:32,671 (main) [    EntitySaxReader.java:563:WARN ]
     [java] ---- runtime exception report
--------------------------------------------------
     [java] Could not set field CurrencyDimension.dimensionId to the value _NF_
     [java] Exception: java.lang.IllegalArgumentException
     [java] Message: Type id-ne not found
     [java] ---- stack trace
---------------------------------------------------------------
     [java] java.lang.IllegalArgumentException: Type id-ne not found
     [java] org.ofbiz.entity.GenericEntity.setString(GenericEntity.java:461)
     [java]
org.ofbiz.entity.util.EntitySaxReader.startElement(EntitySaxReader.java:557)
     [java] javolution.xml.sax.XMLReaderImpl.parseAll(Unknown Source)
...

    [java] 2009-09-04 08:16:32,764 (main) [    TransactionUtil.java:285:ERROR]
     [java] ---- exception report
----------------------------------------------------------
     [java] [TransactionUtil.rollback]
     [java] Exception: java.lang.Exception
     [java] Message: Stack Trace
     [java] ---- stack trace
---------------------------------------------------------------
     [java] java.lang.Exception: Stack Trace
     [java]
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:284)
     [java]
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:266)
     [java]
org.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:270)
...

    [java] 2009-09-04 08:16:32,768 (main) [    TransactionUtil.java:295:INFO ]
[TransactionUtil.rollback] transaction rolled back
     [java] 2009-09-04 08:16:32,771 (main) [  
EntityDataLoader.java:220:ERROR]
     [java] ---- exception report
----------------------------------------------------------
     [java] [install.loadData]: Error loading XML Resource "file:/opt/ofbiz-
svn/ofbiz.9.04/framework/common/data/DimensionTypeData.xml"; Error was: A
transaction error occurred reading data
     [java] Exception: org.xml.sax.SAXException
     [java] Message: A transaction error occurred reading data
...


and then a few other similar exceptions, all with message "Type id-ne not
found".

Any clue?
--
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com
Reply | Threaded
Open this post in threaded view
|

Re: "ant run-install" and mysql problems

Anne Jessel
A guess, which might be totally wrong, is that you've changed the
entityengine.xml file so it is inconsistent, and now ofbiz can't find
the right fieldtype file to use. I'd suggest reviewing your edits of
that file.

Cheers,
Anne.

2009/9/4 Lucio Crusca <[hidden email]>:

> I've tried "ant run-install" again with the same results, so I guess that's
> not a race condition. Then I ran ant again and logged the output to a file,
> here are the first exceptions I get:
>
> [java] 2009-09-04 08:16:23,864 (main) [   EntityDataLoader.java:130:WARN ]
> Could not get URL for Component ResourceHandler:
> org.ofbiz.base.component.ComponentException: File Resource not found:
> /opt/ofbiz-svn/ofbiz.9.04/themes/bizznesstime/data/BizznessTimeThemeData.xml
>
> [java] 2009-09-04 08:16:32,671 (main) [    EntitySaxReader.java:563:WARN ]
>     [java] ---- runtime exception report
> --------------------------------------------------
>     [java] Could not set field CurrencyDimension.dimensionId to the value _NF_
>     [java] Exception: java.lang.IllegalArgumentException
>     [java] Message: Type id-ne not found
>     [java] ---- stack trace
> ---------------------------------------------------------------
>     [java] java.lang.IllegalArgumentException: Type id-ne not found
>     [java] org.ofbiz.entity.GenericEntity.setString(GenericEntity.java:461)
>     [java]
> org.ofbiz.entity.util.EntitySaxReader.startElement(EntitySaxReader.java:557)
>     [java] javolution.xml.sax.XMLReaderImpl.parseAll(Unknown Source)
> ...
>
>    [java] 2009-09-04 08:16:32,764 (main) [    TransactionUtil.java:285:ERROR]
>     [java] ---- exception report
> ----------------------------------------------------------
>     [java] [TransactionUtil.rollback]
>     [java] Exception: java.lang.Exception
>     [java] Message: Stack Trace
>     [java] ---- stack trace
> ---------------------------------------------------------------
>     [java] java.lang.Exception: Stack Trace
>     [java]
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:284)
>     [java]
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:266)
>     [java]
> org.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:270)
> ...
>
>    [java] 2009-09-04 08:16:32,768 (main) [    TransactionUtil.java:295:INFO ]
> [TransactionUtil.rollback] transaction rolled back
>     [java] 2009-09-04 08:16:32,771 (main) [
> EntityDataLoader.java:220:ERROR]
>     [java] ---- exception report
> ----------------------------------------------------------
>     [java] [install.loadData]: Error loading XML Resource "file:/opt/ofbiz-
> svn/ofbiz.9.04/framework/common/data/DimensionTypeData.xml"; Error was: A
> transaction error occurred reading data
>     [java] Exception: org.xml.sax.SAXException
>     [java] Message: A transaction error occurred reading data
> ...
>
>
> and then a few other similar exceptions, all with message "Type id-ne not
> found".
>
> Any clue?
> --
> Virtual Bit di Lucio Crusca
> http://www.virtual-bit.com
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: "ant run-install" and mysql problems

Lucio Crusca-6
Il sabato 5 settembre 2009 08:35:42 Anne Jessel ha scritto:
> entityengine.xml file so it is inconsistent. I'd suggest reviewing your
> edits of that file.

I suppose my edits followed the instrutions here:

http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide

and reviewing my file I can't find any inconsistence, but I'm the lord of the
newbies, so it's attached here...


--
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com

entityengine.xml (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "ant run-install" and mysql problems

Jacopo Cappellato-4
Hi Lucio,

please make sure you have setup the dataresource for the group-name  
"org.ofbiz.olap":

     <delegator name="default" entity-model-reader="main" entity-group-
reader="main" entity-eca-reader="main" distributed-cache-clear-
enabled="false">
         <group-map group-name="org.ofbiz" datasource-
name="localderby"/>
         <group-map group-name="org.ofbiz.olap" datasource-
name="localderbyolap"/>
     </delegator>

The error you have seems related to an error of a configuration of  
org.ofbiz.olap

Ciao,

Jacopo

On Sep 6, 2009, at 9:18 AM, Lucio Crusca wrote:

> Il sabato 5 settembre 2009 08:35:42 Anne Jessel ha scritto:
>> entityengine.xml file so it is inconsistent. I'd suggest reviewing  
>> your
>> edits of that file.
>
> I suppose my edits followed the instrutions here:
>
> http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
>
> and reviewing my file I can't find any inconsistence, but I'm the  
> lord of the
> newbies, so it's attached here...
>
>
> --
> Virtual Bit di Lucio Crusca
> http://www.virtual-bit.com
> <entityengine.xml>

Reply | Threaded
Open this post in threaded view
|

Re: "ant run-install" and mysql problems

Lucio Crusca-6
In data lunedì 7 settembre 2009 16:58:36, Jacopo Cappellato ha scritto:

> Hi Lucio,
>
> please make sure you have setup the dataresource for the group-name
> "org.ofbiz.olap":
>
>      <delegator name="default" entity-model-reader="main" entity-group-
> reader="main" entity-eca-reader="main" distributed-cache-clear-
> enabled="false">
>          <group-map group-name="org.ofbiz" datasource-
> name="localderby"/>
>          <group-map group-name="org.ofbiz.olap" datasource-
> name="localderbyolap"/>
>      </delegator>
>
> The error you have seems related to an error of a configuration of
> org.ofbiz.olap

You're right, my olap datasources were commented out (I commented them out
because I don't even know what olap is, and since an entityEngine.xml I found
attached in a message of this list had them commented out, I supposed they
were optional...)

Thanks
Lucio.

--
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com