[jira] Created: (POOL-97) EVICTION_TIMER is never cancelled.
EVICTION_TIMER is never cancelled. -- Key: POOL-97 URL: https://issues.apache.org/jira/browse/POOL-97 Project: Commons Pool Issue Type: Bug Affects Versions: 1.3 Reporter: Devendra Patil The static EVICTION_TIMER (java.util.Timer) used in GenericObjectPool is never cancelled (even after closing the pool). The GenericObjectPool.close() method just cancels the _evictor (TimerTask). I agree this behaviour is ideal if EVICTION_TIMER is to be used across multiple pools. But, In my case, the resources (i.e. jars) are dynamically deployed and undeployed on remote grid-servers. If EVICTION_TIMER thread doesn't stop, the grid-servers fails to undeploy (i.e. delete) the jars. The grid-server doesn't restart during resource deployment/undeployment, so, setting EVICTION_TIMER to daemon doesn't help me. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (POOL-97) EVICTION_TIMER is never cancelled.
[ https://issues.apache.org/jira/browse/POOL-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484747 ] Henning Schmiedehausen commented on POOL-97: Ah, that would explain some strange behaviour that I have seen in a project using commons-pool inside WebLogic 8.1. Undeploy/deploy does not work unless I restart the server. Exactly the same phenomenon... EVICTION_TIMER is never cancelled. -- Key: POOL-97 URL: https://issues.apache.org/jira/browse/POOL-97 Project: Commons Pool Issue Type: Bug Affects Versions: 1.3 Reporter: Devendra Patil The static EVICTION_TIMER (java.util.Timer) used in GenericObjectPool is never cancelled (even after closing the pool). The GenericObjectPool.close() method just cancels the _evictor (TimerTask). I agree this behaviour is ideal if EVICTION_TIMER is to be used across multiple pools. But, In my case, the resources (i.e. jars) are dynamically deployed and undeployed on remote grid-servers. If EVICTION_TIMER thread doesn't stop, the grid-servers fails to undeploy (i.e. delete) the jars. The grid-server doesn't restart during resource deployment/undeployment, so, setting EVICTION_TIMER to daemon doesn't help me. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (POOL-98) Make GenericObjectPool better extensible
Make GenericObjectPool better extensible Key: POOL-98 URL: https://issues.apache.org/jira/browse/POOL-98 Project: Commons Pool Issue Type: Improvement Affects Versions: 1.3 Reporter: Henning Schmiedehausen Priority: Minor The current implementation of GenericObjectPool encapsulates the _pool object and there is no way to get it directly, which makes some things like JMX pool monitoring a bit awkward. Would it be possible to either make _pool protected or add a method protected Collection getInternalPool() { return _pool; } or something like that to the GenericObjectPool implementation (and probably others, but that is the one that bites me most... :-) ) This would make extending the GenericObjectPool much easier. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (SCXML-41) Adding information to evaluation error messages
Adding information to evaluation error messages --- Key: SCXML-41 URL: https://issues.apache.org/jira/browse/SCXML-41 Project: Commons SCXML Issue Type: Improvement Reporter: Nestor Urquiza Log trace like: EXPRESSION_ERROR (java.lang.NullPointerException) We could output more than just he little message that comes from JEXL if we modify JexlEvaluator#eval() to output the expr parameter when an Exception occurs. That way one can see easy the culprit line of JEXL/EL code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (CONFIGURATION-259) ConfigurationFactory Merge is broken
ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Banke updated CONFIGURATION-259: - Attachment: TestConfiguration.java Configuration Test File ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Banke updated CONFIGURATION-259: - Attachment: testconfig.xml Master Configuration File ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Banke updated CONFIGURATION-259: - Attachment: personendetails.xml Test configuration to be merged ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Banke updated CONFIGURATION-259: - Attachment: personensuche.xml Configuration to be merged ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, personensuche.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jakarta-commons Wiki] Update of Collections/GenericCollections/DevelopmentGuidelines by StephenKestle
Dear Wiki user, You have subscribed to a wiki page or wiki category on Jakarta-commons Wiki for change notification. The following page has been changed by StephenKestle: http://wiki.apache.org/jakarta-commons/Collections/GenericCollections/DevelopmentGuidelines The comment on the change is: Added test coverage section -- (This page needs debate or consensus) - == Testing == + == Testing / QA == As a core Java development API (and without any external system dependencies), Collections should have a set of tests that are '''deterministic (quasi-mathmatical) proofs''' of the operation of the system. Each test should stand alone. === JUnit 4 === @@ -13, +13 @@ === Mock Objects === For testing the new version, we will be using [dynamic] Mock Objects. This is because they provide absolute isolation of the classes under test. Because the collections package is a core api, and is relatively simple, there is no need to test with fully constructed objects [and they'd get in the way over time]. + === Coverage === + (This really needs soem debate) + For many of the classes, 100% coverage is warranted - CollectionUtils etc. In others, some leniency may be warranted (PredicateUtils.andPredicate). However, 100% should be aimed for as this is a core java api, and where it is not achieved, some explanation/consideration should be given. + + [http://emma.sourceforge.net EMMA] seems to be a good fit for acheiving high coverage, as it supports the notion of [http://emma.sourceforge.net/faq.html#q.fractional partial line coverage]. It's license is CPM (which I think is ASL compatible), where as Cobertura is GPL'd, and so is not suitable [or is it? this is only for building, and is not extended]. + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484840 ] Oliver Heger commented on CONFIGURATION-259: You are right that the merging facilities provided by ConfigurationFactory are not as sophisticated as the ones supported by the newer DefaultConfigurationBuilder class. Because DefaultConfigurationBuilder is intended as a replacement for ConfigurationFactory my motivation for changing this is somewhat limited. (If somebody provided a patch, I would be happy to apply it of course.) So would it be sufficient to add some notes to the documentation of ConfigurationFactory (in the JavaDocs and in the user guide) that describe these weakness and refer to DefaultConfigurationBuilder? ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, personensuche.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484850 ] Karl Banke commented on CONFIGURATION-259: -- I created yet another case in DefaultConfigurationBuilder where I merged two documents that resembled the ones above with the exception that I use two recursions to find a particular subconfiguration. So the documents that I was now merging had a structure like this config TestCases TestCase nametestCaseName/name Test nametestReadPersonByMandantenNr/name input HvNr60043/HvNr Now, when multiple recusions to get my configuration values for HvNr two myConfiguration.subset(TestCases.TestCase(0)).subset(Test(0)) .subset(input) and myConfiguration.subset(TestCases.TestCase(1)).subset(Test(0)).subset(input); The first (fed from the first configuration file) works whereas the second (fed from the second configuration file) fails with an error like the following java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object I actually changed everything to use HierarchicalConfiguration and configurationAt but: Passed in key must select exactly one node: TestCases.TestCase(1) ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, personensuche.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementation version check utility code
Hi Henri-- Did you (or anyone else) ever get a chance to take a look at this code? br, Matt --- Matt Benson [EMAIL PROTECTED] wrote: Oops... try it now. -Matt --- Henri Yandell [EMAIL PROTECTED] wrote: That 403s. Can you fix the perms? Hen On 3/15/07, Matt Benson [EMAIL PROTECTED] wrote: Sorry for the lack of a bracketed subtopic. But that's my point. ;) I have some code--mostly extracted from Ant--to check a library's implementation version, e.g. if you know you need at least version x.x.x of a class because a bug was fixed or some such, but there may be no clear indicator in the library's API to tell you its version. The code basically finds the top-level parent whence the class was loaded (jar file or folder), locates the manifest and returns the value of its Implementation-Version attribute. There is an example archive at http://people.apache.org/~mbenson/sharedfiles/ImplementationVersion.tar.gz . My questions are: what is the overall opinion of the community on whether this code is gp enough to be of wide use, and whether it is a smart fit anywhere in the commons. TIA, Matt Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484898 ] Oliver Heger commented on CONFIGURATION-259: Is it possible that your data structures contain some ambiguity, so that the merge algorithm cannot decide, which nodes are list nodes? The following section of the user guide discusses this topic: http://jakarta.apache.org/commons/configuration/howto_combinedconfiguration.html#Node_combiners If this is the case, you can explicitly mark the affected nodes as list nodes (this is explained in the section about DefaultConfigurationBuilder). ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, personensuche.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (CONFIGURATION-259) ConfigurationFactory Merge is broken
[ https://issues.apache.org/jira/browse/CONFIGURATION-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484902 ] Karl Banke commented on CONFIGURATION-259: -- That sound sensible. I did experiment with the at property in the configuration file but I was not very successful. Hence, I went with multiple configuration files. Thanks anyway. However, I would consider to deprecate the ConfigurationFactory one way or the other. ConfigurationFactory Merge is broken Key: CONFIGURATION-259 URL: https://issues.apache.org/jira/browse/CONFIGURATION-259 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.3 Environment: Windows XP running Eclipse, JDK 1.4.2 Reporter: Karl Banke Attachments: personendetails.xml, personensuche.xml, testconfig.xml, TestConfiguration.java I am trying to merge two Configuration using the ConfigurationFactory and the additional tag. It turns out that subsequent operations on the merged data provide wrong results. In particular, after creating a particular subset from a loaded configuration, the subset is empty. Strangely enough, when using DefaultConfigurationBuilder to load exactly the same configurations this works properly. So when initializing the configuration as follows, I get the following error: URL configURL = getClass().getResource(configFile); ConfigurationFactory factory = new ConfigurationFactory(); factory.setConfigurationURL(configURL); myConfig = factory.getConfiguration(); 60043 java.util.NoSuchElementException: 'HvNr' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getLong(AbstractConfiguration.java:743) at de.awd.vertriebsportal.portal.person.TestConfiguration.main(TestConfiguration.java:84) Exception in thread main But when initializing it like this everything works properly DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(); builder.setURL(configURL); myConfig = builder.getConfiguration(); 60043 54564 I will attach full source code and xml files -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (SCXML-41) Adding information to evaluation error messages
[ https://issues.apache.org/jira/browse/SCXML-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Akolkar updated SCXML-41: --- Fix Version/s: 0.7 Assignee: Rahul Akolkar Affects Version/s: 0.6 Adding information to evaluation error messages --- Key: SCXML-41 URL: https://issues.apache.org/jira/browse/SCXML-41 Project: Commons SCXML Issue Type: Improvement Affects Versions: 0.6 Reporter: Nestor Urquiza Assigned To: Rahul Akolkar Fix For: 0.7 Log trace like: EXPRESSION_ERROR (java.lang.NullPointerException) We could output more than just he little message that comes from JEXL if we modify JexlEvaluator#eval() to output the expr parameter when an Exception occurs. That way one can see easy the culprit line of JEXL/EL code. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (SCXML-40) provide a mechanism to add a session Id to current var, assign traces using a new Executor member.
[ https://issues.apache.org/jira/browse/SCXML-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Akolkar updated SCXML-40: --- Fix Version/s: 0.7 Assignee: Rahul Akolkar Affects Version/s: 0.6 provide a mechanism to add a session Id to current var, assign traces using a new Executor member. -- Key: SCXML-40 URL: https://issues.apache.org/jira/browse/SCXML-40 Project: Commons SCXML Issue Type: Improvement Affects Versions: 0.6 Reporter: Nestor Urquiza Assigned To: Rahul Akolkar Fix For: 0.7 In a concurrent environment like a web application it is of a tremendous important to get the Session Id together with any log trace. Given the fact an executor defines uniquely a State Machine status at any time it is the executor the one that ideally should carry an identifier. I would allow that identifier to be accessible with getter/setter methods. That way one can decide to set the exec#id with the session Id and later that member could be used to be output as part of the current var, assign traces. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Updated: (SCXML-39) Deprecations associated with Feb '07 WD changes
[ https://issues.apache.org/jira/browse/SCXML-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Akolkar updated SCXML-39: --- Description: Placeholder issue for listing all deprecations introduced by changes in the Feb '07 WD. 1) State#getTransitions(): * In favor of getTransitionsList() which helps better retain document order. * Deprecated in r515834 while at 0.7-SNAPSHOT. 2...n) TODO: complete this was: In favor of getTransitionsList() which helps better retain document order. Deprecated in r515834 while at 0.7-SNAPSHOT. Remove before v1.0. Summary: Deprecations associated with Feb '07 WD changes (was: Deprecate State#getTransitions()) Deprecations associated with Feb '07 WD changes --- Key: SCXML-39 URL: https://issues.apache.org/jira/browse/SCXML-39 Project: Commons SCXML Issue Type: Task Affects Versions: 0.6 Reporter: Rahul Akolkar Assigned To: Rahul Akolkar Fix For: 1.0 Placeholder issue for listing all deprecations introduced by changes in the Feb '07 WD. 1) State#getTransitions(): * In favor of getTransitionsList() which helps better retain document order. * Deprecated in r515834 while at 0.7-SNAPSHOT. 2...n) TODO: complete this -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[vote] jci out of sandbox
As already announced I would like to move http://jakarta.apache.org/commons/sandbox/jci/ out of the sandbox so I can then prepare a first RC. Please cast your votes for the graduation! cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[all] mvn site
For some reason suddenly I get this nice set of exceptions (see below) when building http://jakarta.apache.org/commons/sandbox/jci/ Character 0x0? Would be nice to know in what file. I could not find one #!/usr/bin/ruby require 'find' Find.find('./') do |f| if ! ( f =~ /.class$/ || f =~ /.gif$/ || f =~ /.png$/ || f =~ /.ser $/ || f =~ /.jar$/ || f =~ /.svn-base$/) if !FileTest.directory?(f) file = File.new(f, rb) file.each_byte { |c| if c == 0 puts found character in + f end } file.close end end end Any suggestions? (Actually my suggestion would be to remove the report as it is just for a release check anyway) cheers -- Torsten [DEBUG] Generating /Users/tcurdt/Development/commons/trunks-sandbox/ jci/target/site/rat-report.html [INFO] Generate RAT Report report. ERROR: 'An invalid XML character (Unicode: 0x0) was found in the element content of the document.' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.' Exception in thread Thread-2 rat.report.ReportFailedRuntimeException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at rat.ReportTransformer.run(ReportTransformer.java:57) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:650) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:279) at rat.ReportTransformer.transform(ReportTransformer.java:62) at rat.ReportTransformer.run(ReportTransformer.java:55) ... 1 more Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM (TransformerImpl.java:494) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:640) ... 4 more Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM (XSLTCDTMManager.java:393) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM (XSLTCDTMManager.java:228) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM (TransformerImpl.java:472) ... 5 more [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Cannot print license information Pipe closed [INFO] [DEBUG] Trace rat.report.ReportFailedRuntimeException: Cannot print license information at rat.report.xml.visitor.report.license.LicenseReportVisitor.report (LicenseReportVisitor.java:78) at rat.report.xml.visitor.report.license.LicenseReportVisitor.visit (LicenseReportVisitor.java:50) at rat.element.visitor.ElementVisitorMultiplexer.visit (ElementVisitorMultiplexer.java:37) at rat.element.visitor.ElementVisitorProxy.visit (ElementVisitorProxy.java:33) at rat.element.StandardContentElement.accept (StandardContentElement.java:37) at rat.report.xml.XmlReport.consume(XmlReport.java:53) at org.codehaus.mojo.rat.AbstractRatMojo$1.consumeContents (AbstractRatMojo.java:312) at rat.Report.report(Report.java:123) at rat.Report.report(Report.java:112) at org.codehaus.mojo.rat.AbstractRatMojo.createReport (AbstractRatMojo.java:332) at org.codehaus.mojo.rat.RatReportMojo.createReport (RatReportMojo.java:156) at org.codehaus.mojo.rat.RatReportMojo.generate (RatReportMojo.java:305) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule (DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale (SiteMojo.java:124) at
Re: [all] mvn site
Strangely I didn't see that problem for jci, copy here if you want it http://people.apache.org/~niallp/jci-rat-report.html Niall On 3/29/07, Torsten Curdt [EMAIL PROTECTED] wrote: For some reason suddenly I get this nice set of exceptions (see below) when building http://jakarta.apache.org/commons/sandbox/jci/ Character 0x0? Would be nice to know in what file. I could not find one #!/usr/bin/ruby require 'find' Find.find('./') do |f| if ! ( f =~ /.class$/ || f =~ /.gif$/ || f =~ /.png$/ || f =~ /.ser $/ || f =~ /.jar$/ || f =~ /.svn-base$/) if !FileTest.directory?(f) file = File.new(f, rb) file.each_byte { |c| if c == 0 puts found character in + f end } file.close end end end Any suggestions? (Actually my suggestion would be to remove the report as it is just for a release check anyway) cheers -- Torsten [DEBUG] Generating /Users/tcurdt/Development/commons/trunks-sandbox/ jci/target/site/rat-report.html [INFO] Generate RAT Report report. ERROR: 'An invalid XML character (Unicode: 0x0) was found in the element content of the document.' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.' Exception in thread Thread-2 rat.report.ReportFailedRuntimeException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at rat.ReportTransformer.run(ReportTransformer.java:57) at java.lang.Thread.run(Thread.java:613) Caused by: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:650) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:279) at rat.ReportTransformer.transform(ReportTransformer.java:62) at rat.ReportTransformer.run(ReportTransformer.java:55) ... 1 more Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM (TransformerImpl.java:494) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform (TransformerImpl.java:640) ... 4 more Caused by: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: An invalid XML character (Unicode: 0x0) was found in the element content of the document. at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM (XSLTCDTMManager.java:393) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM (XSLTCDTMManager.java:228) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM (TransformerImpl.java:472) ... 5 more [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Cannot print license information Pipe closed [INFO] [DEBUG] Trace rat.report.ReportFailedRuntimeException: Cannot print license information at rat.report.xml.visitor.report.license.LicenseReportVisitor.report (LicenseReportVisitor.java:78) at rat.report.xml.visitor.report.license.LicenseReportVisitor.visit (LicenseReportVisitor.java:50) at rat.element.visitor.ElementVisitorMultiplexer.visit (ElementVisitorMultiplexer.java:37) at rat.element.visitor.ElementVisitorProxy.visit (ElementVisitorProxy.java:33) at rat.element.StandardContentElement.accept (StandardContentElement.java:37) at rat.report.xml.XmlReport.consume(XmlReport.java:53) at org.codehaus.mojo.rat.AbstractRatMojo$1.consumeContents (AbstractRatMojo.java:312) at rat.Report.report(Report.java:123) at rat.Report.report(Report.java:112) at org.codehaus.mojo.rat.AbstractRatMojo.createReport (AbstractRatMojo.java:332) at org.codehaus.mojo.rat.RatReportMojo.createReport (RatReportMojo.java:156) at org.codehaus.mojo.rat.RatReportMojo.generate (RatReportMojo.java:305) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:67) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule (DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render
Re: [vote] jci out of sandbox
On 3/29/07, Torsten Curdt [EMAIL PROTECTED] wrote: As already announced I would like to move http://jakarta.apache.org/commons/sandbox/jci/ out of the sandbox so I can then prepare a first RC. Please cast your votes for the graduation! +1 Niall cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [vote] jci out of sandbox
+1 Torsten Curdt wrote on Thursday, March 29, 2007 1:27 AM: As already announced I would like to move http://jakarta.apache.org/commons/sandbox/jci/ out of the sandbox so I can then prepare a first RC. Please cast your votes for the graduation! cheers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]