juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Commented] (JUDDI-568) If publication of the root publisher fails, juddi goes into an infinite loop
Date Sat, 23 Mar 2013 16:29:16 GMT

    [ https://issues.apache.org/jira/browse/JUDDI-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13611761#comment-13611761
] 

Alex O'Ree commented on JUDDI-568:
----------------------------------

I was able to reproduce the problem, It turned out to be my fault for implement ref integrity
checks. Eventually I ended up with a stack overflow.

The problem was specific to validateKeyedReference, which called another function "verifyTmodelKeyExists".

Inside verifyTmodelKeyExists, it created and entity manager which

The log output was something like this
Mar 23, 2013 11:30:54 AM org.apache.juddi.config.Install install
INFO: Loading the root Publisher from file root_Publisher.xml
Mar 23, 2013 11:30:54 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_Publisher.xml
Mar 23, 2013 11:30:54 AM org.apache.juddi.config.AppConfig loadConfiguration
INFO: Reading from properties file:  file:/C:/juddi/trunk/juddi-core/target/test-classes/juddiv3.properties
Mar 23, 2013 11:30:54 AM org.apache.juddi.config.AppConfig getPersistentConfiguration
INFO: The 'root' publisher was not found, loading...
Mar 23, 2013 11:30:54 AM org.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: SQL Warning: 10000, SQLState: 01J01
Mar 23, 2013 11:30:54 AM org.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: Database 'memory:juddi-derby-test-db' not created, connection made to existing database
instead.
Mar 23, 2013 11:30:54 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_tModelKeyGen.x
ml
Mar 23, 2013 11:30:55 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_BusinessEntity
.xml
Mar 23, 2013 11:30:55 AM org.apache.juddi.config.Install install
INFO: Loading the root Publisher from file root_Publisher.xml
Mar 23, 2013 11:30:55 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_Publisher.xml
Mar 23, 2013 11:30:56 AM org.apache.juddi.config.AppConfig loadConfiguration
INFO: Reading from properties file:  file:/C:/juddi/trunk/juddi-core/target/test-classes/juddiv3.properties
Mar 23, 2013 11:30:56 AM org.apache.juddi.config.AppConfig getPersistentConfiguration
INFO: The 'root' publisher was not found, loading...
Mar 23, 2013 11:30:56 AM org.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: SQL Warning: 10000, SQLState: 01J01
Mar 23, 2013 11:30:56 AM org.hibernate.util.JDBCExceptionReporter logWarnings
WARNING: Database 'memory:juddi-derby-test-db' not created, connection made to existing database
instead.
Mar 23, 2013 11:30:56 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_tModelKeyGen.x
ml
Mar 23, 2013 11:30:56 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_BusinessEntity
.xml
Mar 23, 2013 11:30:57 AM org.apache.juddi.config.Install install
INFO: Loading the root Publisher from file root_Publisher.xml
Mar 23, 2013 11:30:57 AM org.apache.juddi.config.Install buildInstallEntity
INFO: Loading the content of file: file:/C:/juddi/trunk/juddi-core/target/classes/juddi_install_data/root_Publisher.xml


and it repeats forever until the stack finally fills up. I was able to trace back the problem
to calling AppConfig.getConfiguration() from within one of the validation routines. The solution
was simple, pass the current Configuration instance though every validation routine that needs
it.
                
> If publication of the root publisher fails, juddi goes into an infinite loop
> ----------------------------------------------------------------------------
>
>                 Key: JUDDI-568
>                 URL: https://issues.apache.org/jira/browse/JUDDI-568
>             Project: jUDDI
>          Issue Type: Bug
>    Affects Versions: 3.1.4
>            Reporter: Alex O'Ree
>            Assignee: Kurt T Stam
>            Priority: Minor
>             Fix For: 3.1.5
>
>
> to reproduce edit
> juddi-core\src\main\resources\juddi_install_data\root_Publisher.xml
> change the true/false value to something like asdasdasdadsasd
> If the initial seed data from trunk/juddi-core-openjpa/target/classes/juddi_install_data/
is bad or is rejected somewhere due to a validation error, no error messages are displayed
to the log or stdout. Furthermore, the Install class gets stuck in an infinite loop. Suggest
some kind of counter or exist cause to prevent the loop,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message