openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subash Chaturanga <subash...@gmail.com>
Subject Does Default entity listener working in openjpa 1.2.2 ?
Date Sun, 19 May 2013 19:33:57 GMT
Hi,
Seems it is not. Does this default listener thing works in openjpa
openjpa-1.2.2. I have a situation where I am forced to use 1.2.2 version
(juddi 3.1.3 uses 1.2.2 openjpa).
I tried the default listener and it complains I am duplicating the events
in the listener class.  ** Is there any workaround to this.


Caused by: <openjpa-1.2.2-r422266:898935 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: Class
"org.wso2.juddi.TestJUDDIEventListener" declares method "postPersist" as
well as "postPersist" for handling the same "POST_PERSIST" callback.
at
org.apache.openjpa.persistence.MetaDataParsers.validateMethodsForSameCallback(MetaDataParsers.java:92)
at
org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startCallback(XMLPersistenceMetaDataParser.java:1643)
at
org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.startSystemElement(XMLPersistenceMetaDataParser.java:476)
at
org.apache.openjpa.lib.meta.CFMetaDataParser.startElement(CFMetaDataParser.java:115)
at
org.apache.openjpa.lib.meta.XMLMetaDataParser.startElement(XMLMetaDataParser.java:432)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at
org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:376)
at
org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:318)
at
org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:295)
at
org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:268)
at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:247)
at
org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(PersistenceMetaDataFactory.java:198)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:569)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:379)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataLocking(MetaDataRepository.java:366)
at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:360)
at org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1133)
at
org.apache.openjpa.kernel.DelegatingBroker.newObjectId(DelegatingBroker.java:268)


-- 
Subash Chaturanga
Sri Lanka

Blog -  http://subashsdm.blogspot.com/
Twitter - http://twitter.com/subash89

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message