You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Hal Hildebrand (JIRA)" <hi...@jakarta.apache.org> on 2004/12/30 18:30:45 UTC
[jira] Created: (HIVEMIND-81) Null pointer exception when module resource does not exist
Null pointer exception when module resource does not exist
----------------------------------------------------------
Key: HIVEMIND-81
URL: http://nagoya.apache.org/jira/browse/HIVEMIND-81
Project: HiveMind
Type: Bug
Components: framework
Versions: 1.0, 1.1
Reporter: Hal Hildebrand
When building the registry, if you provide a resource which does not exist, there is a null pointer exception in the AbstractParser when it is looking for the location to report the error. This null pointer exception masks the real problem - i.e. that the resource does not exist. The fix is simple:
in org.apache.hivemind.parse.AbstractParser, at the beginning of the method: protected Location getLocation(), add:
protected Location getLocation()
{
// Added by HSH to prevent null pointer exception when location is null
if (_locator == null) {
return null;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
RE: [jira] Commented: (HIVEMIND-81) Null pointer exception when module resource does not exist
Posted by Hal Hildebrand <ha...@hellblazer.com>.
Test case attached.
-----Original Message-----
From: Knut Wannheden (JIRA) [mailto:hivemind-dev@jakarta.apache.org]
[
http://issues.apache.org/jira/browse/HIVEMIND-81?page=comments#action_59438
]
Knut Wannheden commented on HIVEMIND-81:
----------------------------------------
Hal,
I get the impression that HiveMind checks for the avaiability of the
resource at an earlier stage, so I don't see how this could happen. Could
you please provide a test case or verify if this problem is also present in
1.1-alpha-1?
Thanks.
> Null pointer exception when module resource does not exist
> ----------------------------------------------------------
>
> Key: HIVEMIND-81
> URL: http://issues.apache.org/jira/browse/HIVEMIND-81
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.0, 1.1
> Reporter: Hal Hildebrand
>
> When building the registry, if you provide a resource which does not
exist, there is a null pointer exception in the AbstractParser when it is
looking for the location to report the error. This null pointer exception
masks the real problem - i.e. that the resource does not exist. The fix is
simple:
> in org.apache.hivemind.parse.AbstractParser, at the beginning of the
method: protected Location getLocation(), add:
> protected Location getLocation()
> {
> // Added by HSH to prevent null pointer exception when location is
null
> if (_locator == null) {
> return null;
> }
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Commented: (HIVEMIND-81) Null pointer exception when module resource does not exist
Posted by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/HIVEMIND-81?page=comments#action_59438 ]
Knut Wannheden commented on HIVEMIND-81:
----------------------------------------
Hal,
I get the impression that HiveMind checks for the avaiability of the resource at an earlier stage, so I don't see how this could happen. Could you please provide a test case or verify if this problem is also present in 1.1-alpha-1?
Thanks.
> Null pointer exception when module resource does not exist
> ----------------------------------------------------------
>
> Key: HIVEMIND-81
> URL: http://issues.apache.org/jira/browse/HIVEMIND-81
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.0, 1.1
> Reporter: Hal Hildebrand
>
> When building the registry, if you provide a resource which does not exist, there is a null pointer exception in the AbstractParser when it is looking for the location to report the error. This null pointer exception masks the real problem - i.e. that the resource does not exist. The fix is simple:
> in org.apache.hivemind.parse.AbstractParser, at the beginning of the method: protected Location getLocation(), add:
> protected Location getLocation()
> {
> // Added by HSH to prevent null pointer exception when location is null
> if (_locator == null) {
> return null;
> }
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
[jira] Resolved: (HIVEMIND-81) Null pointer exception when module resource does not exist
Posted by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/HIVEMIND-81?page=history ]
Knut Wannheden resolved HIVEMIND-81:
------------------------------------
Resolution: Fixed
Fix Version: 1.1
> Null pointer exception when module resource does not exist
> ----------------------------------------------------------
>
> Key: HIVEMIND-81
> URL: http://issues.apache.org/jira/browse/HIVEMIND-81
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.0, 1.1
> Reporter: Hal Hildebrand
> Fix For: 1.1
>
> When building the registry, if you provide a resource which does not exist, there is a null pointer exception in the AbstractParser when it is looking for the location to report the error. This null pointer exception masks the real problem - i.e. that the resource does not exist. The fix is simple:
> in org.apache.hivemind.parse.AbstractParser, at the beginning of the method: protected Location getLocation(), add:
> protected Location getLocation()
> {
> // Added by HSH to prevent null pointer exception when location is null
> if (_locator == null) {
> return null;
> }
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org