Problem in importing seed data

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

Problem in importing seed data

Sangs
Hi All,
I am using ofbiz build 5924.and database is localderby.
While trying to import seed data, I am getting the following exception:

An error occurred saving the data, rolling back transaction (true)
Exception: java.lang.IllegalArgumentException
Message: Type id not found


An error occurred saving the data, rolling back transaction (true)
Exception: java.lang.IllegalArgumentException
Message: Type description not found

Here is the relevant excrept from entitymodel.xml:
    <entity entity-name="Room"
            package-name="org.ofbiz.hotelCalifornia"
            title="Hotel California's Rooms">
      <field name="roomId" type="id"></field>
      <field name="fId" type="id"></field>
      <field name="numberFree" type="numeric"></field>
      <prim-key field="roomId"/>
      <relation type="one" fk-name="room_facility_map" rel-entity-name="RoomFacility">
        <key-map field-name="fId"/>
      </relation>
    </entity>


    and here is what i am trying to import:
    <?xml version="1.0" encoding="UTF-8"?>
     <entity-engine-xml>
      <RoomFacility fId="PLAIN" description="A plain room with minimal facilities"/>
        <Room roomId="PLAIN" fId="F100" numberFree=5/>
    </entity-engine-xml>

I know you guys are busy with other stuff but if anybody could help me here, I would really appreciate that.

Sangeeta
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem in importing seed data

Andrew Sykes
Sangeeta,

This is a pretty old build. It would be a good idea to upgrade.

This suggestion is a long shot, but until someone gives you a better
answer...

Check that the field type "id" is defined in your fieldtype.xml
definitions.
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem in importing seed data

BJ Freeman
In reply to this post by Sangs
This is Hans's project. if he dose not pick up here you might try his forum.

there should be an error message with the line number and name of the
routine causing the problem. That will tell you where in the code to look.

My guess is your import data may not be correct.

you can verify this by trying to use the webtools import routine.


Sangs sent the following on 6/21/06 2:19 AM:

> Hi All,
> I am using ofbiz build 5924.and database is localderby.
> While trying to import seed data, I am getting the following exception:
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type id not found
>
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type description not found
>
> Here is the relevant excrept from entitymodel.xml:
>     <entity entity-name="Room"
>             package-name="org.ofbiz.hotelCalifornia"
>             title="Hotel California's Rooms">
>       <field name="roomId" type="id"></field>
>       <field name="fId" type="id"></field>
>       <field name="numberFree" type="numeric"></field>
>       <prim-key field="roomId"/>
>       <relation type="one" fk-name="room_facility_map"
> rel-entity-name="RoomFacility">
>         <key-map field-name="fId"/>
>       </relation>
>     </entity>
>
>
>     and here is what i am trying to import:
>     <?xml version="1.0" encoding="UTF-8"?>
>      <entity-engine-xml>
>       <RoomFacility fId="PLAIN" description="A plain room with minimal
> facilities"/>
> <Room roomId="PLAIN" fId="F100" numberFree=5/>
>     </entity-engine-xml>
>
> I know you guys are busy with other stuff but if anybody could help me here,
> I would really appreciate that.
>
> Sangeeta
> --
> View this message in context: http://www.nabble.com/Problem-in-importing-seed-data-t1822724.html#a4970775
> Sent from the OFBiz - Dev forum at Nabble.com.
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem in importing seed data

Peter Goron
In reply to this post by Sangs
Hi,

Check that you entity "Room" is also declared in entitygroup.xml
field-type can only be resolved once your entity has been attached to an
entity-group.

Peter

Le mercredi 21 juin 2006 à 02:19 -0700, Sangs a écrit :

> Hi All,
> I am using ofbiz build 5924.and database is localderby.
> While trying to import seed data, I am getting the following exception:
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type id not found
>
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type description not found
>
> Here is the relevant excrept from entitymodel.xml:
>     <entity entity-name="Room"
>             package-name="org.ofbiz.hotelCalifornia"
>             title="Hotel California's Rooms">
>       <field name="roomId" type="id"></field>
>       <field name="fId" type="id"></field>
>       <field name="numberFree" type="numeric"></field>
>       <prim-key field="roomId"/>
>       <relation type="one" fk-name="room_facility_map"
> rel-entity-name="RoomFacility">
>         <key-map field-name="fId"/>
>       </relation>
>     </entity>
>
>
>     and here is what i am trying to import:
>     <?xml version="1.0" encoding="UTF-8"?>
>      <entity-engine-xml>
>       <RoomFacility fId="PLAIN" description="A plain room with minimal
> facilities"/>
> <Room roomId="PLAIN" fId="F100" numberFree=5/>
>     </entity-engine-xml>
>
> I know you guys are busy with other stuff but if anybody could help me here,
> I would really appreciate that.
>
> Sangeeta
> --
> View this message in context: http://www.nabble.com/Problem-in-importing-seed-data-t1822724.html#a4970775
> Sent from the OFBiz - Dev forum at Nabble.com.
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem in importing seed data

Ray Barlow
In reply to this post by Sangs
Shouldn't there be quotes around:
   ....numberFree=5....
like:
   ....numberFree="5"....

Ray

PS: This really is a user question and not related to developing OFBiz
so please post to the User mailing list.


Sangs wrote:

> Hi All,
> I am using ofbiz build 5924.and database is localderby.
> While trying to import seed data, I am getting the following exception:
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type id not found
>
>
> An error occurred saving the data, rolling back transaction (true)
> Exception: java.lang.IllegalArgumentException
> Message: Type description not found
>
> Here is the relevant excrept from entitymodel.xml:
>     <entity entity-name="Room"
>             package-name="org.ofbiz.hotelCalifornia"
>             title="Hotel California's Rooms">
>       <field name="roomId" type="id"></field>
>       <field name="fId" type="id"></field>
>       <field name="numberFree" type="numeric"></field>
>       <prim-key field="roomId"/>
>       <relation type="one" fk-name="room_facility_map"
> rel-entity-name="RoomFacility">
>         <key-map field-name="fId"/>
>       </relation>
>     </entity>
>
>
>     and here is what i am trying to import:
>     <?xml version="1.0" encoding="UTF-8"?>
>      <entity-engine-xml>
>       <RoomFacility fId="PLAIN" description="A plain room with minimal
> facilities"/>
> <Room roomId="PLAIN" fId="F100" numberFree=5/>
>     </entity-engine-xml>
>
> I know you guys are busy with other stuff but if anybody could help me here,
> I would really appreciate that.
>
> Sangeeta
> --
> View this message in context: http://www.nabble.com/Problem-in-importing-seed-data-t1822724.html#a4970775
> Sent from the OFBiz - Dev forum at Nabble.com.
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
>  
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Problem in importing seed data

Si Chen-2
This sounds like an old problem with localderbyodbc not being set  
correctly, so it couldn't find the types on some fieldtype_...xml  We  
had it with returns for a while too.  Andy Z. fixed it.

So here are two questions:

1.  Did you define your new entities in entitygroup.xml?

2.  Did you modify anything in entityengine.xml?

Si

PS Ray is right this belongs on users list.

On Jun 21, 2006, at 6:19 AM, Ray Barlow wrote:

> Shouldn't there be quotes around:
>    ....numberFree=5....
> like:
>    ....numberFree="5"....
>
> Ray
>
> PS: This really is a user question and not related to developing OFBiz
> so please post to the User mailing list.
>
>
> Sangs wrote:
>> Hi All,
>> I am using ofbiz build 5924.and database is localderby.
>> While trying to import seed data, I am getting the following  
>> exception:
>>
>> An error occurred saving the data, rolling back transaction (true)
>> Exception: java.lang.IllegalArgumentException
>> Message: Type id not found
>>
>>
>> An error occurred saving the data, rolling back transaction (true)
>> Exception: java.lang.IllegalArgumentException
>> Message: Type description not found
>>
>> Here is the relevant excrept from entitymodel.xml:
>>     <entity entity-name="Room"
>>             package-name="org.ofbiz.hotelCalifornia"
>>             title="Hotel California's Rooms">
>>       <field name="roomId" type="id"></field>
>>       <field name="fId" type="id"></field>
>>       <field name="numberFree" type="numeric"></field>
>>       <prim-key field="roomId"/>
>>       <relation type="one" fk-name="room_facility_map"
>> rel-entity-name="RoomFacility">
>>         <key-map field-name="fId"/>
>>       </relation>
>>     </entity>
>>
>>
>>     and here is what i am trying to import:
>>     <?xml version="1.0" encoding="UTF-8"?>
>>      <entity-engine-xml>
>>       <RoomFacility fId="PLAIN" description="A plain room with  
>> minimal
>> facilities"/>
>> <Room roomId="PLAIN" fId="F100" numberFree=5/>
>>     </entity-engine-xml>
>>
>> I know you guys are busy with other stuff but if anybody could  
>> help me here,
>> I would really appreciate that.
>>
>> Sangeeta
>> --
>> View this message in context: http://www.nabble.com/Problem-in- 
>> importing-seed-data-t1822724.html#a4970775
>> Sent from the OFBiz - Dev forum at Nabble.com.
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev