You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Lutischán Ferenc (JIRA)" <ji...@apache.org> on 2005/11/04 18:24:19 UTC
[jira] Created: (NUTCH-123) Cache.jsp some times generate NullPointerException
Cache.jsp some times generate NullPointerException
--------------------------------------------------
Key: NUTCH-123
URL: http://issues.apache.org/jira/browse/NUTCH-123
Project: Nutch
Type: Bug
Components: web gui
Environment: All systems
Reporter: Lutischán Ferenc
Priority: Critical
There is a problem with the following line in the cached.jsp:
String contentType = (String) metaData.get("Content-Type");
In the segments data there is some times not equals "Content-Type", there are "content-type" or "Content-type" etc.
The solution, insert these lines over the above line:
for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
content = (String) eNum.nextElement();
if ("content-type".equalsIgnoreCase (content)) {
break;
}
}
final String contentType = (String) metaData.get(content);
Regards,
Ferenc
--
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
[jira] Commented: (NUTCH-123) Cache.jsp some times generate NullPointerException
Posted by "YourSoft (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NUTCH-123?page=comments#action_12361485 ]
YourSoft commented on NUTCH-123:
--------------------------------
I think this issue can be closed. The source of the problem fixed in:
http://issues.apache.org/jira/browse/NUTCH-135
> Cache.jsp some times generate NullPointerException
> --------------------------------------------------
>
> Key: NUTCH-123
> URL: http://issues.apache.org/jira/browse/NUTCH-123
> Project: Nutch
> Type: Bug
> Components: web gui
> Environment: All systems
> Reporter: YourSoft
> Priority: Critical
>
> There is a problem with the following line in the cached.jsp:
> String contentType = (String) metaData.get("Content-Type");
> In the segments data there is some times not equals "Content-Type", there are "content-type" or "Content-type" etc.
> The solution, insert these lines over the above line:
> for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
> content = (String) eNum.nextElement();
> if ("content-type".equalsIgnoreCase (content)) {
> break;
> }
> }
> final String contentType = (String) metaData.get(content);
> Regards,
> Ferenc
--
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
[jira] Commented: (NUTCH-123) Cache.jsp some times generate NullPointerException
Posted by "byron miller (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NUTCH-123?page=comments#action_12361473 ]
byron miller commented on NUTCH-123:
------------------------------------
Perhaps you should try the cache servlet as it dumps out the data as it sees it.
> Cache.jsp some times generate NullPointerException
> --------------------------------------------------
>
> Key: NUTCH-123
> URL: http://issues.apache.org/jira/browse/NUTCH-123
> Project: Nutch
> Type: Bug
> Components: web gui
> Environment: All systems
> Reporter: YourSoft
> Priority: Critical
>
> There is a problem with the following line in the cached.jsp:
> String contentType = (String) metaData.get("Content-Type");
> In the segments data there is some times not equals "Content-Type", there are "content-type" or "Content-type" etc.
> The solution, insert these lines over the above line:
> for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
> content = (String) eNum.nextElement();
> if ("content-type".equalsIgnoreCase (content)) {
> break;
> }
> }
> final String contentType = (String) metaData.get(content);
> Regards,
> Ferenc
--
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
[jira] Closed: (NUTCH-123) Cache.jsp some times generate
NullPointerException
Posted by "Sami Siren (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NUTCH-123?page=all ]
Sami Siren closed NUTCH-123:
----------------------------
Fix Version: 0.8-dev
Resolution: Duplicate
problem reported to be fixed in NUTCH-135
> Cache.jsp some times generate NullPointerException
> --------------------------------------------------
>
> Key: NUTCH-123
> URL: http://issues.apache.org/jira/browse/NUTCH-123
> Project: Nutch
> Type: Bug
> Components: web gui
> Environment: All systems
> Reporter: YourSoft
> Priority: Critical
> Fix For: 0.8-dev
>
> There is a problem with the following line in the cached.jsp:
> String contentType = (String) metaData.get("Content-Type");
> In the segments data there is some times not equals "Content-Type", there are "content-type" or "Content-type" etc.
> The solution, insert these lines over the above line:
> for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
> content = (String) eNum.nextElement();
> if ("content-type".equalsIgnoreCase (content)) {
> break;
> }
> }
> final String contentType = (String) metaData.get(content);
> Regards,
> Ferenc
--
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