[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[News.eclipse.technology.eclipselink] Re: cache synchronization

Hi Peter,

I've been looking at

http://wiki.eclipse.org/Configuring_a_Coordinated_Cache_%28ELUG%29

and have got a bit stuck as the user guide only refers to the workbench which I
have sucessfully got to run but the session editor in eclipselink 1.0M5 doesn't seem
to have a Cache Coordination tab.

Yeah it's definitely missing. I've file a bug for this [1] and for the missing documentation [2].


In the wiki there are no example session.xml files. I know there is a schema definition
but its a bit of a hassle trying to construct the session.xml file purely from the schema
definition!

Any hints welcome.

Doug recently posted about how to configure cache coordination in code on the eclipselink-user list [3].



p.s. I get a few null pointers trying to generate entity classes from database tables. Not
a big thing for me as I'm using JDeveloper for creating entities.

So you're generating Java classes and Mapping for the EclipseLink Native API from some existing tables? You don't want to use this if using JPA. You should stick with JDeveloper or Dali [4]. Do you have any idea what database schema leads to the NPE or does it happen everytime? Can you file a bug on this?


  Shaun

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=222292
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=222293
[3] http://www.nabble.com/RE:-Configuring-a-Coordinated-cache-via-RMIin-Java-p14032701.html
[4] http://www.eclipse.org/dali.




java.lang.NullPointerException
at


org.eclipse.persistence.tools.workbench.mappingsplugin.ui.db.DescriptorGenerationDialog.getGenerateAccessors(DescriptorGenerationDialog.java:70)
at

org.eclipse.persistence.tools.workbench.mappingsplugin.ui.db.DescriptorGenerationCoordinator.generateDescriptorsForTables(DescriptorGenerationCoordinator.java:105)
at

org.eclipse.persistence.tools.workbench.mappingsplugin.ui.db.DescriptorGenerationCoordinator.generateClassDescriptorsForTables(DescriptorGenerationCoordinator.java:75)
at

org.eclipse.persistence.tools.workbench.mappingsplugin.ui.db.DescriptorGenerationCoordinator.generateClassDescriptorsForAllTables(DescriptorGenerationCoordinator.java:67)
at

org.eclipse.persistence.tools.workbench.mappingsplugin.ui.db.GenerateDescriptorsFromAllTablesAction.execute(GenerateDescriptorsFromAllTablesAction.java:35)
at

org.eclipse.persistence.tools.workbench.framework.action.AbstractFrameworkAction.actionPerformed(AbstractFrameworkAction.java:147)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at


javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at


javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at


java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)