You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(22) |
Jul
(4) |
Aug
(9) |
Sep
(6) |
Oct
(5) |
Nov
(15) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(4) |
Feb
(10) |
Mar
(12) |
Apr
(16) |
May
(2) |
Jun
(7) |
Jul
(10) |
Aug
(9) |
Sep
(3) |
Oct
(17) |
Nov
(17) |
Dec
(6) |
2003 |
Jan
(12) |
Feb
(15) |
Mar
(25) |
Apr
(20) |
May
(8) |
Jun
(3) |
Jul
(21) |
Aug
(10) |
Sep
(7) |
Oct
(1) |
Nov
(3) |
Dec
(6) |
2004 |
Jan
(5) |
Feb
(16) |
Mar
(34) |
Apr
(26) |
May
(20) |
Jun
(58) |
Jul
(76) |
Aug
(51) |
Sep
(40) |
Oct
(16) |
Nov
(7) |
Dec
(6) |
2005 |
Jan
(10) |
Feb
(1) |
Mar
(17) |
Apr
(8) |
May
(11) |
Jun
(15) |
Jul
(1) |
Aug
(7) |
Sep
(6) |
Oct
(10) |
Nov
(14) |
Dec
(9) |
2006 |
Jan
(11) |
Feb
(22) |
Mar
(17) |
Apr
(1) |
May
(15) |
Jun
(9) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(10) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
|
2008 |
Jan
(2) |
Feb
(1) |
Mar
(8) |
Apr
(8) |
May
(12) |
Jun
(9) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Martin b. <mbg...@gm...> - 2005-09-11 16:10:30
|
Hello Together, my name is martin and i'm new on the list. I have a question concerning tolog. The following query should turn back all childs of T. TologResultsSet trs = qe.execute("child-of($Child:child, T) ?"); Well it returns all child topics but it returns the parent topic as well, leading to some nasty effects. In $Child I only want to have the childs and not the elmeent itself. what's wrong with this query? thanks martin -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl |
From: George T. <geo...@fr...> - 2005-09-04 16:48:52
|
Hello again Eventually, the only solution I found, in order to remove an AssociationR= ole from Association, is the following: 1. I replicate the previous association with a new one (without the specified AssociationRole) 2. I move the Reifier into the new association 3. I remove the old association completely If anybody has some ideas on this problem, or would like to ask for something, I would like to read it Cheers George ----- Original Message ----- From: "George Tryfon" <geo...@fr...> To: <tm4...@li...> Sent: Friday, September 02, 2005 10:09 PM Subject: [TM4J-users] more on AssociationRole in hibernate / MySQL > Hello again, > > (I am attaching this as a plain text also, for easier reading) > > I have a problem with Associations and after some days of confusion I found > out that: > > In my hibernate/MySQL server (I have a client server application using RMI) > > The server is trying to delete an AssociationRole, because of a clients RMI > call > > here is my code (in the server): > > Association a =3D m_associationRole.getAssociation (); > m_associationRole.remove (); > System.out.println ("comes up to this point"); > Set<AssociationRole> set =3D a.getAssociationRoles (); > System.out.println ("never comes here!"); > This generaly should work OK but: > > If for some reason a previous (different) RMI call from the client (or > another client), used this specific Association that holds the > AssociationRole > > As a result, I have the following Exception: > > > comes up to this point > > org.tm4j.topicmap.ProviderTransactionException: Error updating data object. > > Cause: net.sf.hibernate.ObjectNotFoundException: The object with that i= d was > deleted: 4028802.....bbb600002, of class: > org.tm4j.topicmap.hibernate.MemberDataObject > > Cause:The object with that id was deleted: 4028802.....bbb600002, of class: > org.tm4j.topicmap.hibernate.MemberDataObject > > at org.tm4j.topicpam.hibernate.HibernateProviderTransaction.load(Unknow= n > Source) > > at org.tm4j.topicmap.hibernate.PersistenceWrapper.load(Unknown Source) > > at org.tm4j.topicmap.hibernate.PersistenceWrapper.load(Unknown Source) > > at org.tm4j.topicmap.hibernate.MemberImpl.getPlayers(Unknown Source) > > at org.tm4j.topicmap.hibernate.MemberImpl.getPlayers(Unknown Source) > > at > org.tm4j.tmapi.core.TMAPIAssociationImpl.getAssociationRoles(TMAPIAssocia= tio > nImpl.java:79) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unkown Source) > > at sun.rmi.server.UnicastServerRef.dispatch(Unkown Source) > > at sun.rmi.transport.Transport$1.run(Unkown Source) > > at java.security.AccessController.doPrivileged(Native Method) > > at sun.rmi.transport.Transport.serviceCall(Unkown Source) > > at sun.rmi.transport.tcp.TCPTransport.handleMessage(Unkown Source) > > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unkown Sour= ce) > > at java.lang.Thread.run(Unkown Source) > > caused by: net.sf.hibernate.ObjectNotFoundException: The object with th= at id > was deleted: 4028802.....bbb600002, of class: > org.tm4j.topicmap.hibernate.MemberDataObject > > at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2060) > > at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:195= 5) > > at net.sf.hibernate.impl.SessionImpl.load(SessionImpl.java:1884) > > ... 18 more > > > > > > I close and restart the client, I try to access the AssociationRoles an= d I > get: > > > java.rmi.UnmarshalException: Error unmarshaling return; nested exceptio= n is: > > java.lang.ClassNotFoundException: > org.tm4j.topicmap.ProviderTransactionException > > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) > > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) > > at etm.server.rmi.tmapi.EtmAssociationImp_Stub.getAssociationRoles(Unkn= own > Source) > > at > etm.client.tmapi.AssociationImp.getAssociationRoles(AssociationImp.java:7= 0) > > at yellow.ui.graph.PanGraph.expandAssociation(PanGraph.java:629) > > at > yellow.actions.node.ExpandTopicRolesAction$1TThread.run(ExpandTopicRolesA= cti > on.java:104) > > Caused by: java.lang.ClassNotFoundException: > org.tm4j.topicmap.ProviderTransactionException > > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > > at java.lang.Class.forName0(Native Method) > > at java.lang.Class.forName(Class.java:242) > > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) > > at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) > > at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) > > at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) > > at > sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:19= 7) > > at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:15= 38) > > at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) > > at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) > > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215) > > ... 5 more > > > > I need to restart the server in order for the Association to work OK. > > (I have no similar problems with Topics, or deleting the full Associati= on, > or Occurrences) > > I am not a hibernate expert and I don't know if someone that knows hibernate > could have any ideas on this > It seems to me there is a problem with sessions or something like this > > any ideas? > Cheers > George > > > > > ____________________________________________________________________ > http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 =E7= =EB=E5=EA=F4=F1=EF=ED=E9=EA=EF=FD =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5. > http://www.freemail.gr - free email service for the Greek-speaking. ____________________________________________________________________ http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 =E7=EB= =E5=EA=F4=F1=EF=ED=E9=EA=EF=FD =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5. http://www.freemail.gr - free email service for the Greek-speaking. |
From: George T. <geo...@fr...> - 2005-09-02 19:09:21
|
Hello again, (I am attaching this as a plain text also, for easier reading) I have a problem with Associations and after some days of confusion I found out that: In my hibernate/MySQL server (I have a client server application using RMI) The server is trying to delete an AssociationRole, because of a clients RMI call here is my code (in the server): Association a = m_associationRole.getAssociation (); m_associationRole.remove (); System.out.println ("comes up to this point"); Set<AssociationRole> set = a.getAssociationRoles (); System.out.println ("never comes here!"); This generaly should work OK but: If for some reason a previous (different) RMI call from the client (or another client), used this specific Association that holds the AssociationRole As a result, I have the following Exception: comes up to this point org.tm4j.topicmap.ProviderTransactionException: Error updating data object. Cause: net.sf.hibernate.ObjectNotFoundException: The object with that id was deleted: 4028802.....bbb600002, of class: org.tm4j.topicmap.hibernate.MemberDataObject Cause:The object with that id was deleted: 4028802.....bbb600002, of class: org.tm4j.topicmap.hibernate.MemberDataObject at org.tm4j.topicpam.hibernate.HibernateProviderTransaction.load(Unknown Source) at org.tm4j.topicmap.hibernate.PersistenceWrapper.load(Unknown Source) at org.tm4j.topicmap.hibernate.PersistenceWrapper.load(Unknown Source) at org.tm4j.topicmap.hibernate.MemberImpl.getPlayers(Unknown Source) at org.tm4j.topicmap.hibernate.MemberImpl.getPlayers(Unknown Source) at org.tm4j.tmapi.core.TMAPIAssociationImpl.getAssociationRoles(TMAPIAssociatio nImpl.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unkown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unkown Source) at sun.rmi.transport.Transport$1.run(Unkown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unkown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessage(Unkown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unkown Source) at java.lang.Thread.run(Unkown Source) caused by: net.sf.hibernate.ObjectNotFoundException: The object with that id was deleted: 4028802.....bbb600002, of class: org.tm4j.topicmap.hibernate.MemberDataObject at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2060) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1955) at net.sf.hibernate.impl.SessionImpl.load(SessionImpl.java:1884) ... 18 more I close and restart the client, I try to access the AssociationRoles and I get: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.tm4j.topicmap.ProviderTransactionException at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at etm.server.rmi.tmapi.EtmAssociationImp_Stub.getAssociationRoles(Unknown Source) at etm.client.tmapi.AssociationImp.getAssociationRoles(AssociationImp.java:70) at yellow.ui.graph.PanGraph.expandAssociation(PanGraph.java:629) at yellow.actions.node.ExpandTopicRolesAction$1TThread.run(ExpandTopicRolesActi on.java:104) Caused by: java.lang.ClassNotFoundException: org.tm4j.topicmap.ProviderTransactionException at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215) ... 5 more I need to restart the server in order for the Association to work OK. (I have no similar problems with Topics, or deleting the full Association, or Occurrences) I am not a hibernate expert and I don't know if someone that knows hibernate could have any ideas on this It seems to me there is a problem with sessions or something like this any ideas? Cheers George ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Kal A. <ka...@te...> - 2005-09-01 08:12:16
|
Hi George, It sounds like the association role has lost its reference to its association in the database. There is no easy fix for this = programmatically. I think you might have to look in the database tables to try and figure = out what can be deleted.=20 However, what would be important would be to find out how the reference = got lost. E.g. can you tell what association it should be in, and can you = see if that association still exists. Or perhaps you called = association.remove() and the code did not remove the association roles (in which case perhaps there are other association roles with no parent association in your = topic map). Cheers, Kal -----Original Message----- From: tm4...@li... [mailto:tm4...@li...] On Behalf Of George = Tryfon Sent: 29 August 2005 20:08 To: tm4...@li... Subject: [TM4J-users] corrupted AssociationRole in hibernate / MySQL Hello, I am developing a topic map server using MySQL / hibernate (It will be free to be used with a touchgraph front end editor, in a = couple of months time) The problem: Somehow, a corrupted AssociationRole is created inside the database. The AssociationRole has "type" and "player", but has NO "Association". I am accessing it using: Set associationRoles =3D player.getRolesPlayed (); AssociationRole arProblematic =3D ...; Association a =3D arProblematic.getAssociation (); and a =3D=3D null (!) I try to : arProblematic.remove (); and I have a NullPointerException while the arProblematic is not = removed. I can't even remove the player because it is connected with the arProblematic do you have any ideas on how should I deal with this situation programmatically? Thank you for your help Cheers George TAKT research group ____________________________________________________________________ http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 = =E7=EB=E5=EA=F4=F1=EF=ED=E9=EA=EF=FD = =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5. http://www.freemail.gr - free email service for the Greek-speaking. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ Tm4j-users mailing list Tm4...@li... https://lists.sourceforge.net/lists/listinfo/tm4j-users |
From: George T. <geo...@fr...> - 2005-08-29 19:08:23
|
Hello, I am developing a topic map server using MySQL / hibernate (It will be free to be used with a touchgraph front end editor, in a couple of months time) The problem: Somehow, a corrupted AssociationRole is created inside the database. The AssociationRole has "type" and "player", but has NO "Association". I am accessing it using: Set associationRoles = player.getRolesPlayed (); AssociationRole arProblematic = ...; Association a = arProblematic.getAssociation (); and a == null (!) I try to : arProblematic.remove (); and I have a NullPointerException while the arProblematic is not removed. I can't even remove the player because it is connected with the arProblematic do you have any ideas on how should I deal with this situation programmatically? Thank you for your help Cheers George TAKT research group ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: George T. <geo...@fr...> - 2005-08-28 10:06:48
|
Hello I have the following Tolog problem (I am using TM4J-0.9.8 with hibernate) when I pass the : select $T, $VAL from topic($T), occurrence($T,$OCCURRENCE), type($OCCURRENCE, tel), value($OCCURRENCE, $VAL)? I get the correct result, but the query: select $T from topic($T), occurrence($T,$OCCURRENCE), type($OCCURRENCE, tel), value($OCCURRENCE, "123")? throws the following exception: ava.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: antlr.CommonToken at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at etm.server.rmi.tmapi.EtmTopicMapImp_Stub.getRemoteTologTmos(Unknown Source) at etm.client.tmapi.TopicMapImp.getRemoteTologTmos(TopicMapImp.java:426) at yellow.ui.tm.PanFindTopicFullCriteria.findTopics(PanFindTopicFullCriteria.ja va:235) at yellow.ui.tm.PanFindTopicFull.findTopics(PanFindTopicFull.java:90) at yellow.ui.tm.PanFindTopicFull.btnFindActionPerformed(PanFindTopicFull.java:8 2) at yellow.ui.tm.PanFindTopicFull.access$000(PanFindTopicFull.java:19) at yellow.ui.tm.PanFindTopicFull$1.actionPerformed(PanFindTopicFull.java:49) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 20) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :153) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:77 9) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:822) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:810) at org.openide.util.Mutex.doEventAccess(Mutex.java:1044) at org.openide.util.Mutex.readAccess(Mutex.java:170) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:795) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at yellow.ui.tm.wizfindtopic.WizDFind.showWizardFind(WizDFind.java:77) at yellow.actions.FindTopicNodeAction.performAction(FindTopicNodeAction.java:51 ) at org.openide.util.actions.CallbackSystemAction.performAction(CallbackSystemAc tion.java:208) at yellow.ui.graph.PanGraph$1.actionPerformed(PanGraph.java:255) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 20) 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:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:234) 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) Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: antlr.CommonToken at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1303) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215) ... 70 more Caused by: java.io.NotSerializableException: antlr.CommonToken at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.lang.Throwable.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Am I doing something wrong here? Cheers George ps, because it may be difficult to read this message, I am attaching it as a plain text also ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Kal A. <ka...@te...> - 2005-08-10 07:41:46
|
Hi George, I think that it is exactly the problem that you suspect. When the transaction is closed, the results set is also closed. What you will need to do is to wrap your use of the tolog results in its own transaction. So you will need a few extra calls in your sample code: George Tryfon wrote: >Properties props = new Properties (); > >props.setProperty >("hibernate.dialect","net.sf.hibernate.dialect.MySQLDialect"); >props.setProperty >("hibernate.connection.driver_class","com.mysql.jdbc.Driver"); >props.setProperty ("hibernate.connection.url","jdbc:mysql://localhost/etm"); >props.setProperty ("hibernate.connection.username", "root"); >props.setProperty ("hibernate.connection.password", "123"); > >TopicMapProviderFactory tmpf = new TopicMapProviderFactoryImpl(); >TopicMapProvider provider = tmpf.newTopicMapProvider(props); > >Map mapFeatures = new HashMap (); >TMAPITopicMapSystemImpl tmApiSystImpl = new TMAPITopicMapSystemImpl >(tmpf.getClass().getName(), props, mapFeatures); > >Locator loc = provider.getLocatorFactory().createLocator ("URI", tmName); >org.tm4j.topicmap.TopicMap tm = provider.getTopicMap (loc); > >QueryEvaluator qe = QueryEvaluatorFactory.newQueryEvaluator (tm); > > ProviderTransaction txn = provider.openTransaction(); >TologResultsSet rSet = qe.execute ("topic($T)?"); > > > > // Do stuff with rSet txn.abort(); What *should* happen is that the underlying Hibernate topic map provider code should use the transaction you explictly opened for all lookup operations involved in processing the tolog query and it should not try and close the transaction (because it did not open it). I guess this is really a workaround for an underlying problem which is that the Tolog query implementation is not doing the transaction wrapping itself. Although the real issue at the heart of this is that the tolog implementation for Hibernate should be making more use of SQL or Hibernate's query language instead of translating the query into operations against the TM4J API. Neither of those changes are going to happen quickly to the code base (unless someone wants to volunteer!), so in the meantime I recommend that you do this explicit wrapping in your code. In a way it is clearer anyway - even if it does require a bit more typing! Hope this helps**, Kal ** Disclaimer - I haven't actually tried this, but it is my best guess, and its the way that I worked around other issues with iterators returned by the Hibernate implementation. |
From: Dicheva, D. <dic...@ws...> - 2005-08-10 03:15:46
|
Hello all, The third version of TM4L (Topic Maps for Learning) Editor is now available. Some bugs have been fixed and some new features have been added. For example, the current version is provided with built-in visualization capabilities. We have also extended the initial set of Dublin Core elements using the standard PSIs for them. =20 The last version of TM4L can be downloaded from http://www.wssu.edu/iis/NSDL/download.html=20 Please see the TM4L Editor Help included in the downloadable package for how to use the last version of the editor including the new features.=20 As always we will appreciate your feedback. Cheers, Darina ------------------------------------------------------------------ Darina Dicheva Winston-Salem State University 3206 Computer Science Building Winston Salem, N.C. 27110 Phone: (336) 750-2484 Fax: (336) 750-2499 Email: dic...@ws... URL: http://www.wssu.edu/~dicheva ------------------------------------------------------------------ |
From: George T. <geo...@fr...> - 2005-08-09 20:05:35
|
Hello Kal (and Hibernate users) it's me again :-) because the mail breaks the lines and the message is not very easily readable, I am attaching it as plain text also I don't want to bother you, but I don't know what to do here I thing the CLASSPATH and the .jar files are all OK. (the jars are from "tm4j-bin-0.9.8.zip") When I call the following code: Properties props = new Properties (); props.setProperty ("hibernate.dialect","net.sf.hibernate.dialect.MySQLDialect"); props.setProperty ("hibernate.connection.driver_class","com.mysql.jdbc.Driver"); props.setProperty ("hibernate.connection.url","jdbc:mysql://localhost/etm"); props.setProperty ("hibernate.connection.username", "root"); props.setProperty ("hibernate.connection.password", "123"); TopicMapProviderFactory tmpf = new TopicMapProviderFactoryImpl(); TopicMapProvider provider = tmpf.newTopicMapProvider(props); Map mapFeatures = new HashMap (); TMAPITopicMapSystemImpl tmApiSystImpl = new TMAPITopicMapSystemImpl (tmpf.getClass().getName(), props, mapFeatures); Locator loc = provider.getLocatorFactory().createLocator ("URI", tmName); org.tm4j.topicmap.TopicMap tm = provider.getTopicMap (loc); QueryEvaluator qe = QueryEvaluatorFactory.newQueryEvaluator (tm); TologResultsSet rSet = qe.execute ("topic($T)?"); I get from the "qe.execute ("topic($T)?")" the following Exception: 0 [main] ERROR net.sf.hibernate.impl.IteratorImpl - could not get next result java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.ResultSet.checkClosed(ResultSet.java:3599) at com.mysql.jdbc.ResultSet.next(ResultSet.java:2464) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:63) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:91) at uk.co.jezuk.mango.iterators.TransformingIterator.next(TransformingIterator.j ava:22) at org.tm4j.tologx.predicates.TopicPredicate.matches(TopicPredicate.java:57) at org.tm4j.tologx.predicates.PredicateBase.matches(PredicateBase.java:57) at org.tm4j.tologx.parser.ClauseList.executePredicate(ClauseList.java:124) at org.tm4j.tologx.parser.ClauseList.execute(ClauseList.java:44) at org.tm4j.tologx.parser.TologQuery.execute(TologQuery.java:108) at org.tm4j.tologx.memory.PreparedQueryImpl.execute(PreparedQueryImpl.java:49) at org.tm4j.tologx.memory.QueryEvaluatorImpl.execute(QueryEvaluatorImpl.java:16 7) at etm.Test.main(Test.java:52) net.sf.hibernate.LazyInitializationException: Hibernate lazy instantiation problem at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:97) at uk.co.jezuk.mango.iterators.TransformingIterator.next(TransformingIterator.j ava:22) at org.tm4j.tologx.predicates.TopicPredicate.matches(TopicPredicate.java:57) at org.tm4j.tologx.predicates.PredicateBase.matches(PredicateBase.java:57) at org.tm4j.tologx.parser.ClauseList.executePredicate(ClauseList.java:124) at org.tm4j.tologx.parser.ClauseList.execute(ClauseList.java:44) at org.tm4j.tologx.parser.TologQuery.execute(TologQuery.java:108) at org.tm4j.tologx.memory.PreparedQueryImpl.execute(PreparedQueryImpl.java:49) at org.tm4j.tologx.memory.QueryEvaluatorImpl.execute(QueryEvaluatorImpl.java:16 7) at etm.Test.main(Test.java:52) Caused by: java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.ResultSet.checkClosed(ResultSet.java:3599) at com.mysql.jdbc.ResultSet.next(ResultSet.java:2464) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:63) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:91) ... 9 more the "net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:91)" belongs in "hibernate2.jar" the "uk.co.jezuk.mango.iterators.TransformingIterator.next(TransformingIterator. java:22)" belongs in "mango.jar" the "org.tm4j.tologx.predicates.TopicPredicate.matches(TopicPredicate.java:57)" is the: addResultsRow(ret, new Object[] {it.next()}); in the: public VariableSet matches(List params) throws TologProcessingException { VariableSet ret = new VariableSet(); initialiseResultsSet(ret); Object p = params.get(0); if (p instanceof Variable) { Iterator it = getTopicMap().getTopicsIterator(); while (it.hasNext()) { addResultsRow(ret, new Object[] {it.next()}); } } else if (p instanceof Topic) { addResultsRow(ret, new Object[] {p}); } return ret; } inside the TopicPredicate.java I understend that the "it.next()" gets: "java.sql.SQLException: Oeration not allowed after ResultSet closed" I suppose the "getTopicMap().getTopicsIterator()" (in the case of Hibernate) is served by: "org.tm4j.topicmap.hibernate.TopicMapImpl" public Iterator getTopicsIterator() { if (m_provider.isTransactionOpen()) { return getTopicsIterator(m_provider.getOpenTransaction()); } else { ProviderTransaction txn = m_provider.openTransaction(); Iterator ret = getTopicsIterator(txn); txn.rollback(); return ret; } } private Iterator getTopicsIterator(ProviderTransaction txn) { TopicMapDataObject tdo = (TopicMapDataObject) load(txn); Iterator rawIt = iterate(txn, "select topic from topic in class org.tm4j.topicmap.hibernate.TopicDataObject where topic.topicMap = ?", tdo, Hibernate.entity(TopicMapDataObject.class)); return new TransformingIterator(rawIt, getWrapper()); } (The Topic Map works and it is editable, only the Tolog is that is not working) Is it possible that the "Iterator it = getTopicMap().getTopicsIterator();" closes the ResultSet (accidentally) and then return the Iterator? Is anybody uses the combination of Hibernate and Tolog without this problem? Thank you again George Tryfon ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Kal A. <ka...@te...> - 2005-08-08 08:14:11
|
Hi George, My first guess would be that perhaps the hibernate2.jar file is not properly loaded, or has got corrupted somehow. Can you list the JAR contents using the jar command. If I do that on my local copy I can see the class listed in there. You might also want to check that there is not an older or newer version of hibernate on your CLASSPATH that is getting loaded first. Cheers, Kal George Tryfon wrote: >Hello Kal > >Using tm4j-0.9.8, I try to call the following code > > TMAPITopicMapImpl tmapiTmImpl = getTmApiTmImpl (); > QueryEvaluator qe = QueryEvaluatorFactory.newQueryEvaluator >(tmapiTmImpl.getWrapped()); > TologResultsSet rSet = qe.execute ("topic($T)?"); > >while the TopicMap is connected to MySQL using Hibernate > >the "qe.execute()" throws the following... > > > </snip stack trace> >The same code works OK when the TopicMap is connected to Ozone or XTM > >I have included all these in my classpath > > libs/hibernate/c3p0.jar > libs/hibernate/cglib2.jar > libs/hibernate/commons-dbcp.jar > libs/hibernate/commons-lang.jar > libs/hibernate/commons-pool.jar > libs/hibernate/connector.jar > libs/hibernate/dom4j.jar > libs/hibernate/ehcache.jar > libs/hibernate/hibernate2.jar > libs/hibernate/jaas.jar > libs/hibernate/jcs.jar > libs/hibernate/jdbc2_0-stdext.jar > libs/hibernate/jta.jar > libs/hibernate/mysql-connector-java-3.0.16-ga-bin.jar > libs/hibernate/odmg.jar > libs/hibernate/proxool.jar > > >and the Hibernate works OK except for the part of the Tolog. >Do you have any ideas on what should I do to overcome the >net.sf.hibernate.LazyInitializationException? > >Thank you and have a nice Summer >George > > > > |
From: George T. <geo...@fr...> - 2005-08-07 09:48:14
|
Hello Kal Using tm4j-0.9.8, I try to call the following code TMAPITopicMapImpl tmapiTmImpl = getTmApiTmImpl (); QueryEvaluator qe = QueryEvaluatorFactory.newQueryEvaluator (tmapiTmImpl.getWrapped()); TologResultsSet rSet = qe.execute ("topic($T)?"); while the TopicMap is connected to MySQL using Hibernate the "qe.execute()" throws the following... ava.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: net.sf.hibernate.LazyInitializationException at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) at etm.server.rmi.tmapi.EtmTopicMapImp_Stub.getRemoteTologTopics(Unknown Source) at etm.client.tmapi.TopicMapImp.getRemoteTologTopics(TopicMapImp.java:431) at yellow.ui.tm.DlgFindTopic.findTopics(DlgFindTopic.java:489) at yellow.ui.tm.DlgFindTopic.btnFindActionPerformed(DlgFindTopic.java:329) at yellow.ui.tm.DlgFindTopic.access$000(DlgFindTopic.java:34) at yellow.ui.tm.DlgFindTopic$1.actionPerformed(DlgFindTopic.java:231) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 20) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :153) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at yellow.ui.props.PropSupTopicType$TopicTypePanelInplace.editTopicType(PropSup TopicType.java:260) at yellow.ui.props.PropSupTopicType$TopicTypePanelInplace.actionPerformed(PropS upTopicType.java:222) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 20) 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:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java :153) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:77 9) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:822) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:810) at org.openide.util.Mutex.doEventAccess(Mutex.java:1044) at org.openide.util.Mutex.readAccess(Mutex.java:170) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:795) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at yellow.ui.tm.wizcreatetype.WizDCreateType.showWizardCreateType(WizDCreateTyp e.java:77) at yellow.actions.CreateNewTypeAction.performAction(CreateNewTypeAction.java:55 ) at yellow.ui.graph.PanGraph$3.actionPerformed(PanGraph.java:294) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4 20) 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:3093) 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:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja va:234) 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) Caused by: java.lang.ClassNotFoundException: net.sf.hibernate.LazyInitializationException at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247) at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215) ... 98 more The same code works OK when the TopicMap is connected to Ozone or XTM I have included all these in my classpath libs/hibernate/c3p0.jar libs/hibernate/cglib2.jar libs/hibernate/commons-dbcp.jar libs/hibernate/commons-lang.jar libs/hibernate/commons-pool.jar libs/hibernate/connector.jar libs/hibernate/dom4j.jar libs/hibernate/ehcache.jar libs/hibernate/hibernate2.jar libs/hibernate/jaas.jar libs/hibernate/jcs.jar libs/hibernate/jdbc2_0-stdext.jar libs/hibernate/jta.jar libs/hibernate/mysql-connector-java-3.0.16-ga-bin.jar libs/hibernate/odmg.jar libs/hibernate/proxool.jar and the Hibernate works OK except for the part of the Tolog. Do you have any ideas on what should I do to overcome the net.sf.hibernate.LazyInitializationException? Thank you and have a nice Summer George ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking. |
From: Sarasamma, S. <Sus...@ng...> - 2005-07-13 17:15:11
|
Hi, I like to use something similar to the following to get all topics and basenames where the base name contains a search string (for instance .*eferen.* from a topic map that has topics with basenames that have that substring. Tried the following: Select $A, $B from topic-name($A, $B), value-like($B, .*eferen.*)? That gave me an error "Error instantiating predicate class". Could someone tell me what is wrong with that query? Thanks suseela |
From: Bret C. <bre...@ya...> - 2005-06-17 22:15:49
|
Hi Andreas, saas also has a "presentation layer" on the data-input side, all the GUI windows. Harold, You requested a copy of my modified-TMNav-based application. I'm doing a re-write, which should be done in a few weeks. Would you like to wait until then, or would you like a copy of what I've done up until this point? (Also, the user interface is in Portuguese. I tried an earlier version last month to English & sent off the results to Christoph.) Bret --- Andreas Fleck <And...@gm...> wrote: > Hi Bret, > > thanks for your interesting answer. > > I´m gonna give your "business layer" of the sass > aplication a good read in a > short while and then see, how many of my own classes > i have to implement on > this. > > Greetings to you > Andreas > > > --- Ursprüngliche Nachricht --- > > Von: Bret Cohen <bre...@ya...> > > An: tm4...@li... > > Betreff: [TM4J-users] Re: TM4J and Software > Architecture > > Datum: Tue, 14 Jun 2005 18:02:15 -0700 (PDT) > > > > Andreas, > > > > I would say that the "database layer" as you call > it, > > is handled by TM4J, including the indexes and > tologx > > packages that allow data to be extracted from the > > topic map. > > > > The business model layer, if there is one, would > be > > handled by your own classes. In the application I > > created, which you now have, it is handled by my > saas > > classes. > > > > Pankoucke handles a different layer. I think I've > > referred to that layer as an "abstraction layer", > > though that may not be the best description. It > relies > > on the TM4J classes, and possibly on your > "business > > model classes", to extract the data from the > > "database" (really the topic map loaded from > either a > > XTM file or a database), and then builds what is > > referred to in the Panckoucke documentation as an > > "abstract model" of nodes and arcs, which is then > > passed to the renderer (the presentation layer). > So I > > would probably locate Pankcoucke and its layer > between > > the business model layer and the presentation > layer. > > > > Also, you can develop your own abstractors... > > > > Out of time... > > > > Bret > > > > --- tm4...@li... > wrote: > > > > > Send Tm4j-users mailing list submissions to > > > tm4...@li... > > > > > > To subscribe or unsubscribe via the World Wide > Web, > > > visit > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > or, via email, send a message with subject or > body > > > 'help' to > > > tm4...@li... > > > > > > You can reach the person managing the list at > > > tm4...@li... > > > > > > When replying, please edit your Subject line so > it > > > is more specific > > > than "Re: Contents of Tm4j-users digest..." > > > > > > > > > Today's Topics: > > > > > > 1. TM4J and Software Architecture (3-tier) > > > (Andreas Fleck) > > > > > > --__--__-- > > > > > > Message: 1 > > > Date: Mon, 13 Jun 2005 13:51:39 +0200 (MEST) > > > From: "Andreas Fleck" <And...@gm...> > > > To: tm4...@li... > > > Subject: [TM4J-users] TM4J and Software > Architecture > > > (3-tier) > > > > > > Hi everybody, > > > > > > i´m currently in the Design phase of the > software, > > > which i want to write > > > (the software is a plug-in for Eclipse, which is > > > displaying a Topic Map as a > > > Touchgraph). > > > > > > I want to use the Pancouke library and the > > > Touchgraph library (similar to > > > TMNav) for my project. > > > > > > Now, i am pretty confused about the different > > > abstraction layers of my > > > programm. > > > > > > My software should have a typical 3-tier > > > architecture, like this: > > > > > > Presentation Model layer > > > ^ > > > | > > > Business Model layer > > > ^ > > > | > > > Database layer > > > ^ > > > | > > > Database > > > > > > Can somebody maybe tell me under what Panckouke, > the > > > TM4J library, the XTM > > > Topic Map and Touchgraph can be filed within > such an > > > architecture? And what > > > the equivalent to the database layer might be? > > > > > > I´m thinking of something like this: > > > > > > Presentation Model layer (Displaying the Topic > > > Map->Touchgraph libraries) > > > ^ > > > | > > > Business Model layer (Filtering the Topic > > > Map->Panckouke) > > > ^ > > > | > > > Database layer ?????? > > > ^ > > > | > > > Database (XTM File????) > > > > > > Is this correct? Or is this the complete wrong > > > approach when handling Topic > > > Maps? > > > > > > I hope you understand what i am trying to say. > > > > > > Any answer is highly appreciated, as the > > > architecture of the software is > > > really crucial to my project. > > > I am thankful for any thoughts/ideas/statements > > > about this or maybe links on > > > this topic. > > > > > > Greeting to all > > > Andreas > > > > > > > > > > > > > > > > > > > > > -- > > > Weitersagen: GMX DSL-Flatrates mit > Tempo-Garantie! > > > Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl > > > > > > > > > > > > --__--__-- > > > > > > _______________________________________________ > > > Tm4j-users mailing list > > > Tm4...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > > > > > > > End of Tm4j-users Digest > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Andreas F. <And...@gm...> - 2005-06-16 11:15:22
|
Hi Harald, thanks for your kind answer. > There is one problem with your example as far as i understand the new > tolog. You cannot just build queries like a is older than b [Kal please > correct me if i am wrong]. You can modell the topicmap in a way which takes these > things into account, though. > yes, that is exactely what i am thinking, too. It isn´t possible, as far as i´ve seen, to incorporate such arithmetic expressions within my query. And as this is a feature, my resutling programm should support (a query like the above one, or let´s say a query similar to: "show all realtions done by User -X- since the last two weeks") i am in the process of finding a solution... hm... maybe a combination of SQL and Tolog (with SQL being used for the arithmetic stuff, which tolog can´t handle and Tolog for the more general queries). Any input on how to do this, is, of course, appreciated :-). (but i think it´s better to talk about this in a seperate topic :-) ) > Mmm, this may sound rude, but if you never ever developed eclipse plugins, > then there is a book you should at least have a look at (everybody i know > how read this book told me that it is really worth it and i personally > think that it is worth every cent and euro i payed for it): "Contributing to > eclipse by erich gamma". > Apart from that, it is quite easy to make tree views of some data with > JFace and SWT. There is a TreeComponent which you only have to set a > LabelProvider and ContentProvider much like i Swing. > oh no, that´s not rude, you´re absolutely right. I am currently in the process of finding my way into the Eclipse PlugIn Development and i will hunt down the book, you´ve reccomended. > > > I always dreamed about incorporating the Hypergarph into Eclipse, but > > thought of it as being quite tricky. And i only saw one other > application > > (Metrics on Sourceforge), which implemented the Touchgraph as part of an > > Eclipse plugin. > > It is really quite simple to use TG in Eclipse, you just use it like in > Swing and then embedd it into a > Composite using the SWT_AWT bridge (sorry guys, this is really off topic > :) ). > > If you want to know more technical details, then we should probably better > switch to private mail in order not to spam numerous people with eclipse > development details .... Thanks for this short introduction on how to this. Thanks also for the offer of asking you. I guess i will come back to you in a couple of days, if this is OK. ;-) Until then i´m going to get myself knowledge onto the Eclipse Plugin development. > No problem :) Hope i could help you a little bit... Definitely, all of you guys on here are a great help for me. Greetings Andreas -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++ |
From: Andreas F. <And...@gm...> - 2005-06-16 11:04:06
|
Hi Bret, thanks for your interesting answer. I´m gonna give your "business layer" of the sass aplication a good read in a short while and then see, how many of my own classes i have to implement on this. Greetings to you Andreas > --- Ursprüngliche Nachricht --- > Von: Bret Cohen <bre...@ya...> > An: tm4...@li... > Betreff: [TM4J-users] Re: TM4J and Software Architecture > Datum: Tue, 14 Jun 2005 18:02:15 -0700 (PDT) > > Andreas, > > I would say that the "database layer" as you call it, > is handled by TM4J, including the indexes and tologx > packages that allow data to be extracted from the > topic map. > > The business model layer, if there is one, would be > handled by your own classes. In the application I > created, which you now have, it is handled by my saas > classes. > > Pankoucke handles a different layer. I think I've > referred to that layer as an "abstraction layer", > though that may not be the best description. It relies > on the TM4J classes, and possibly on your "business > model classes", to extract the data from the > "database" (really the topic map loaded from either a > XTM file or a database), and then builds what is > referred to in the Panckoucke documentation as an > "abstract model" of nodes and arcs, which is then > passed to the renderer (the presentation layer). So I > would probably locate Pankcoucke and its layer between > the business model layer and the presentation layer. > > Also, you can develop your own abstractors... > > Out of time... > > Bret > > --- tm4...@li... wrote: > > > Send Tm4j-users mailing list submissions to > > tm4...@li... > > > > To subscribe or unsubscribe via the World Wide Web, > > visit > > > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > or, via email, send a message with subject or body > > 'help' to > > tm4...@li... > > > > You can reach the person managing the list at > > tm4...@li... > > > > When replying, please edit your Subject line so it > > is more specific > > than "Re: Contents of Tm4j-users digest..." > > > > > > Today's Topics: > > > > 1. TM4J and Software Architecture (3-tier) > > (Andreas Fleck) > > > > --__--__-- > > > > Message: 1 > > Date: Mon, 13 Jun 2005 13:51:39 +0200 (MEST) > > From: "Andreas Fleck" <And...@gm...> > > To: tm4...@li... > > Subject: [TM4J-users] TM4J and Software Architecture > > (3-tier) > > > > Hi everybody, > > > > i´m currently in the Design phase of the software, > > which i want to write > > (the software is a plug-in for Eclipse, which is > > displaying a Topic Map as a > > Touchgraph). > > > > I want to use the Pancouke library and the > > Touchgraph library (similar to > > TMNav) for my project. > > > > Now, i am pretty confused about the different > > abstraction layers of my > > programm. > > > > My software should have a typical 3-tier > > architecture, like this: > > > > Presentation Model layer > > ^ > > | > > Business Model layer > > ^ > > | > > Database layer > > ^ > > | > > Database > > > > Can somebody maybe tell me under what Panckouke, the > > TM4J library, the XTM > > Topic Map and Touchgraph can be filed within such an > > architecture? And what > > the equivalent to the database layer might be? > > > > I´m thinking of something like this: > > > > Presentation Model layer (Displaying the Topic > > Map->Touchgraph libraries) > > ^ > > | > > Business Model layer (Filtering the Topic > > Map->Panckouke) > > ^ > > | > > Database layer ?????? > > ^ > > | > > Database (XTM File????) > > > > Is this correct? Or is this the complete wrong > > approach when handling Topic > > Maps? > > > > I hope you understand what i am trying to say. > > > > Any answer is highly appreciated, as the > > architecture of the software is > > really crucial to my project. > > I am thankful for any thoughts/ideas/statements > > about this or maybe links on > > this topic. > > > > Greeting to all > > Andreas > > > > > > > > > > > > > > -- > > Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! > > Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl > > > > > > > > --__--__-- > > > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > > > > End of Tm4j-users Digest > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++ |
From: Harald K. <sc...@ma...> - 2005-06-15 08:25:33
|
Hi all, sorry the mail got filtered because i had to use a different address as i = got some problems with my normal one. .. Hi Andreas, >=20 > <hr> > Hi everybody, >=20 > i=B4m currently in the Design phase of the software, which i want to write= > (the software is a plug-in for Eclipse, which is displaying a Topic Map = as a > Touchgraph). actually, we (meaning christoph, niko and me) considered to port TMNav int= o beeing an eclipse application some time now. I was actually against that= in the beginning but started doing a portotype because i wanted to how ho= w difficult this would be. I never got into more than showing some maps, a= n index and a Renderer (Touchgraph, there are some problems with hypergrap= h and the SWT=5FAWT bridge which i never got into solving) - much like the b= asic structure of TMNav. If you are interested, just tell me :). =20 > I want to use the Pancouke library and the Touchgraph library (similar t= o > TMNav) for my project. >=20 > Now, i am pretty confused about the different abstraction layers of my > programm. >=20 > My software should have a typical 3-tier architecture, like this: Well, i am a little confused here mayself, the 3 tier application "pattern= " is typically used for serverside apps, wheras GUI aps are normally only = build on the MVC pattern. =20 > Presentation Model layer > ^ > | > Business Model layer > ^ > | > Database layer > ^ > | > Database >=20 > Can somebody maybe tell me under what Panckouke, the TM4J library, the X= TM > Topic Map and Touchgraph can be filed within such an architecture=3F And w= hat > the equivalent to the database layer might be=3F >=20 > I=B4m thinking of something like this: >=20 > Presentation Model layer (Displaying the Topic Map->Touchgraph libraries= ) > ^ > | > Business Model layer (Filtering the Topic Map->Panckouke) > ^ > | > Database layer =3F=3F=3F=3F=3F=3F > ^ > | > Database (XTM File=3F=3F=3F=3F) >=20 > Is this correct=3F Or is this the complete wrong approach when handling To= pic > Maps=3F Well actually i do not think that this seperation would make much sense fo= r a GUI app (much more an eclipse based app), however i think that the lay= ers could be drawn something like: Presentation Model layer (Displaying the Graphmodels->Touchgraph libraries= ) ^ | Business Model layer (Building graphlike abstractions from the TM ->Pa= nckouke) ^ | Database layer (TopicMap engine) ^ | Database (TopicMap Data) > I hope you understand what i am trying to say. >=20 > Any answer is highly appreciated, as the architecture of the software is= > really crucial to my project. > I am thankful for any thoughts/ideas/statements about this or maybe link= s on > this topic. Are you allowed to tell us what you want to do / what kind of data you wan= t to display and in which way =3F > Greeting to all > Andreas >=20 Cheers Harald P.S. Bret, could i have a copy of your app too please =3F :) =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/=3Fmc=3D021193 |
From: Harald K. <sc...@ma...> - 2005-06-15 08:23:03
|
Hi Andreas, >=20 > Hi Harald, >=20 > thanks a lot for your answer. I really appreciate it (same goes for Bret= =B4s > and everybody else=B4s help), as i really feel like stepping in the dark a= > little bit at the moment. >=20 > Thanks also for your inspiration on the software architecture. Another > question, as you mentioned MVC. > How do you think Panckoucke works together with this pattern=3F >=20 > Could this be right: >=20 > Model: The abstract model which is generated through Panckoucke > View: The specific renderer e.g. Touchgraph > Controller: Panckoucke itself (a little bit imprecise) This is a good question really, I think that this is about right if you re= ally want to squeeze Panckoucke into this seperation. =20 > > Are you allowed to tell us what you want to do / what kind of data you= > > want to display and in which way =3F >=20 > For sure, i want to display the relationships between Software Tools (th= e > files they create), which are used in order to get a certain work done. > For example, one first uses Word for writing the concept of a certain > problem, the produced Word File is then used as an "input" for a UML dra= wing > diagramm, like Rational Rose for example, this Rational Rose document is= > then used for "input" for the generation of java files. So this whole > process makes up "links" between all of this software tools and i want t= o > display those links and the corresponding software tools as an graph wit= hin > an eclipse plugin. > The information for those links is already within a database, so i just = need > to transform them into a Topic Map and then feed this Topic Map to > Panckouke. >=20 > One thing that=B4s bugging me all the time and where i would really apprec= iate > an answer: > Do you think it makes sense, to transform the Network Data, that is with= in > the Database at the moment into a Topic Map before i represent it as a > Graph=3F Or do you think it might be more useful to directly produce the i= nput > file for a specific graph like Touchgraph for example. >=20 > My point is, that i need a strong querying possibility for the data. Thi= s > means a user should be able to query the graph something like this: >=20 > "Show me all Files which are are linked together, with the creation date= of > those files being less than two days difference" >=20 > I don=B4t know at the moment, whether Tolog can handle such a complex requ= est > (given that all of the needed data, like "creation date" is provided). A= nd > if Tolog is not capable of not handling it, i would therefore need to qu= ery > the data on the Database via SQL anyway... >=20 > hmm... any ideas/thoughts on this=3F (i know it=B4s kind of off topic ;-) ) Well no problem, actually it is just a little bit off topic ...=20 This is really a difficult decision to make. In general, if you want to ma= ke very specific queries (meaning that you know exactly which "questions" = the user will ask) which mix only relationship information with data (like= which software created files not older than two days) then you probably a= re better off with the sql solution. If you know which structure you need = and the data you want to query is not that complex in terms of relationshi= ps (associations / relations) between the different domains (topic types, = entities) than you cant beat a database.=20 In cases where you do not know what the user may want to ask or there are = complex structures, topicmaps are your technology. IMHO this is the greate= s advantage of TMs, you do not have to know what a user may want to do wit= h it because TopicMaps modell the knowledge / information they contain in= a network / graph like way which does not enforce any structural constrai= nts. There is one problem with your example as far as i understand the new tolo= g. You cannot just build queries like a is older than b [Kal please corre= ct me if i am wrong]. You can modell the topicmap in a way which takes the= se things into account, though. > Hmm, Harald do you think it is possible to tell me a little bit more abo= ut > the TMNav Eclipse plugin=3F I really don=B4t know where to start at the mome= nt. > What i need is also a tree view of the data... do you think this is poss= ible > within Eclipse=3F Mmm, this may sound rude, but if you never ever developed eclipse plugins,= then there is a book you should at least have a look at (everybody i know= how read this book told me that it is really worth it and i personally th= ink that it is worth every cent and euro i payed for it): "Contributing to= eclipse by erich gamma".=20 Apart from that, it is quite easy to make tree views of some data with JFa= ce and SWT. There is a TreeComponent which you only have to set a LabelPro= vider and ContentProvider much like i Swing.=20 > I always dreamed about incorporating the Hypergarph into Eclipse, but > thought of it as being quite tricky. And i only saw one other applicatio= n > (Metrics on Sourceforge), which implemented the Touchgraph as part of an= > Eclipse plugin. It is really quite simple to use TG in Eclipse, you just use it like in Sw= ing and then embedd it into a=20 Composite using the SWT=5FAWT bridge (sorry guys, this is really off topic := ) ). If you want to know more technical details, then we should probably better= switch to private mail in order not to spam numerous people with eclipse = development details .... > Sorry for the long answers, and the wide range of topics (and questions = ;-) > ) i addressed within this e-mail but you=B4re really the only people i can= > turn to with my problems as nobody i know has a clue about all of this ;= -) > No problem :) Hope i could help you a little bit... =20 > greetings and a nice evening to all of you > Andreas Cheers, Harald =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/=3Fmc=3D021193 |
From: Bret C. <bre...@ya...> - 2005-06-15 01:02:25
|
Andreas, I would say that the "database layer" as you call it, is handled by TM4J, including the indexes and tologx packages that allow data to be extracted from the topic map. The business model layer, if there is one, would be handled by your own classes. In the application I created, which you now have, it is handled by my saas classes. Pankoucke handles a different layer. I think I've referred to that layer as an "abstraction layer", though that may not be the best description. It relies on the TM4J classes, and possibly on your "business model classes", to extract the data from the "database" (really the topic map loaded from either a XTM file or a database), and then builds what is referred to in the Panckoucke documentation as an "abstract model" of nodes and arcs, which is then passed to the renderer (the presentation layer). So I would probably locate Pankcoucke and its layer between the business model layer and the presentation layer. Also, you can develop your own abstractors... Out of time... Bret --- tm4...@li... wrote: > Send Tm4j-users mailing list submissions to > tm4...@li... > > To subscribe or unsubscribe via the World Wide Web, > visit > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > or, via email, send a message with subject or body > 'help' to > tm4...@li... > > You can reach the person managing the list at > tm4...@li... > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of Tm4j-users digest..." > > > Today's Topics: > > 1. TM4J and Software Architecture (3-tier) > (Andreas Fleck) > > --__--__-- > > Message: 1 > Date: Mon, 13 Jun 2005 13:51:39 +0200 (MEST) > From: "Andreas Fleck" <And...@gm...> > To: tm4...@li... > Subject: [TM4J-users] TM4J and Software Architecture > (3-tier) > > Hi everybody, > > i´m currently in the Design phase of the software, > which i want to write > (the software is a plug-in for Eclipse, which is > displaying a Topic Map as a > Touchgraph). > > I want to use the Pancouke library and the > Touchgraph library (similar to > TMNav) for my project. > > Now, i am pretty confused about the different > abstraction layers of my > programm. > > My software should have a typical 3-tier > architecture, like this: > > Presentation Model layer > ^ > | > Business Model layer > ^ > | > Database layer > ^ > | > Database > > Can somebody maybe tell me under what Panckouke, the > TM4J library, the XTM > Topic Map and Touchgraph can be filed within such an > architecture? And what > the equivalent to the database layer might be? > > I´m thinking of something like this: > > Presentation Model layer (Displaying the Topic > Map->Touchgraph libraries) > ^ > | > Business Model layer (Filtering the Topic > Map->Panckouke) > ^ > | > Database layer ?????? > ^ > | > Database (XTM File????) > > Is this correct? Or is this the complete wrong > approach when handling Topic > Maps? > > I hope you understand what i am trying to say. > > Any answer is highly appreciated, as the > architecture of the software is > really crucial to my project. > I am thankful for any thoughts/ideas/statements > about this or maybe links on > this topic. > > Greeting to all > Andreas > > > > > > > -- > Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! > Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl > > > > --__--__-- > > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > End of Tm4j-users Digest > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Andreas F. <And...@gm...> - 2005-06-14 16:50:29
|
Hi Harald, thanks a lot for your answer. I really appreciate it (same goes for Bret´s and everybody else´s help), as i really feel like stepping in the dark a little bit at the moment. Thanks also for your inspiration on the software architecture. Another question, as you mentioned MVC. How do you think Panckoucke works together with this pattern? Could this be right: Model: The abstract model which is generated through Panckoucke View: The specific renderer e.g. Touchgraph Controller: Panckoucke itself (a little bit imprecise) > Are you allowed to tell us what you want to do / what kind of data you > want to display and in which way ? For sure, i want to display the relationships between Software Tools (the files they create), which are used in order to get a certain work done. For example, one first uses Word for writing the concept of a certain problem, the produced Word File is then used as an "input" for a UML drawing diagramm, like Rational Rose for example, this Rational Rose document is then used for "input" for the generation of java files. So this whole process makes up "links" between all of this software tools and i want to display those links and the corresponding software tools as an graph within an eclipse plugin. The information for those links is already within a database, so i just need to transform them into a Topic Map and then feed this Topic Map to Panckouke. One thing that´s bugging me all the time and where i would really appreciate an answer: Do you think it makes sense, to transform the Network Data, that is within the Database at the moment into a Topic Map before i represent it as a Graph? Or do you think it might be more useful to directly produce the input file for a specific graph like Touchgraph for example. My point is, that i need a strong querying possibility for the data. This means a user should be able to query the graph something like this: "Show me all Files which are are linked together, with the creation date of those files being less than two days difference" I don´t know at the moment, whether Tolog can handle such a complex request (given that all of the needed data, like "creation date" is provided). And if Tolog is not capable of not handling it, i would therefore need to query the data on the Database via SQL anyway... hmm... any ideas/thoughts on this? (i know it´s kind of off topic ;-) ) Hmm, Harald do you think it is possible to tell me a little bit more about the TMNav Eclipse plugin? I really don´t know where to start at the moment. What i need is also a tree view of the data... do you think this is possible within Eclipse? I always dreamed about incorporating the Hypergarph into Eclipse, but thought of it as being quite tricky. And i only saw one other application (Metrics on Sourceforge), which implemented the Touchgraph as part of an Eclipse plugin. Sorry for the long answers, and the wide range of topics (and questions ;-) ) i addressed within this e-mail but you´re really the only people i can turn to with my problems as nobody i know has a clue about all of this ;-) greetings and a nice evening to all of you Andreas > > Greeting to all > > Andreas > > > > Cheers > Harald > > P.S. Bret, could i have a copy of your app too please ? :) > > > _________________________________________________________________________ > Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle > Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179 > > > -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl |
From: Andreas F. <And...@gm...> - 2005-06-13 11:51:50
|
Hi everybody, i´m currently in the Design phase of the software, which i want to write (the software is a plug-in for Eclipse, which is displaying a Topic Map as a Touchgraph). I want to use the Pancouke library and the Touchgraph library (similar to TMNav) for my project. Now, i am pretty confused about the different abstraction layers of my programm. My software should have a typical 3-tier architecture, like this: Presentation Model layer ^ | Business Model layer ^ | Database layer ^ | Database Can somebody maybe tell me under what Panckouke, the TM4J library, the XTM Topic Map and Touchgraph can be filed within such an architecture? And what the equivalent to the database layer might be? I´m thinking of something like this: Presentation Model layer (Displaying the Topic Map->Touchgraph libraries) ^ | Business Model layer (Filtering the Topic Map->Panckouke) ^ | Database layer ?????? ^ | Database (XTM File????) Is this correct? Or is this the complete wrong approach when handling Topic Maps? I hope you understand what i am trying to say. Any answer is highly appreciated, as the architecture of the software is really crucial to my project. I am thankful for any thoughts/ideas/statements about this or maybe links on this topic. Greeting to all Andreas -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl |
From: Andreas F. <And...@gm...> - 2005-06-09 09:23:31
|
Sorry, for this question, i just found out about the jar files in the /lib directory and included them into my workspace. Now everything is fine, without errors, and i have the projects imported within eclipse. greetings Andreas > > Another question: > How did you import the TMNav Source Code into your IDE? I am using eclipse > and am trying to import the whole TMNav project. > > As it relies on Packouke and TM4J im am also importing the source code for > those two into the same project. > > But i get something like 9000 errors, because the imports aren´t working. > -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl |
From: Andreas F. <And...@gm...> - 2005-06-09 08:41:45
|
Hi Kal, thanks a lot for your answer. So, the abstraction layer is providing the interface for the visualization for the specific renderer. greetings andreas > --- Ursprüngliche Nachricht --- > Von: Kal Ahmed <ka...@te...> > An: Andreas Fleck <And...@gm...> > Kopie: tm4...@li... > Betreff: Re: [TM4J-users] XTM visualization with Touchgraph (Help > appreciated)??? > Datum: Wed, 08 Jun 2005 16:33:12 +0100 > > Hi Andreas, > > Probably the best place to start is with the source code for TMNav which > uses touchgraph as its visualisation engine. You will see that TMNav is > built on an abstraction layer, panckouke, which can also be found in the > TM4J download pages. > > Cheers, > > Kal > > Andreas Fleck wrote: > > >Hi there, > > > >i am quite new to all of this. > >I want to display my XTM files with the Touchgraph library. > > > >But Touchgraph has it´s own DTD for it´s input data, as far as i´ve > >understood. So i´m not able to directly "feed" my XTM files to the > >Touchgraph API. Or can i do this? > > > >Can somebody please point me to a good tutorial, website, example how to > do > >handle XTM files with Touchgraph and how to display XTM files in > Touchgraph? > >Or maybe give me a rough idea, how this is handled (i´ve seen lot´s of > >applications where XTM files are displayed with the Touchgraph, so there > >should be a way, which most of the programmers are going). > > > >I really thank you in advance for your answers. > >And sorry if this question seems overly dumb. Any information is highly > >appreciated. > > > >Greetings > >Andreas > > > > > > > > -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++ |
From: Andreas F. <And...@gm...> - 2005-06-09 08:40:26
|
Hi Brett, thanks a lot for your answer and pointing me towards the resources on the websites. It would be great if you could send me some of your code and the monograph, i am glad for every example i have. Another question: How did you import the TMNav Source Code into your IDE? I am using eclipse and am trying to import the whole TMNav project. As it relies on Packouke and TM4J im am also importing the source code for those two into the same project. But i get something like 9000 errors, because the imports aren´t working. Can you maybe give me a brief introduction how to import the sources? Is there a JAR File somewhere from TM4J, that i just can add to my project, which contains everything i need, maybe? Thanks for inspiration and your help Andreas > --- Ursprüngliche Nachricht --- > Von: Bret Cohen <bre...@ya...> > An: tm4...@li... > Betreff: [TM4J-users] Re: Touchgraph > Datum: Wed, 8 Jun 2005 12:55:20 -0700 (PDT) > > > Hi Andreas, > > I am doing somthing similar to what you want to do. > The key is to understand the structure of TMNav > (installation instructions for which are available at > <http://www.folge2.de/topicmaps/tmnav/userdoc/en/install.html>, > which allows you to use the Touchgraph renderer (or > the similar Hypergraph renderer, which I am using in > my application) to display an XTM file INDIRECTLY: To > quote the TMNav documentation: > > "A Renderer never works directly with topicmap data, > but always with an intermediate structure, called > AbstractModel, which is supplied by a distinct > Abstractor. To learn more about Abstraction and how it > influences what you are going to see, check the > panckoucke-documentation." > <http://www.folge2.de/topicmaps/tmnav/userdoc/en/renderers.html> > > TMNav is built on top of TM4J and the Pankoucke > library. The latter (documented at > <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/aboutpanckoucke.html>) > supplies certain abstractors > <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/abstractors.html>, > which can be used to add data from a topic map (loaded > into memory from an XTM file using TMNav) to the > AbstractModel (containing nodes and arcs). The > AbstractModel can then be fed to a renderer such as > Touchgraph to display these nodes and arcs in its own > way. > > If the AbstractModels supplied by the Panckoucke > library don't suite your purposes, you can write your > own (as I have). The Panckoucke documentation > describes how to do this > <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/how-to-write-an-Abstractor.html> > > The TMNav application, in addition to supplying all of > the tools to do what you want, is a sample application > (which probably does a lot MORE than you or I need to > do). It lets you see XTM files displayed with many > types of renderers, and includes a complex > configuration structure to control all of this. > > My approach to this was to replace the windows and > controlling class used by TMNav with my own simpler > windows and controlling classs. If you would like, I > could send you a copy of the monograph I wrote > describing how I did this, or some of the code (It was > a bit difficult - especially for me, since I'm also a > beginner both at programming and at working with > open-source software.) > > Good luck, > > Bret Cohen > bre...@ya... > > --__--__-- > > > > Message: 1 > > Date: Tue, 7 Jun 2005 11:27:02 +0200 (MEST) > > From: "Andreas Fleck" <And...@gm...> > > To: tm4...@li... > > Subject: [TM4J-users] XTM visualization with > > Touchgraph (Help appreciated)??? > > > > Hi there, > > > > i am quite new to all of this. > > I want to display my XTM files with the Touchgraph > > library. > > > > But Touchgraph has it´s own DTD for it´s input data, > > as far as i´ve > > understood. So i´m not able to directly "feed" my > > XTM files to the > > Touchgraph API. Or can i do this? > > > > Can somebody please point me to a good tutorial, > > website, example how to do > > handle XTM files with Touchgraph and how to display > > XTM files in Touchgraph? > > Or maybe give me a rough idea, how this is handled > > (i´ve seen lot´s of > > applications where XTM files are displayed with the > > Touchgraph, so there > > should be a way, which most of the programmers are > > going). > > > > I really thank you in advance for your answers. > > And sorry if this question seems overly dumb. Any > > information is highly > > appreciated. > > > > Greetings > > Andreas > > > > -- > > Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben > > stern gratis > > ++ Jetzt anmelden & testen ++ > > http://www.gmx.net/de/go/promail ++ > > > > > > > > --__--__-- > > > > _______________________________________________ > > Tm4j-users mailing list > > Tm4...@li... > > > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > > > > End of Tm4j-users Digest > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you > shotput > a projector? How fast can you ride your desk chair down the office luge > track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++ |
From: Bret C. <bre...@ya...> - 2005-06-08 19:55:28
|
Hi Andreas, I am doing somthing similar to what you want to do. The key is to understand the structure of TMNav (installation instructions for which are available at <http://www.folge2.de/topicmaps/tmnav/userdoc/en/install.html>, which allows you to use the Touchgraph renderer (or the similar Hypergraph renderer, which I am using in my application) to display an XTM file INDIRECTLY: To quote the TMNav documentation: "A Renderer never works directly with topicmap data, but always with an intermediate structure, called AbstractModel, which is supplied by a distinct Abstractor. To learn more about Abstraction and how it influences what you are going to see, check the panckoucke-documentation." <http://www.folge2.de/topicmaps/tmnav/userdoc/en/renderers.html> TMNav is built on top of TM4J and the Pankoucke library. The latter (documented at <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/aboutpanckoucke.html>) supplies certain abstractors <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/abstractors.html>, which can be used to add data from a topic map (loaded into memory from an XTM file using TMNav) to the AbstractModel (containing nodes and arcs). The AbstractModel can then be fed to a renderer such as Touchgraph to display these nodes and arcs in its own way. If the AbstractModels supplied by the Panckoucke library don't suite your purposes, you can write your own (as I have). The Panckoucke documentation describes how to do this <http://www.folge2.de/topicmaps/panckoucke/userdoc/en/how-to-write-an-Abstractor.html> The TMNav application, in addition to supplying all of the tools to do what you want, is a sample application (which probably does a lot MORE than you or I need to do). It lets you see XTM files displayed with many types of renderers, and includes a complex configuration structure to control all of this. My approach to this was to replace the windows and controlling class used by TMNav with my own simpler windows and controlling classs. If you would like, I could send you a copy of the monograph I wrote describing how I did this, or some of the code (It was a bit difficult - especially for me, since I'm also a beginner both at programming and at working with open-source software.) Good luck, Bret Cohen bre...@ya... > --__--__-- > > Message: 1 > Date: Tue, 7 Jun 2005 11:27:02 +0200 (MEST) > From: "Andreas Fleck" <And...@gm...> > To: tm4...@li... > Subject: [TM4J-users] XTM visualization with > Touchgraph (Help appreciated)??? > > Hi there, > > i am quite new to all of this. > I want to display my XTM files with the Touchgraph > library. > > But Touchgraph has it´s own DTD for it´s input data, > as far as i´ve > understood. So i´m not able to directly "feed" my > XTM files to the > Touchgraph API. Or can i do this? > > Can somebody please point me to a good tutorial, > website, example how to do > handle XTM files with Touchgraph and how to display > XTM files in Touchgraph? > Or maybe give me a rough idea, how this is handled > (i´ve seen lot´s of > applications where XTM files are displayed with the > Touchgraph, so there > should be a way, which most of the programmers are > going). > > I really thank you in advance for your answers. > And sorry if this question seems overly dumb. Any > information is highly > appreciated. > > Greetings > Andreas > > -- > Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben > stern gratis > ++ Jetzt anmelden & testen ++ > http://www.gmx.net/de/go/promail ++ > > > > --__--__-- > > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users > > > End of Tm4j-users Digest > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Kal A. <ka...@te...> - 2005-06-08 15:33:27
|
Hi Andreas, Probably the best place to start is with the source code for TMNav which uses touchgraph as its visualisation engine. You will see that TMNav is built on an abstraction layer, panckouke, which can also be found in the TM4J download pages. Cheers, Kal Andreas Fleck wrote: >Hi there, > >i am quite new to all of this. >I want to display my XTM files with the Touchgraph library. > >But Touchgraph has it´s own DTD for it´s input data, as far as i´ve >understood. So i´m not able to directly "feed" my XTM files to the >Touchgraph API. Or can i do this? > >Can somebody please point me to a good tutorial, website, example how to do >handle XTM files with Touchgraph and how to display XTM files in Touchgraph? >Or maybe give me a rough idea, how this is handled (i´ve seen lot´s of >applications where XTM files are displayed with the Touchgraph, so there >should be a way, which most of the programmers are going). > >I really thank you in advance for your answers. >And sorry if this question seems overly dumb. Any information is highly >appreciated. > >Greetings >Andreas > > > |