Re: [jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-20 Thread Vivek Pandey
"/Users/lanceball/.rvm/rubies/jruby-1.6.5/bin/gem" > >>>>rake: "/Users/lanceball/.rvm/rubies/jruby-1.6.5/bin/rake" > >>>> > >>>> environment: > >>>>PATH: "/Users/lanceball/.rvm/gems/jruby-1

Re: [jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-15 Thread Vivek Pandey
fix may be easy to > find. > > My money is on auto-generated ID not propagating back out properly during > #save. > > Feel free to open an AR-JDBC issue at this point: > https://github.com/jruby/activerecord-jdbc-adapter/issues > > - Charlie > > On Tue, Feb 14, 2012

Re: [jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-14 Thread Vivek Pandey
right? > > - Charlie > > On Tue, Feb 14, 2012 at 2:36 PM, Vivek Pandey > wrote: > > Jruby rackup fails the same way, which is the persisted model object id > is > > shown as 1 instead of its actual value. I ran it thru debugger and right > >

Re: [jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-14 Thread Vivek Pandey
14, 2012 at 8:30 AM, Nick Sieger wrote: > How about rackup on JRuby? Works or fails? > > /Nick > > On Tue, Feb 14, 2012 at 9:43 AM, Vivek Pandey > wrote: > > Sorry, forgot to give my env. Running my env on rails is non-trivial at > > present. All I can tell is that

Re: [jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-14 Thread Vivek Pandey
wrote: > Hi Vivek! > > On Tue, Feb 14, 2012 at 8:15 AM, Vivek Pandey > wrote: > > Hi, > > > > I am using JRuby with Sinatra and ActiveRecord as ORM. I have code such > as > > this: > > > > ActiveRecord::Base.transaction do > >

[jruby-dev] saved model object ID always 1 with jruby-rack

2012-02-14 Thread Vivek Pandey
Hi, I am using JRuby with Sinatra and ActiveRecord as ORM. I have code such as this: ActiveRecord::Base.transaction do product.rollback_active_record_state! do if(product.save(false)) logger.debug "Prod ID: #{product.id}" yield if block_given?

[jruby-dev] [jira] Created: (JRUBY-4232) Socket.bind() not available with jruby

2009-11-12 Thread Vivek Pandey (JIRA)
Environment: JRuby 1.4.0 Reporter: Vivek Pandey I can execute the following code using MRI Ruby but running on JRuby 1.4.0 (or even 1.3.1) gives sock.rb:5: undefined method `bind' for # (NoMethodError) require 'socket' include Socket::Constants socket = Sock

Re: [jruby-dev] JDBC driver leak

2009-11-10 Thread Vivek Pandey
t this particular database. > > We have seen even mysql driver instances hanging as well so I dont think it has anything to do with this specific database. -vivek. > -Tom > > On Mon, Nov 9, 2009 at 7:25 PM, Vivek Pandey > wrote: > > I am investigating memory leak related t

Re: [jruby-dev] JDBC driver leak

2009-11-10 Thread Vivek Pandey
On Tue, Nov 10, 2009 at 11:34 AM, Nick Sieger wrote: > On Mon, Nov 9, 2009 at 7:25 PM, Vivek Pandey > wrote: > > I am investigating memory leak related to hot deployment of Rails > > application on GlassFish. One of the hanging references is the JDBC > driver, > > in

[jruby-dev] JDBC driver leak

2009-11-09 Thread Vivek Pandey
I am investigating memory leak related to hot deployment of Rails application on GlassFish. One of the hanging references is the JDBC driver, in this case: org.sqlite.JDBC. The class loader is org.jruby.util.JRubyClassLoader. I tried to fix it by trying to do something like this: for

[jruby-dev] [jira] Created: (JRUBY-4226) Memory leak due to JRuby runtime not unregsitering JDBC drivers

2009-11-09 Thread Vivek Pandey (JIRA)
Components: Embedding Affects Versions: JRuby 1.4 Environment: JRuby 1.4.0, glassfish v3 Reporter: Vivek Pandey Attachments: jruby-jdbc-leak.png I am investigating memory leak related to hot deployment of Rails application on GlassFish. One of the hanging references is

Re: [jruby-dev] What is the best way to parse ruby script using org.jruby.Ruby

2009-10-29 Thread Vivek Pandey
Sounds good! Looks like this is what I was looking for. thanks, -vivek. On Thu, Oct 29, 2009 at 5:42 AM, Yoko Harada wrote: > Hi Vivek, > > On Thu, Oct 29, 2009 at 12:13 AM, Vivek Pandey > wrote: > > From inside GlassFish, we call Ruby.evalScriptlet(String) for parsing &

[jruby-dev] What is the best way to parse ruby script using org.jruby.Ruby

2009-10-28 Thread Vivek Pandey
>From inside GlassFish, we call Ruby.evalScriptlet(String) for parsing ruby code and getting back IRubyObject. Whats the equivalent API to take InputStream instead of String? At many times we need to parse the complete Ruby file, such as in case of rackup script. So instead of reading the file in

Re: [jruby-dev] Possible embedded Jruby load_path issue

2009-04-07 Thread Vivek Pandey
Should have mentioned, this extra ::Rails::Initializer.run somehow was causing LOAD_PATH not laoding correctly form environment.rb. -vivek. On Tue, Apr 7, 2009 at 9:37 PM, Vivek Pandey wrote: > Found the bug. Thanks to Damian, who pointed to the extra initialization > happening inside ou

Re: [jruby-dev] Possible embedded Jruby load_path issue

2009-04-07 Thread Vivek Pandey
_id=5450 On Wed, Apr 1, 2009 at 3:30 PM, Charles Oliver Nutter < charles.nut...@sun.com> wrote: > Hmm, strange. I guess I'm out of ideas, but I can definitely see that those > added entries aren't making it to runtime... > > - Charlie > > Vivek Pandey wrote: >

Re: [jruby-dev] Possible embedded Jruby load_path issue

2009-04-01 Thread Vivek Pandey
both gem as well as standalone v3 server have exactly the same path. It is not like it work in either one anyway. -vivek. On Fri, Mar 27, 2009 at 4:08 PM, Jacob Kessler wrote: > I'm a bit fuzzy on gem vs. stand-alone startup, but I don't think that that > is relevant here (since I see the same b

Re: [jruby-dev] [jira] Created: (JRUBY-3121) Glassfish Gem 0.9.0 does not work with JRuby 1.1.5

2008-11-07 Thread Vivek Pandey
Can you try running it form inside the directory: $cd pictures $glassfish -vivek. On Fri, Nov 7, 2008 at 1:30 PM, Brandon Hauff (JIRA) <[EMAIL PROTECTED]>wrote: > Glassfish Gem 0.9.0 does not work with JRuby 1.1.5 > -- > > Key: JRU

[jruby-dev] [jira] Created: (JRUBY-2741) OSGify jruby.jar in the release jruby distribution

2008-07-02 Thread Vivek Pandey (JIRA)
Environment: generic Reporter: Vivek Pandey Assignee: Thomas E Enebo Fix For: JRuby 1.1.3 Attachments: build.xml.diff, jruby-osgi-properties.bnd GlassFish v3 is OSGi aware and at runtime needs the jruby runtime as available in installed jruby

[jruby-dev] [jira] Created: (JRUBY-2415) shared-1.1.pom has cyclic property declaration

2008-04-19 Thread Vivek Pandey (JIRA)
Versions: JRuby 1.1 Environment: generic os/hardware. Reporter: Vivek Pandey Priority: Critical There is a bug in the pom file: shared-1.1.pom. v3 build system is planning to shift to maven 2.0.9 and when compiled with it it gives error: - [INFO] Error

[jruby-dev] [jira] Created: (JRUBY-2414) shared-1.1.pom has cyclic property declaration

2008-04-19 Thread Vivek Pandey (JIRA)
Versions: JRuby 1.1 Environment: generic os/hardware. Reporter: Vivek Pandey Priority: Critical There is a bug in the pom file: shared-1.1.pom. v3 build system is planning to shift to maven 2.0.9 and when compiled with it it gives error: - [INFO] Error

[jruby-dev] [jira] Created: (JRUBY-2412) shared-1.1.pom has cyclic property declaration

2008-04-18 Thread Vivek Pandey (JIRA)
Versions: JRuby 1.1 Environment: generic os/hardware. Reporter: Vivek Pandey Priority: Critical There is a bug in the pom file: shared-1.1.pom. v3 build system is planning to shift to maven 2.0.9 and when compiled with it it gives error: - [INFO] Error

[jruby-dev] Co-hosting Rails and Java Servlet with the same context root on GlassFish v3

2008-04-04 Thread Vivek Pandey
Hello, I have a simple rails app (with a controller) deployed on GlassFish v3. http://localhost:8080/myrailsapp/say/hello displays a simple web page. Here the controller is say and hello is the view. What I want to do is to access http://localhost:8080/myrailsapp/myservlet. I have correctly pack