node.checkin()

View: New views
8 Messages — Rating Filter:   Alert me  

node.checkin()

by Anil K. Kotha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
         I am using jackrabbit on Jboss server.
 
        I have a method which can be accessed by multiple users. In the method i have following three statements.
 
          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();
 
      for a single user it is working properly. but when multiple threads are accessing the method it struck at node.checkin() statement. It is executing all the above statements.
 
    how to overcome this issue?
 
   any suggestions welcome.
 
   THanks in advance.
 
 
Thanks,
Anilk.
 

RE: node.checkin()

by brco3837 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Interesting, I ran into a similar problem but I was using Day's CRX demo
and tomcat so I assumed either the demo had restrictions or tomcat was
having trouble handling the multi-threads.  But how do you have the
connection set up and are you certain you're closing all connections
once their finished?

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 3:05 PM
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.
 
        I have a method which can be accessed by multiple users. In the
method i have following three statements.
 
          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();
 
      for a single user it is working properly. but when multiple
threads are accessing the method it struck at node.checkin() statement.
It is executing all the above statements.
 
    how to overcome this issue?
 
   any suggestions welcome.
 
   THanks in advance.
 
 
Thanks,
Anilk.
 

Parent Message unknown RE: node.checkin()

by Dave Brosius-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Not sure, but does moving session.save() down below node.checkin() change anything?



-----Original Message-----
From: "Anil K. Kotha" <Anilk@...>
Sent: Thursday, May 15, 2008 3:04pm
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.
 
        I have a method which can be accessed by multiple users. In the method i have following three statements.
 
          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();
 
      for a single user it is working properly. but when multiple threads are accessing the method it struck at node.checkin() statement. It is executing all the above statements.
 
    how to overcome this issue?
 
   any suggestions welcome.
 
   THanks in advance.
 
 
Thanks,
Anilk.
 



RE: node.checkin()

by Anil K. Kotha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I changed it but no use. it is struck at node.checkin() itself.
 
Thanks,
Anilk.

________________________________

From: Dave Brosius [mailto:dbrosius@...]
Sent: Fri 5/16/2008 4:00 AM
To: users@...
Cc: Anil K. Kotha
Subject: RE: node.checkin()




Not sure, but does moving session.save() down below node.checkin() change anything?



-----Original Message-----
From: "Anil K. Kotha" <Anilk@...>
Sent: Thursday, May 15, 2008 3:04pm
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.

        I have a method which can be accessed by multiple users. In the method i have following three statements.

          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();

      for a single user it is working properly. but when multiple threads are accessing the method it struck at node.checkin() statement. It is executing all the above statements.

    how to overcome this issue?

   any suggestions welcome.

   THanks in advance.


Thanks,
Anilk.






RE: node.checkin()

by Anil K. Kotha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes i am sure.. that it is closing the connections and our repository of size 70GB.
 
 
Thanks,
Anilk.

________________________________

From: Conoly, Brett [mailto:Brett.Conoly@...]
Sent: Fri 5/16/2008 12:45 AM
To: users@...
Subject: RE: node.checkin()



Interesting, I ran into a similar problem but I was using Day's CRX demo
and tomcat so I assumed either the demo had restrictions or tomcat was
having trouble handling the multi-threads.  But how do you have the
connection set up and are you certain you're closing all connections
once their finished?

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 3:05 PM
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.

        I have a method which can be accessed by multiple users. In the
method i have following three statements.

          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();

      for a single user it is working properly. but when multiple
threads are accessing the method it struck at node.checkin() statement.
It is executing all the above statements.

    how to overcome this issue?

   any suggestions welcome.

   THanks in advance.


Thanks,
Anilk.




Re: node.checkin()

by Jukka Zitting :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Thu, May 15, 2008 at 10:04 PM, Anil K. Kotha <Anilk@...> wrote:
> [...] for a single user it is working properly. but when multiple threads are accessing
> the method it struck at node.checkin() statement. It is executing all the above statements.

I assume the threads are all using their own sessions.

> how to overcome this issue?

Do you have a thread dump of the lockup? Please file a bug report in
Jira and attach the thread dump there.

BR,

Jukka Zitting

RE: node.checkin()

by brco3837 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, what persistence manager are you using?  Some are not transactional
and do not support versions very well.

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 9:01 PM
To: users@...
Subject: RE: node.checkin()

Yes i am sure.. that it is closing the connections and our repository of
size 70GB.
 
 
Thanks,
Anilk.

________________________________

From: Conoly, Brett [mailto:Brett.Conoly@...]
Sent: Fri 5/16/2008 12:45 AM
To: users@...
Subject: RE: node.checkin()



Interesting, I ran into a similar problem but I was using Day's CRX demo
and tomcat so I assumed either the demo had restrictions or tomcat was
having trouble handling the multi-threads.  But how do you have the
connection set up and are you certain you're closing all connections
once their finished?

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 3:05 PM
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.

        I have a method which can be accessed by multiple users. In the
method i have following three statements.

          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();

      for a single user it is working properly. but when multiple
threads are accessing the method it struck at node.checkin() statement.
It is executing all the above statements.

    how to overcome this issue?

   any suggestions welcome.

   THanks in advance.


Thanks,
Anilk.




RE: node.checkin()

by Anil K. Kotha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using Derby Internal PM.

-----Original Message-----
From: Conoly, Brett [mailto:Brett.Conoly@...]
Sent: Friday, May 16, 2008 5:41 PM
To: users@...
Subject: RE: node.checkin()

Ok, what persistence manager are you using?  Some are not transactional
and do not support versions very well.

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 9:01 PM
To: users@...
Subject: RE: node.checkin()

Yes i am sure.. that it is closing the connections and our repository of
size 70GB.
 
 
Thanks,
Anilk.

________________________________

From: Conoly, Brett [mailto:Brett.Conoly@...]
Sent: Fri 5/16/2008 12:45 AM
To: users@...
Subject: RE: node.checkin()



Interesting, I ran into a similar problem but I was using Day's CRX demo
and tomcat so I assumed either the demo had restrictions or tomcat was
having trouble handling the multi-threads.  But how do you have the
connection set up and are you certain you're closing all connections
once their finished?

-----Original Message-----
From: Anil K. Kotha [mailto:Anilk@...]
Sent: Thursday, May 15, 2008 3:05 PM
To: users@...
Subject: node.checkin()

Hi All,
         I am using jackrabbit on Jboss server.

        I have a method which can be accessed by multiple users. In the
method i have following three statements.

          Node node  = rootNode.getNode("document");
          node.checkout();
          node.setProperty("fileName",fileINputStream);
          node.save();
          session.save();
          node.checkin();

      for a single user it is working properly. but when multiple
threads are accessing the method it struck at node.checkin() statement.
It is executing all the above statements.

    how to overcome this issue?

   any suggestions welcome.

   THanks in advance.


Thanks,
Anilk.