You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Tim Putnam (JIRA)" <ji...@apache.org> on 2006/11/13 16:02:37 UTC
[jira] Created: (WSCOMMONS-127) StAXUtils XMLInputFactory
instantiation
StAXUtils XMLInputFactory instantiation
---------------------------------------
Key: WSCOMMONS-127
URL: http://issues.apache.org/jira/browse/WSCOMMONS-127
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Environment: Java 1.6 beta 1, Java 1.6 RC1, not Java 1.6 beta 2
Reporter: Tim Putnam
I'm using Axiom 1.2 in the context of the latest Axis 2 v1.1 snapshots. I've
twice in two months had issues with a particular part of the source, that
being in org.apache.axiom.om.util.StAXUtils:
synchronized public static XMLInputFactory getXMLInputFactory() {
if (!xmlInputFactoryPool.empty()) {
return (XMLInputFactory) xmlInputFactoryPool.pop();
}
return
XMLInputFactory.newInstance("javax.xml.stream.XMLInputFactory",
StAXUtils.class.getClassLoader());
}
When I run my application on either Java 1.6 beta ONE, or the recent Java
1.6 RC 1, it fails when attempting to create the new instance. I have no
idea why, but I get an InstantiationException (exactly the same thing worked
perfectly on Java 1.6 beta TWO).
I've currently got around the issue by replacing the above instantiation in
StAXUtils with the line:
return XMLInputFactory.newInstance();
..which works perfectly. Could anybody shed any light on what the issue is
that I'm experiencing and why its changing with the Java versions? Also, why
is StAXUtils using the parameterised version of this interface when its just
passing in defaults?
Many thanks,
Tim
----------- Response from mailing list-------
Please log a bug. we need to add a try/catch and fall back to ("return
XMLInputFactory.newInstance();"). looks like the stax api inside your
jdk version has a problem. (try dropping the stax 1.0.1 api jar in
lib/endorsed) if you want to run w/o a code fix.
thanks,
dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Commented: (WSCOMMONS-127) StAXUtils XMLInputFactory
instantiation
Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-127?page=comments#action_12457481 ]
Jochen Wiedmann commented on WSCOMMONS-127:
-------------------------------------------
No, this is not in Axis 2 1.1. However, there's a change that you don't need to wait for Axis 2 1.2, because it is quite likely that another release of Axiom will appeare before. However, I cannot predict, whether such a release will appear and whether it will be upwards compatible.
> StAXUtils XMLInputFactory instantiation
> ---------------------------------------
>
> Key: WSCOMMONS-127
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-127
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: Java 1.6 beta 1, Java 1.6 RC1, not Java 1.6 beta 2
> Reporter: Tim Putnam
> Assigned To: Jochen Wiedmann
>
> I'm using Axiom 1.2 in the context of the latest Axis 2 v1.1 snapshots. I've
> twice in two months had issues with a particular part of the source, that
> being in org.apache.axiom.om.util.StAXUtils:
> synchronized public static XMLInputFactory getXMLInputFactory() {
> if (!xmlInputFactoryPool.empty()) {
> return (XMLInputFactory) xmlInputFactoryPool.pop();
> }
> return
> XMLInputFactory.newInstance("javax.xml.stream.XMLInputFactory",
> StAXUtils.class.getClassLoader());
> }
> When I run my application on either Java 1.6 beta ONE, or the recent Java
> 1.6 RC 1, it fails when attempting to create the new instance. I have no
> idea why, but I get an InstantiationException (exactly the same thing worked
> perfectly on Java 1.6 beta TWO).
> I've currently got around the issue by replacing the above instantiation in
> StAXUtils with the line:
> return XMLInputFactory.newInstance();
> ..which works perfectly. Could anybody shed any light on what the issue is
> that I'm experiencing and why its changing with the Java versions? Also, why
> is StAXUtils using the parameterised version of this interface when its just
> passing in defaults?
> Many thanks,
> Tim
> ----------- Response from mailing list-------
> Please log a bug. we need to add a try/catch and fall back to ("return
> XMLInputFactory.newInstance();"). looks like the stax api inside your
> jdk version has a problem. (try dropping the stax 1.0.1 api jar in
> lib/endorsed) if you want to run w/o a code fix.
> thanks,
> dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Commented: (WSCOMMONS-127) StAXUtils XMLInputFactory
instantiation
Posted by "Geoffrey Ruscoe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-127?page=comments#action_12457459 ]
Geoffrey Ruscoe commented on WSCOMMONS-127:
-------------------------------------------
So I take it from the dates here that this did not make it into Axis2 1.1, correct?
Will this be in Axis2 1.2 then?
I don't think this will be a factor because I don't think we are going to roll out Java 6 yet, but since it is officially released I need to make sure I can give good answers.
Thanks so much,
Geoff
> StAXUtils XMLInputFactory instantiation
> ---------------------------------------
>
> Key: WSCOMMONS-127
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-127
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: Java 1.6 beta 1, Java 1.6 RC1, not Java 1.6 beta 2
> Reporter: Tim Putnam
> Assigned To: Jochen Wiedmann
>
> I'm using Axiom 1.2 in the context of the latest Axis 2 v1.1 snapshots. I've
> twice in two months had issues with a particular part of the source, that
> being in org.apache.axiom.om.util.StAXUtils:
> synchronized public static XMLInputFactory getXMLInputFactory() {
> if (!xmlInputFactoryPool.empty()) {
> return (XMLInputFactory) xmlInputFactoryPool.pop();
> }
> return
> XMLInputFactory.newInstance("javax.xml.stream.XMLInputFactory",
> StAXUtils.class.getClassLoader());
> }
> When I run my application on either Java 1.6 beta ONE, or the recent Java
> 1.6 RC 1, it fails when attempting to create the new instance. I have no
> idea why, but I get an InstantiationException (exactly the same thing worked
> perfectly on Java 1.6 beta TWO).
> I've currently got around the issue by replacing the above instantiation in
> StAXUtils with the line:
> return XMLInputFactory.newInstance();
> ..which works perfectly. Could anybody shed any light on what the issue is
> that I'm experiencing and why its changing with the Java versions? Also, why
> is StAXUtils using the parameterised version of this interface when its just
> passing in defaults?
> Many thanks,
> Tim
> ----------- Response from mailing list-------
> Please log a bug. we need to add a try/catch and fall back to ("return
> XMLInputFactory.newInstance();"). looks like the stax api inside your
> jdk version has a problem. (try dropping the stax 1.0.1 api jar in
> lib/endorsed) if you want to run w/o a code fix.
> thanks,
> dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-127) StAXUtils XMLInputFactory
instantiation
Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WSCOMMONS-127?page=all ]
Jochen Wiedmann resolved WSCOMMONS-127.
---------------------------------------
Resolution: Fixed
Assignee: Jochen Wiedmann
Fixed in the trunk.
> StAXUtils XMLInputFactory instantiation
> ---------------------------------------
>
> Key: WSCOMMONS-127
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-127
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: Java 1.6 beta 1, Java 1.6 RC1, not Java 1.6 beta 2
> Reporter: Tim Putnam
> Assigned To: Jochen Wiedmann
>
> I'm using Axiom 1.2 in the context of the latest Axis 2 v1.1 snapshots. I've
> twice in two months had issues with a particular part of the source, that
> being in org.apache.axiom.om.util.StAXUtils:
> synchronized public static XMLInputFactory getXMLInputFactory() {
> if (!xmlInputFactoryPool.empty()) {
> return (XMLInputFactory) xmlInputFactoryPool.pop();
> }
> return
> XMLInputFactory.newInstance("javax.xml.stream.XMLInputFactory",
> StAXUtils.class.getClassLoader());
> }
> When I run my application on either Java 1.6 beta ONE, or the recent Java
> 1.6 RC 1, it fails when attempting to create the new instance. I have no
> idea why, but I get an InstantiationException (exactly the same thing worked
> perfectly on Java 1.6 beta TWO).
> I've currently got around the issue by replacing the above instantiation in
> StAXUtils with the line:
> return XMLInputFactory.newInstance();
> ..which works perfectly. Could anybody shed any light on what the issue is
> that I'm experiencing and why its changing with the Java versions? Also, why
> is StAXUtils using the parameterised version of this interface when its just
> passing in defaults?
> Many thanks,
> Tim
> ----------- Response from mailing list-------
> Please log a bug. we need to add a try/catch and fall back to ("return
> XMLInputFactory.newInstance();"). looks like the stax api inside your
> jdk version has a problem. (try dropping the stax 1.0.1 api jar in
> lib/endorsed) if you want to run w/o a code fix.
> thanks,
> dims
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org