First I'd try the latest XCC jars. There's an effort to maintain forward compatibility, but the gap from 5 to 7 may be too much.
http://developer.marklogic.com/products/xcc Is there a reason why you're setting DocumentFormat.NONE? If possible, I'd set it to the appropriate value: XML or BINARY or TEXT. I think that's unlikely to be the problem here, but it might be worth a try. https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/DocumentFormat.html -- Mike On 16 Jul 2014, at 07:14 , Cram, Sinclair <[email protected]> wrote: > Worth adding that this only accounts for a very small number of attempts, > most are inserting fine! > > Sinclair Cram | Client Technology | J.P. Morgan | Alhambra House, 45 Waterloo > Street, Glasgow | J.P. Morgan | T: +44 141 228 0421 > > From: [email protected] > [mailto:[email protected]] On Behalf Of Cram, Sinclair > Sent: 16 July 2014 15:12 > To: MarkLogic Developer Discussion > Subject: [MarkLogic Dev General] XDMP-NOTXN: No transaction with identifier > > Is anyone able to tell me why I’m getting XDMP:NOTXN when trying to insert > documents into Marklogic 7.0-3, using the XCC library (5.0.5)? I’m not using > transactions to insert the content and this never happened in UAT testing. > There are around 4 million (that’s with an ‘m’!) to process at around 25 > concurrently. > > Java snippet: > > contentCreateOptions.setFormat(DocumentFormat.NONE); > InputStream inputStream = new ByteArrayInputStream(content.getBytes()); > Content marklogicData = > ContentFactory.newUnBufferedContent(content.getDestinationValue(), > inputStream, contentCreateOptions); > > session.insertContent(marklogicData); > > Application log: > ERROR 2014-07-16 10:00:32,205 [Migrator(4)] > (com.jpmorgan.research.marklogic.tools.MarklogicConnection) Problem > processing [/content/GPS-1124575-0/DocumentState.xml] > com.marklogic.xcc.exceptions.XQueryException: XDMP-NOTXN: No transaction with > identifier 5564027231435171418 > [Session: user=adm1n, cb=Research [ContentSource: user=adm1n, cb={none} > [provider: address=research-prod-ml-1.jpmchase.net/169.81.194.65:8004, > pool=3/64]]] > [Client: XCC/5.0-5, Server: XDBC/7.0-2.1] > at > com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:34) > at > com.marklogic.xcc.impl.handlers.ContentInsertController.serverDialog(ContentInsertController.java:128) > at > com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:86) > at > com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:293) > at > com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:321) > at > com.jpmorgan.research.marklogic.tools.MarklogicConnection.write(MarklogicConnection.java:132) > > Errorlog.txt: > 2014-07-16 09:58:08.095 Notice: Research_XDBC_8004: XDMP-NOTXN: No > transaction with identifier 3711787446244504750 > 2014-07-16 09:58:08.095 Notice: Research_XDBC_8004: [1.0-ml] > > Sinclair Cram | Client Technology | J.P. Morgan | Alhambra House, 45 Waterloo > Street, Glasgow | J.P. Morgan | T: +44 141 228 0421 > This email is confidential and subject to important disclaimers and > conditions including on offers for the purchase or sale of securities, > accuracy and completeness of information, viruses, confidentiality, legal > privilege, and legal entity disclaimers, available > athttp://www.jpmorgan.com/pages/disclosures/email. > > This email is confidential and subject to important disclaimers and > conditions including on offers for the purchase or sale of securities, > accuracy and completeness of information, viruses, confidentiality, legal > privilege, and legal entity disclaimers, available > athttp://www.jpmorgan.com/pages/disclosures/email. > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
