You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by john bryant <br...@gmail.com> on 2005/10/20 18:02:04 UTC

slide

Hi all,

i have been using lot of open source projects. But in slide mailing list I
found no one replying to errors while configuring slide or there is no good
documentation . See it is important for developers to answers the problems
faced during is configuration and installation. its important for open
source development.

john

Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Li Huong <ta...@yahoo.fr>.
Thank you for your help...I'm resolving my problem by method.getResponses();
 
Thanks a lot...

Sean Doyle <sd...@gmail.com> a écrit :
On 10/26/05, Li Huong wrote:
> Hi,
>
> my method.getStatusCode() return 207 both on eclipse and jboss
> but on jboss log, I see something wrong :
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "e"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "7"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "9"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
> 2005-10-26 11:33:16,390 DEBUG [httpclient.wire] << "opstat>

I don't think I can be of more help. If this is the response I can see
why it can't be parsed - it's starting with a .
But I think that printing out the response in the client might be
better than grabbing the httpclient.wire here because you'll make sure
that you're seeing the XML that the client claims it can't parse.

The 207 HTTP code is for 'multi-status' - in RFC 2518 there are more details
http://www.webdav.org/specs/rfc2518.html#rfc.section.8.2.1

I'm guessing that there is some error and that you need the entire
status back. See the section right below the one in the link above for
an example of the sort of output you shoudl be expecting.
>
> what do you think it means. why there is e 7 9 !!!!!.
> Thanks a lot.
>
>
> Sean Doyle a écrit :
> On 10/25/05, Li Huong wrote:
> > So why on eclipse run, my class works fine ???
> Not sure - I need more information.
>
> If the method object is a subclass of HttpMethodBase - can you try
> putting in something like this:
>
> String respStr = method.getResponseBodyAsString();
> System.out.println(respStr);
>
> It looks like your client is throwing an error because it can't parse
> the XML. So - the reponse might be an error message of some sort (an
> authentication failure or something like that?). If you can print the
> response then you can see what to do.
>
> It could be that there is something failing at the HTTP level. So -
> calling method.getStatusCode() for a (hopefully) 200 return status and
> displaying the mode.getStatusText() if it isn't should point you in
> the right direction.
>
> I got this info from
> http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#getResponseBodyAsString()
> I haven't tried it (and I don't know if your method object is really a
> member of this subclass - I'm just guessing).
>
> >
> > Sean Doyle a écrit :When you look at the XML metadata - what does it look like? It
> > probably isn't valid XML.
> >
> > I've only seen this when I've done things like encrypt the files and
> > forget to put the decryption in the right place :-).
> >
> > On 10/25/05, Li Huong wrote:
> > >
> > > Hi,
> > >
> > >
> > >
> > > I'm using slide as webdav client to make request to Exchange server.
> > >
> > > When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
> > >
> > > [Fatal Error] :1:1: Content is not allowed in prolog.
> > > 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> > > 2005-10-25 14:07:40,474 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
> > >
> > >
> > >
> > > I use :
> > >
> > > NodeList list = method.getResponseDocument().getDocumentElement().getChildNodes();
> > >
> > > System.out.println("list " + list.toString());
> > >
> > >
> > >
> > > with jboss logs, I have
> > >
> > > [STDOUT] list [a:multistatus: null]
> > >
> > >
> > >
> > >
> > >
> > > any idea ????
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > > ---------------------------------
> > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > > Téléchargez le ici !
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez le ici !
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
> ---------------------------------
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Sean Doyle <sd...@gmail.com>.
On 10/26/05, Li Huong <ta...@yahoo.fr> wrote:
> Hi,
>
> my  method.getStatusCode() return 207 both on eclipse and jboss
> but on jboss log, I see something wrong :
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "</ICEDescriptionDMEN></a:prop></a:pr"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "e"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "7"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "9"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
> 2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
> 2005-10-26 11:33:16,390 DEBUG [httpclient.wire] << "opstat></a:response>

I don't think I can be of more help. If this is the response I can see
why it can't be parsed - it's starting with a </ICEDescriptionDMEN>.
But I think that printing out the response in the client might be
better than grabbing the httpclient.wire here because you'll make sure
that you're seeing the XML that the client claims it can't parse.

The 207 HTTP code is for 'multi-status' - in RFC 2518 there are more details
http://www.webdav.org/specs/rfc2518.html#rfc.section.8.2.1

I'm guessing that there is some error and that you need the entire
status back. See the section right below the one in the link above for
an example of the sort of output you shoudl be expecting.
>
> what do you think it means. why there is e 7 9 !!!!!.
> Thanks a lot.
>
>
> Sean Doyle <sd...@gmail.com> a écrit :
> On 10/25/05, Li Huong wrote:
> > So why on eclipse run, my class works fine ???
> Not sure - I need more information.
>
> If the method object is a subclass of HttpMethodBase - can you try
> putting in something like this:
>
> String respStr = method.getResponseBodyAsString();
> System.out.println(respStr);
>
> It looks like your client is throwing an error because it can't parse
> the XML. So - the reponse might be an error message of some sort (an
> authentication failure or something like that?). If you can print the
> response then you can see what to do.
>
> It could be that there is something failing at the HTTP level. So -
> calling method.getStatusCode() for a (hopefully) 200 return status and
> displaying the mode.getStatusText() if it isn't should point you in
> the right direction.
>
> I got this info from
> http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#getResponseBodyAsString()
> I haven't tried it (and I don't know if your method object is really a
> member of this subclass - I'm just guessing).
>
> >
> > Sean Doyle a écrit :When you look at the XML metadata - what does it look like? It
> > probably isn't valid XML.
> >
> > I've only seen this when I've done things like encrypt the files and
> > forget to put the decryption in the right place :-).
> >
> > On 10/25/05, Li Huong wrote:
> > >
> > > Hi,
> > >
> > >
> > >
> > > I'm using slide as webdav client to make request to Exchange server.
> > >
> > > When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
> > >
> > > [Fatal Error] :1:1: Content is not allowed in prolog.
> > > 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> > > 2005-10-25 14:07:40,474 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
> > >
> > >
> > >
> > > I use :
> > >
> > > NodeList list = method.getResponseDocument().getDocumentElement().getChildNodes();
> > >
> > > System.out.println("list " + list.toString());
> > >
> > >
> > >
> > > with jboss logs, I have
> > >
> > > [STDOUT] list [a:multistatus: null]
> > >
> > >
> > >
> > >
> > >
> > > any idea ????
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > > ---------------------------------
> > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > > Téléchargez le ici !
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez le ici !
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
> ---------------------------------
>  Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>  Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Li Huong <ta...@yahoo.fr>.
Hi,
 
my  method.getStatusCode() return 207 both on eclipse and jboss 
but on jboss log, I see something wrong :
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "</ICEDescriptionDMEN></a:prop></a:pr"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "e"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "7"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "9"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\r]"
2005-10-26 11:33:15,452 DEBUG [httpclient.wire] << "[\n]"
2005-10-26 11:33:16,390 DEBUG [httpclient.wire] << "opstat></a:response>
 
what do you think it means. why there is e 7 9 !!!!!.
Thanks a lot.


Sean Doyle <sd...@gmail.com> a écrit :
On 10/25/05, Li Huong wrote:
> So why on eclipse run, my class works fine ???
Not sure - I need more information.

If the method object is a subclass of HttpMethodBase - can you try
putting in something like this:

String respStr = method.getResponseBodyAsString();
System.out.println(respStr);

It looks like your client is throwing an error because it can't parse
the XML. So - the reponse might be an error message of some sort (an
authentication failure or something like that?). If you can print the
response then you can see what to do.

It could be that there is something failing at the HTTP level. So -
calling method.getStatusCode() for a (hopefully) 200 return status and
displaying the mode.getStatusText() if it isn't should point you in
the right direction.

I got this info from
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#getResponseBodyAsString()
I haven't tried it (and I don't know if your method object is really a
member of this subclass - I'm just guessing).

>
> Sean Doyle a écrit :When you look at the XML metadata - what does it look like? It
> probably isn't valid XML.
>
> I've only seen this when I've done things like encrypt the files and
> forget to put the decryption in the right place :-).
>
> On 10/25/05, Li Huong wrote:
> >
> > Hi,
> >
> >
> >
> > I'm using slide as webdav client to make request to Exchange server.
> >
> > When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
> >
> > [Fatal Error] :1:1: Content is not allowed in prolog.
> > 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> > 2005-10-25 14:07:40,474 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
> >
> >
> >
> > I use :
> >
> > NodeList list = method.getResponseDocument().getDocumentElement().getChildNodes();
> >
> > System.out.println("list " + list.toString());
> >
> >
> >
> > with jboss logs, I have
> >
> > [STDOUT] list [a:multistatus: null]
> >
> >
> >
> >
> >
> > any idea ????
> >
> >
> >
> > Thanks
> >
> >
> > ---------------------------------
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez le ici !
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Sean Doyle <sd...@gmail.com>.
On 10/25/05, Li Huong <ta...@yahoo.fr> wrote:
> So why on eclipse run, my class works fine ???
Not sure - I need more information.

If the method object is a subclass of HttpMethodBase - can you try
putting in something like this:

String respStr = method.getResponseBodyAsString();
System.out.println(respStr);

It looks like your client is throwing an error because it can't parse
the XML. So - the reponse might be an error message of some sort (an
authentication failure or something like that?). If you can print the
response then you can see what to do.

It could be that there is something failing at the HTTP level. So -
calling method.getStatusCode() for a (hopefully) 200 return status and
displaying the mode.getStatusText() if it isn't should point you in
the right direction.

I got this info from
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethodBase.html#getResponseBodyAsString()
I haven't tried it (and I don't know if your method object is really a
member of this subclass - I'm just guessing).

>
> Sean Doyle <sd...@gmail.com> a écrit :When you look at the XML metadata - what does it look like? It
> probably isn't valid XML.
>
> I've only seen this when I've done things like encrypt the files and
> forget to put the decryption in the right place :-).
>
> On 10/25/05, Li Huong wrote:
> >
> > Hi,
> >
> >
> >
> > I'm using slide as webdav client to make request to Exchange server.
> >
> > When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
> >
> > [Fatal Error] :1:1: Content is not allowed in prolog.
> > 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> > 2005-10-25 14:07:40,474 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
> >
> >
> >
> > I use :
> >
> > NodeList list = method.getResponseDocument().getDocumentElement().getChildNodes();
> >
> > System.out.println("list " + list.toString());
> >
> >
> >
> > with jboss logs, I have
> >
> > [STDOUT] list [a:multistatus: null]
> >
> >
> >
> >
> >
> > any idea ????
> >
> >
> >
> > Thanks
> >
> >
> > ---------------------------------
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez le ici !
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------
>  Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>  Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Li Huong <ta...@yahoo.fr>.
So why on eclipse run, my class works fine ??? 

Sean Doyle <sd...@gmail.com> a écrit :When you look at the XML metadata - what does it look like? It
probably isn't valid XML.

I've only seen this when I've done things like encrypt the files and
forget to put the decryption in the right place :-).

On 10/25/05, Li Huong wrote:
>
> Hi,
>
>
>
> I'm using slide as webdav client to make request to Exchange server.
>
> When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
>
> [Fatal Error] :1:1: Content is not allowed in prolog.
> 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 2005-10-25 14:07:40,474 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
>
>
>
> I use :
>
> NodeList list = method.getResponseDocument().getDocumentElement().getChildNodes();
>
> System.out.println("list " + list.toString());
>
>
>
> with jboss logs, I have
>
> [STDOUT] list [a:multistatus: null]
>
>
>
>
>
> any idea ????
>
>
>
> Thanks
>
>
> ---------------------------------
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org



		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

Re: Fatal Error :1:1: Content is not allowed in prolog.

Posted by Sean Doyle <sd...@gmail.com>.
When you look at the XML metadata - what does it look like? It
probably isn't valid XML.

I've only seen this when I've done things like encrypt the files and
forget to put the decryption in the right place :-).

On 10/25/05, Li Huong <ta...@yahoo.fr> wrote:
>
> Hi,
>
>
>
> I'm using slide as webdav client to make request to Exchange server.
>
> When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :
>
> [Fatal Error] :1:1: Content is not allowed in prolog.
> 2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 2005-10-25 14:07:40,474 ERROR [STDERR]  at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)
>
>
>
> I use :
>
> NodeList list =  method.getResponseDocument().getDocumentElement().getChildNodes();
>
> System.out.println("list " + list.toString());
>
>
>
> with jboss logs, I have
>
> [STDOUT] list [a:multistatus: null]
>
>
>
>
>
> any idea ????
>
>
>
> Thanks
>
>
> ---------------------------------
>  Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
>  Téléchargez le ici !
>

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Delete version history in Bindingstore

Posted by Erik Sandström <er...@vitaminapplications.se>.
Hi,

I am using the Bindingstore with deltav.

I see that in Slide when a resource is deleted the version history is not
deleted.

I guess I have to add code to delete the version history myself. (Maybe in
the method "afterDelete" in DeleteMehtod.java)

Anyone have a better solution?

Best regards
Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Fatal Error :1:1: Content is not allowed in prolog.

Posted by Li Huong <ta...@yahoo.fr>.
Hi,

 

I'm using slide as webdav client to make request to Exchange server.

When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :

[Fatal Error] :1:1: Content is not allowed in prolog.
2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
2005-10-25 14:07:40,474 ERROR [STDERR]  at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)

 

I use : 

NodeList list =  method.getResponseDocument().getDocumentElement().getChildNodes();

System.out.println("list " + list.toString());

 

with jboss logs, I have 

[STDOUT] list [a:multistatus: null]

 

 

any idea ????

 

Thanks

		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !  

Fatal Error :1:1: Content is not allowed in prolog.

Posted by Li Huong <ta...@yahoo.fr>.
Hi,

 

I'm using slide as webdav client to make request to Exchange server.

When I execute my search method on eclipse, I have my result search but when I try tu execute the same search method on Jboss, I have this error :

[Fatal Error] :1:1: Content is not allowed in prolog.
2005-10-25 14:07:40,474 ERROR [STDERR] org.xml.sax.SAXParseException: Content is not allowed in prolog.
2005-10-25 14:07:40,474 ERROR [STDERR]  at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1162)

 

I use : 

NodeList list =  method.getResponseDocument().getDocumentElement().getChildNodes();

System.out.println("list " + list.toString());

 

with jboss logs, I have 

[STDOUT] list [a:multistatus: null]

 

 

any idea ????

 

Thanks

		
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
 Téléchargez le ici !