Re: Problem with updating and checkout under Tomcat 4

"Dariusz Drezno" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <009801c1f67f$8e044ad0$5907840a@pcdrezno>
Hello Jeff,
I still don't understand something...
First of all - what is npe??
If I try get something :) blocked, maybe I should add somewhere
"connection.close()" function?
Then, could explain why my application works with old version of tomcat, and
dont work with new version?
Regards,

DD


----- Original Message -----
From: "Jeff Cantin" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 08, 2002 11:59 AM
Subject: Re: [javacvs-dev] Problem with updating and checkout under Tomcat 4


> I think you're gonna get an npe with that client.getEventManager()
> block. You also might want to write your own cvslistener for web
> responses instead of using the default system.out one
> (basiclistener).
>
> Jeff
>
> --- Dariusz Drezno <[email protected]> wrote:
> > Hello,
> >
> > I use javacvs to create application for cvs web browsing. My jsp
> > page use
> > bean in which I have:
> >
> >         CheckoutCommand cc = new CheckoutCommand();
> >         cc.setModule(p_module);
> >
> >         if (client.getEventManager() == null) {
> >             client.getEventManager().addCVSListener(new
> > BasicListener());
> >         }
> >         try {
> >             client.executeCommand(cc, globalOption);
> >         } catch (CommandException ce) {
> >             ce.printStackTrace();
> >         }
> >
> > and it works well under Tomcat 3.3 and doesnt work under Tomcat
> > 4.0.3  :-(.
> > There is the same problem with LogCommand.
> > I have got an exception:
> >
> > java.io.IOException: No such file or directory
> >         at java.io.UnixFileSystem.createFileExclusively(Native
> > Method)
> >         at java.io.File.checkAndCreate(File.java:1294)
> >         at java.io.File.createTempFile(File.java:1382)
> >         at java.io.File.createTempFile(File.java:1419)
> >         at
> >
>
org.netbeans.lib.cvsclient.file.DefaultFileHandler.writeTextFile(DefaultFile
> > Handler.java:253)
> >         at
> >
>
org.netbeans.lib.cvsclient.response.UpdatedResponse.process(UpdatedResponse.
> > java:146)
> >         at
> > org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:478)
> >         at
> > org.netbeans.lib.cvsclient.Client.processRequests(Client.java:442)
> >         at
> >
>
org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.postExpansionExe
> > cute(CheckoutCommand.java:365)
> >         at
> >
>
org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(Checkout
> > Command.java:280)
> >         at
> > org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:521)
> >
> > Maybe it is question to another mail-group (which?), but I hope
> > somebody
> > will be able to help me.
> >
> > Best regards,
> > DD
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.