I have downloaded NVBase and followed the instructions to set it up with our internal newsgroup server.
After indexing one group in our server (seeing the number of posts correctly) when I go to the search page it always returned 0 items.
There are not many things to configure in the web interface, it's a bug or I can give you some more information to help me?
Thanks,
Sebastian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
even as an administrator you have to set the permission for the resource at least to "Anonymous". Could you please check, if you set this permission? The default setting is that no group has access to the new resource and then a search query returns 0 hits (Maybe that is not a perfect default value).
Regards,
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, Now I can search the documents but can't see the results contents:
- If I press in the link I receive:
"404 Page not found." with the url (for example): http://salesman.nkt:8080/news.nkt%20-%201--1420264079
- If I press on PDF I receive:
500 Error!
java.lang.NullPointerException
at org.nvbase.search.gui.servlets.AccessServlet.checkAccess(AccessServlet.java:133)
at org.nvbase.search.gui.servlets.AccessServlet.service(AccessServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:619)
- And seeing results in the console I find:
...
...
...
15:13:12,862 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 2263
15:13:12,862 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 2293
15:13:33,402 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 271
15:13:33,402 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 277
15:13:45,394 ERROR [[DOC Servlet]] Servlet.service() for servlet DOC Servlet threw exception
...
...
...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the link returns a 404, because there it is not possible to get the nntp message directly. To customize the look of this url you can change the "View-Url" and "Download-Url" of the resource. You can change this values in the web interface in the administration section (You can find more information in the section "Devices" in the documentation). Please change the "Download-Url" to 'object.jsf?id=$id&alias$alias'. This will show the default information page of the search hit. You can customize the look of this page or create your own page easily if you like.
The NullPointerException is a bug indeed. We will fix it in the next release. You can change remove the PDF and Word icons meanwhile. Go to the directory '${INSTALL_DIR}/server/default/data/nvbase/config/layout/views'. Here you find the file 'default.xhtml'. This is the template for the search hits. You can remove the links to the PDF and DOC.
I hope this helps.
Regards
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We have changed the view & download URL to 'object.jsf?id=$id&alias$alias' but it doesn't show the content of the nntp message. Am I missing something?
If it's not implemented yet I recommend you a quick workaround for a future version putting a link like: news://<server>/<message-id> opens the message in the NNTP Reader (i.e: Thunderbird).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i will try to fix this in this weeks release. You are right, I do not save the message id and then it is impossible to show the nntp message directly. I just wanted to say, that you can customize the content page of the search hit, but the "news://" link is a more beautiful approach. The beta4 release will contain this attribute.
Regards
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I released a beta4 with the fixes for the NNTP. You can now use the PDF and DOC icon and the server should create DOC or PDF files. In the administration for the resource you can now use the message_id of the NNTP news. You can use as the download url, and as the view url of course, 'news://mynewsserver/$message_id'. Please remeber to use 'nntp' as the alias when you create the resource in the administration gui.
Regards
Jens
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have downloaded NVBase and followed the instructions to set it up with our internal newsgroup server.
After indexing one group in our server (seeing the number of posts correctly) when I go to the search page it always returned 0 items.
There are not many things to configure in the web interface, it's a bug or I can give you some more information to help me?
Thanks,
Sebastian
Hi,
even as an administrator you have to set the permission for the resource at least to "Anonymous". Could you please check, if you set this permission? The default setting is that no group has access to the new resource and then a search query returns 0 hits (Maybe that is not a perfect default value).
Regards,
Jens
Hi,
Thanks, Now I can search the documents but can't see the results contents:
- If I press in the link I receive:
"404 Page not found." with the url (for example): http://salesman.nkt:8080/news.nkt%20-%201--1420264079
- If I press on PDF I receive:
500 Error!
java.lang.NullPointerException
at org.nvbase.search.gui.servlets.AccessServlet.checkAccess(AccessServlet.java:133)
at org.nvbase.search.gui.servlets.AccessServlet.service(AccessServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:619)
- And seeing results in the console I find:
...
...
...
15:13:12,862 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 2263
15:13:12,862 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 2293
15:13:33,402 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 271
15:13:33,402 WARN [ReducedHTMLParser] Invalid tag found: unexpected input while looking for attr name or '/>' at line 277
15:13:45,394 ERROR [[DOC Servlet]] Servlet.service() for servlet DOC Servlet threw exception
...
...
...
Hi,
the link returns a 404, because there it is not possible to get the nntp message directly. To customize the look of this url you can change the "View-Url" and "Download-Url" of the resource. You can change this values in the web interface in the administration section (You can find more information in the section "Devices" in the documentation). Please change the "Download-Url" to 'object.jsf?id=$id&alias$alias'. This will show the default information page of the search hit. You can customize the look of this page or create your own page easily if you like.
The NullPointerException is a bug indeed. We will fix it in the next release. You can change remove the PDF and Word icons meanwhile. Go to the directory '${INSTALL_DIR}/server/default/data/nvbase/config/layout/views'. Here you find the file 'default.xhtml'. This is the template for the search hits. You can remove the links to the PDF and DOC.
I hope this helps.
Regards
Jens
Hi Jens,
We have changed the view & download URL to 'object.jsf?id=$id&alias$alias' but it doesn't show the content of the nntp message. Am I missing something?
If it's not implemented yet I recommend you a quick workaround for a future version putting a link like: news://<server>/<message-id> opens the message in the NNTP Reader (i.e: Thunderbird).
Hi Sebastian,
i will try to fix this in this weeks release. You are right, I do not save the message id and then it is impossible to show the nntp message directly. I just wanted to say, that you can customize the content page of the search hit, but the "news://" link is a more beautiful approach. The beta4 release will contain this attribute.
Regards
Jens
Hi,
I released a beta4 with the fixes for the NNTP. You can now use the PDF and DOC icon and the server should create DOC or PDF files. In the administration for the resource you can now use the message_id of the NNTP news. You can use as the download url, and as the view url of course, 'news://mynewsserver/$message_id'. Please remeber to use 'nntp' as the alias when you create the resource in the administration gui.
Regards
Jens
Hi,
Thanks Jens. Please let me know when a release is available opening the mime main content inside the browser.
Regards,
Sebastian
It should work with a download link with following style: 'news://mynewsserver/$message_id'. What happens if you use this kind of download link?