You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Donald Woods (JIRA)" <ji...@apache.org> on 2010/09/22 22:40:34 UTC

[jira] Commented: (OPENJPA-1811) Dynamic load of enhancer agent on Mac OS X fails

    [ https://issues.apache.org/jira/browse/OPENJPA-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913769#action_12913769 ] 

Donald Woods commented on OPENJPA-1811:
---------------------------------------

Before fix -
768  db  TRACE  [main] openjpa.Enhance - org.apache.openjpa.enhance.InstrumentationFactorygetInstrumentation() _disabled: _inst:null_dynamicallyInstall:true
768  db  TRACE  [main] openjpa.Enhance - org.apache.openjpa.enhance.InstrumentationFactory.findToolsJar() -- couldn't find /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar
769  db  WARN   [main] openjpa.Enhance - Creating subclass for "[class openjpatest.Group, class openjpatest.Organization, class openjpatest.AddressBook]". This means that your application will be less efficient and will consume more memory than it would if you ran the OpenJPA enhancer. Additionally, lazy loading will not be available for one-to-one and many-to-one persistent attributes in types using field access; they will be loaded eagerly instead.


After fix -
64  db  TRACE  [main] openjpa.Runtime - org.apache.openjpa.enhance.InstrumentationFactory.getInstrumentation() _inst:null _dynamicallyInstall:true
66  db  TRACE  [main] openjpa.Runtime - org.apache.openjpa.enhance.InstrumentationFactory.findToolsJar() -- couldn't find default /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar
66  db  TRACE  [main] openjpa.Runtime - org.apache.openjpa.enhance.InstrumentationFactory.findToolsJar() -- found /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar
. . .
1537  db  INFO   [main] openjpa.Enhance - Creating subclass and redefining methods for "[class openjpatest.Group, class openjpatest.Organization]". This means that your application will be less efficient than it would if you ran the OpenJPA enhancer.


> Dynamic load of enhancer agent on Mac OS X fails
> ------------------------------------------------
>
>                 Key: OPENJPA-1811
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1811
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: Enhance, UnenhancedClasses
>    Affects Versions: 2.0.0
>         Environment: Mac
>            Reporter: Willis Blackburn
>            Assignee: Donald Woods
>             Fix For: 2.1.0
>
>
> Splitting out this item from OPENJPA-1804.
> The dynamic loading of the enhancer agent on Mac OS X w/ Java 1.6.0 fails due to the packaging differences on the Mac, where instead of a tools.jar, there is a 1.6.0/Classes/classes.jar that we should be using instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.