|
|
|
[
Permlink
| « Hide
]
Bob Swift - 28/Apr/07 07:06 AM
I think this is one of those areas where different databases behave differently. I am working on a code change that will solve this problem but will need you to verify it on your system prior to release.
Bob,
The new jar file didn't work. The same problem shows up. Well this is going to be more difficult then. Here are some things to do.
To see if you can get things back to normal after this error occurs:
Here is the log.
I attempted the rollback, but nothing happened. Did I do it right? Here is my SQL code for the other page that normally works: {sql:dataSource=DIT1}SQL ROLLBACK WORK{sql} {sql:dataSource=DIT1} select news "News", get_proper_date_remedy(date_posted, 'mm/dd/yyyy') "Date Posted" from docusp.PCDT_NEWS where to_date(get_proper_date_remedy(date_posted, 'mm/dd/yyyy'),'mm/dd/yyyy') > sysdate-8{sql} By the way, I noticed in your log that you are using macro-security and are experiencing the problem noted in a comment on this page: http://confluence.atlassian.com/display/CONFEXT/Macro+security
Looks like the latest fix did the trick. Thank you for fixing this so fast. Also, thanks for pointing out the macro-security thing. I am going to take a look at that next.
Good. Thanks for testing this out. I will release it soon and let you know. It should be same as what you have. Likely the security thing will be taken care of soon once plugins get upgraded to work on 2.4.x and above only. Don't like breaking compatibility with older releases, but it appears that there is no other choice right now.
Hi Bob,
I am having the same error:
suggestions? It was the jar file entitled "sql-plugin-3.2.2-beta2.jar" which was attached to this page as of yesterday, May 1st at noon.
I have read this thread twice but cannot acertain to which comments in particular are you referring.
James, sorry, I wasn't very clear. Yes, I meant the jar you mentioned and make sure it is the only one in ...WEB-INF/lib. And yes, please send me the log so I can see the call stack of the exception to see what is happening. Additional debug information is available if you add
log4j.logger.org.swift.confluence=DEBUG Bob, after server restart and confirming no SQL plugins were installed, a clean install of SQL 3.2.2-beta2 permitted a query of our non-transactional database on our dev server. I think the first beta didn't install correctly despite what the plugin loader replied as a success. (although I did confirm the version was 3.2.2 at the time).
So now we are looking forward to the next release so we can try this out in production mode! Thanks! And sorry for the red herring. Using this beta2 to query the same non-transactional database, the results return very slowly. So I put it in a {cache} macro.
At first it works. When I returned the next day, I get: sql: java.sql.SQLException: OALL8 is in an inconsistent state select count refresh IE and I get: sql: java.sql.SQLException: Closed Connection select count when I refresh the cache, I get (very slowly) my expected results. when I refresh IE, I continue to get my expected results So this error seems to only be the first time that I view the data. It's happened two days in a row. I'll continue to monitor and report back here if I can reproduce the error consistently. James, sorry to hear this is not working for you yet. Could you please test another change (beta3) that may solve the non-transactional database case? I don't have a test environment for this. You will have to use the transactionisolation parameter (see the notation guide) so the all the transaction code is avoided:
transactionIsolation=none Note when this is installed, it should show Plugin Version: 3.2.2-beta3. Matt, this should not affect your positive results! 3.2.2. seems to be working. will open new issues if problems return. thanks!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||