You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by "Brian K. Buckley" <bb...@surfglobal.net> on 2002/03/18 02:36:31 UTC
xindice and xincon
Hi,
The file upload feature in the xincon webapp is not working properly for me.
When I upload an XML document through the xincon webapp, a new entry appears
on the returned page that shows the list of documents in the collection (but
showing the filename instead of the name I specify) so it appears to
basically work, but when I click on the "view source" link to view the newly
uploaded document I get an exception (see trace stack below).
Checking the xindice database using the command line tool shows the document
was in fact added.
What's wrong? Why isn't the xincon webapp seeing the added document after
the upload?
-Brian
----------------------------------------------------------------------------
------
java.lang.NullPointerException
at xincon.DefaultServlet.requestDB(DefaultServlet.java:177)
at xincon.WebdavServlet.service(WebdavServlet.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1017)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1115
)
at java.lang.Thread.run(Thread.java:484)
Re: xindice and xincon
Posted by Jan Metzner <ja...@fhm.edu>.
Am Mon, 2002-03-18 um 14.47 schrieb Wei-Chin Hsieh:
> I had the same problem when I tried to upload files. I think Jan will
> explain it to us pretty soon.
sorry, i forgot to test the upload through the web interface with the
explorer. the explorer sends the filename of the uploaded file including
the hole path.
you can download the updated war file and the sources here:
http://www.mucl.de/~jmetzner/xincon/
ciao Jan
Re: xindice and xincon
Posted by Jan Metzner <ja...@fhm.edu>.
Am Mon, 2002-03-18 um 14.47 schrieb Wei-Chin Hsieh:
> I had the same problem when I tried to upload files. I think Jan will
> explain it to us pretty soon.
sorry, i forgot to test the upload through the web interface with the
explorer. the explorer sends the filename of the uploaded file including
the hole path.
you can download the updated war file and the sources here:
http://www.mucl.de/~jmetzner/xincon/
ciao Jan
Re: xindice and xincon
Posted by Wei-Chin Hsieh <wh...@cae.wisc.edu>.
I had the same problem when I tried to upload files. I think Jan will
explain it to us pretty soon. BTW, Attrezzo per Xindice has implemented a
new feature that allows you to upload/import files into Xindice. It is
developed as a plugin of eclipse SDK.
Wei-Chin
----- Original Message -----
From: "Brian K. Buckley" <bb...@surfglobal.net>
To: <xi...@xml.apache.org>
Sent: Monday, March 18, 2002 7:08 AM
Subject: Re: xindice and xincon
> >> Possibly pertinent though, the filename along with its path are long
> enough that it is being wrapped.
>
> The wrapping appears not to matter. I tried a file with a filename and
path
> short enough not to wrap and I get the same problem.
>
>
Re: xindice and xincon
Posted by "Brian K. Buckley" <bb...@surfglobal.net>.
>> Possibly pertinent though, the filename along with its path are long
enough that it is being wrapped.
The wrapping appears not to matter. I tried a file with a filename and path
short enough not to wrap and I get the same problem.
Re: xindice and xincon
Posted by "Brian K. Buckley" <bb...@surfglobal.net>.
> I experienced the same behaviour when the filename of the document
contained spaces - is that the case with you?
No, I don't believe either the filename (including path) or the name I tried
to give the document had spaces. Possibly pertinent though, the filename
along with its path are long enough that it is being wrapped.
Brian
Re: xindice and xincon
Posted by Steven Noels <st...@outerthought.org>.
On Sun, 17 Mar 2002, Brian K. Buckley wrote:
> Hi,
>
> The file upload feature in the xincon webapp is not working properly for me.
>
> When I upload an XML document through the xincon webapp, a new entry appears
> on the returned page that shows the list of documents in the collection (but
> showing the filename instead of the name I specify) so it appears to
> basically work, but when I click on the "view source" link to view the newly
> uploaded document I get an exception (see trace stack below).
I experienced the same behaviour when the filename of the document
contained spaces - is that the case with you?
</Steven>