Oops: Bringing up version 12.04 (More Questions)

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

Oops: Bringing up version 12.04 (More Questions)

SkipDever
Oops sent this wrong.
Adrian

Thanks for the responses.  It is all very helpful.



I am down to just a few problems and the showstopper is this Entity to
extend does not exist: WorkEffortAndPartyAssign.
There are four extend-entities in this module that extend views.  If any of
them are left in the entitymodel.xml file, I get this exact same error but
with a different file name.

As a test, I extended OrderHeaderAndItems in a different module in exactly
the same way and got the same error.

Here is the extend that is causing the error.  It is exactly the same as my
9.x version which works fine:
    <extend-entity entity-name="WorkEffortAndPartyAssign">
        <relation type="one-nofk" title="Current"
rel-entity-name="StatusItem">
            <key-map field-name="currentStatusId"
rel-field-name="statusId"/>
        </relation>
        <relation type="one-nofk" rel-entity-name="WorkEffortType">
            <key-map field-name="workEffortTypeId"/>
        </relation>
        <relation type="one-nofk" rel-entity-name="WorkEffortPurposeType">
            <key-map field-name="workEffortPurposeTypeId"/>
        </relation>
    </extend-entity>

As a further test, I commented these out from jobshop and I copied this
extend-entity into the same entitymodel_view.xml file as the the definition
for WorkEffortAndPartyAssign in the workeffort project and got exactly the
same error.


Here is the 12.04 error:

     [java] 2013-05-17 13:41:12,883 (main) [DelegatorFactoryImpl.java:30
:INFO ] Creating new delegator [default] (main)
     [java] java.lang.NullPointerException
     [java] at
java.util.concurrent.ConcurrentHashMap.putIfAbsent(ConcurrentHashMap.java:89
5)
     [java] at
org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:56)
     [java] at
org.ofbiz.entityext.data.EntityDataLoadContainer.loadContainer(EntityDataLoa
dContainer.java:278)
     [java] at
org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContain
er.java:242)
     [java] at
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
     [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:362)
     [java] 2013-05-17 13:41:14,155 (main) [DelegatorFactoryImpl.java:35
:ERROR]
     [java] ---- exception
report ----------------------------------------------------------
     [java] Error creating delegator
     [java] Exception: org.ofbiz.entity.GenericEntityConfException
     [java] Message: Entity to extend does not exist:
WorkEffortAndPartyAssign
     [java] ---- stack
trace ---------------------------------------------------------------
     [java] org.ofbiz.entity.GenericEntityConfException: Entity to extend
does not exist: WorkEffortAndPartyAssign
     [java]
org.ofbiz.entity.model.ModelReader.getEntityCache(ModelReader.java:266)
     [java]
org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:99)
     [java]
org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:234)
     [java]
org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:
33)
        ...

The entity the error is complaining about is in the workeffort module.

Here is the load list:

     [java] 2013-05-17 13:41:12,457 (main) [
ComponentContainer.java:180:INFO ] Auto-Loading component directory :
[G:/JavaProjects/FS-2.0/applications]
     [java] 2013-05-17 13:41:12,470 (main) [
ComponentContainer.java:241:INFO ] Loading component : [party]
     [java] 2013-05-17 13:41:12,477 (main) [
ComponentContainer.java:241:INFO ] Loading component : [securityext]
     [java] 2013-05-17 13:41:12,488 (main) [
ComponentContainer.java:241:INFO ] Loading component : [content]
     [java] 2013-05-17 13:41:12,499 (main) [
ComponentContainer.java:241:INFO ] Loading component : [workeffort]
     [java] 2013-05-17 13:41:12,509 (main) [
ComponentContainer.java:241:INFO ] Loading component : [product]
     [java] 2013-05-17 13:41:12,517 (main) [
ComponentContainer.java:241:INFO ] Loading component : [manufacturing]
     [java] 2013-05-17 13:41:12,528 (main) [
ComponentContainer.java:241:INFO ] Loading component : [accounting]
     [java] 2013-05-17 13:41:12,529 (main) [
ComponentContainer.java:290:WARN ] Location
'G:/JavaProjects/FS-2.0/applications/accounting/lib/securepay' does not
exist
     [java] 2013-05-17 13:41:12,529 (main) [
ComponentContainer.java:290:WARN ] Location
'G:/JavaProjects/FS-2.0/applications/accounting/lib/cybersource' does not
exist
     [java] 2013-05-17 13:41:12,529 (main) [
ComponentContainer.java:290:WARN ] Location
'G:/JavaProjects/FS-2.0/applications/accounting/lib/worldpay' does not exist
     [java] 2013-05-17 13:41:12,529 (main) [
ComponentContainer.java:290:WARN ] Location
'G:/JavaProjects/FS-2.0/applications/accounting/lib/worldpay' does not exist
     [java] 2013-05-17 13:41:12,535 (main) [
ComponentContainer.java:241:INFO ] Loading component : [humanres]
     [java] 2013-05-17 13:41:12,543 (main) [
ComponentContainer.java:241:INFO ] Loading component : [order]
     [java] 2013-05-17 13:41:12,550 (main) [
ComponentContainer.java:241:INFO ] Loading component : [marketing]
     [java] 2013-05-17 13:41:12,557 (main) [
ComponentContainer.java:241:INFO ] Loading component : [commonext]
    [java] 2013-05-17 13:41:12,666 (main) [
ComponentContainer.java:180:INFO ] Auto-Loading component directory :
[G:/JavaProjects/FS-2.0/hot-deploy]
     [java] 2013-05-17 13:41:12,673 (main) [
ComponentContainer.java:241:INFO ] Loading component : [ar]
     [java] 2013-05-17 13:41:12,678 (main) [
ComponentContainer.java:241:INFO ] Loading component : [FSDataimport]
     [java] 2013-05-17 13:41:12,684 (main) [
ComponentContainer.java:241:INFO ] Loading component : [FSCommon]
     [java] 2013-05-17 13:41:12,689 (main) [
ComponentContainer.java:241:INFO ] Loading component : [help]
     [java] 2013-05-17 13:41:12,695 (main) [
ComponentContainer.java:241:INFO ] Loading component : [ap]
     [java] 2013-05-17 13:41:12,700 (main) [
ComponentContainer.java:241:INFO ] Loading component : [po]
     [java] 2013-05-17 13:41:12,707 (main) [
ComponentContainer.java:241:INFO ] Loading component : [fsinventory]
     [java] 2013-05-17 13:41:12,713 (main) [
ComponentContainer.java:241:INFO ] Loading component : [distributor]
     [java] 2013-05-17 13:41:12,719 (main) [
ComponentContainer.java:241:INFO ] Loading component : [offers]
     [java] 2013-05-17 13:41:12,724 (main) [
ComponentContainer.java:241:INFO ] Loading component : [dataexport]
     [java] 2013-05-17 13:41:12,731 (main) [
ComponentContainer.java:241:INFO ] Loading component : [NTCT]
     [java] 2013-05-17 13:41:12,736 (main) [
ComponentContainer.java:241:INFO ] Loading component : [jobshop]
     ...

The extend-entity is in jobshop, loaded way after workeffort.  If I comment
out the four extend-entitys in this module, ant load-extseed runs to
completion (with some warnings I am working on).

I am thinking this is a bug.  For the time being, I am just going to add the
extensions and move on.

Thanks in Advance
Skip

-----Original Message-----
From: Adrian Crum [mailto:[hidden email]]
Sent: Thursday, May 16, 2013 12:40 AM
To: [hidden email]
Subject: Re: Bringing up version 12.04 (More Questions)


Skip,

A lot has changed over the last three years, so yes - upgrading from 9
to 12 will be a challenge.

There is a Wiki page for upgrading the database:

https://cwiki.apache.org/OFBTECH/revisions-requiring-data-migration-upgrade-
ofbiz.html

All entities are members of the org.ofbiz group unless defined
otherwise. So, there is no need for entitygroup.xml files. In general,
we are moving toward a "convention instead of configuration" design
approach.

Yes, you can extend a view entity. I don't know why you are getting an
error from extending a view entity. Perhaps something was mis-configured
on your local copy.

Does the ClassNotFoundException get thrown on an unmodified copy? Make
sure you are using the ant script and not the ant binary.

-Adrian

On 5/15/2013 10:36 PM, Skip wrote:
> I am upgrading the Ofbiz portion of several applications and have run into
a
> few errors.  This is ofbiz 12.04 running postgres with entityengine.xml
> configured to use postgres and with a postgres driver jar file loaded into
> framework/entity/lib/jdbc.  These applications have run with 9.x for many
> years.
>
> First, is there any general documentation as to upgrading from version 9
to
> 10 and from version 10 to 11 and or 12.  What configuration changes are
> required beyond the obvious changes in entityengine.xml.
>
> Second, I noted the lack of entitygroup.xml files generally.  Are these
> files no longer required and if not, how do you define what group an
entity
> belongs to.
>
> I am also trying to fix all the errors in the console.log file.
>
> I extend several view entities.  I am getting an error like this for all
of

> them:
>
> Exception: org.ofbiz.entity.GenericEntityConfException
> Message: Entity to extend does not exist: ContentAndRole
>
> This does exist as a view-entity in
> applications\content\enditydef\enditymodel.xml
>
> Can view entities no longer be extended?  Basically, I am just adding
> relations to these view entities to make it easier to use them.
>
> Finally, I am gettng this error:
>
> 2013-05-15 14:10:01,058 (main) [   DelegatorFactory.java:53 :ERROR]
> ---- exception
> report ----------------------------------------------------------
> Exception: java.lang.ClassNotFoundException
> Message: java.lang.Class
> ---- stack
> trace ---------------------------------------------------------------
> java.lang.ClassNotFoundException: java.lang.Class
> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:209)
>
> I added a printf statement at the top of this function to print the class
> names and the output looks like this:
>
> Loading default from interface java.lang.Class
>
> Where default is the name of the object we are trying to load and
> java.lang.Class is the factory interface we are loading from, so I am
> assuming that this is the default delegator and something is
misconfigured.

>
> Any pointers would help in trying to track this down.
>
>
>
> I am getting lots of warnings in the log file.  I have gone through and
> fixed most of the warnings.
>
> One warning I am getting is this:
> ContainerLoader.java:77 :INFO ] [Startup] Loading containers...
> Warning : Module classpath component 'C:\Windows\Sun\Java\bin' is not
valid

> and will be ignored
>
> I dont even have a Windows\Sun directory.  Can anyone tell me where tis is
> being generated from?
>
>
> Thanks in Advance
> Skip
>
>