Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is happening when I receive the Java runtime exception “Request to retrieve LOB column which had already been accessed. LOB columns may only be accessed once”?

0
Posted

What is happening when I receive the Java runtime exception “Request to retrieve LOB column which had already been accessed. LOB columns may only be accessed once”?

0

When LOB data is streamed back from the DBMS, the data must be read directly by the application. Once the data has been read, a second attempt to retrieve the column value will result in the exception shown above. One option is to use locators, but that should happen automatically in situations where it won’t cause problems. Autocommit is the normal condition which would automatically disable locators. Less likely is using select loops or explicitly disabling locators in the property file. The easiest work around is to enable LOB caching. The side effect is that all non-locator LOB data will be held in memory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123