Re: SocketError in RAWR

56 views
Skip to first unread message

Logan Barnett

unread,
Apr 6, 2013, 5:33:25 PM4/6/13
to yrl, rawr...@googlegroups.com
It's failing while trying to automatically download and inject jruby-complete.jar (so your app will have JRuby bundled with it). I checked the URL that Rawr is using and it appears correct. Are you able to visit this link? http://repository.codehaus.org/org/jruby/jruby-complete

If not, it may explain why Rawr is not working. If you can get there then let's try downloading the latest jar from there and run your command again with the --no-jar option.

-Logan


On Sat, Apr 6, 2013 at 7:05 AM, yrl <yrlh...@yahoo.co.uk> wrote:
Dear  Mr. Logan Barnett !

Please help with the error in RAWR:

cd C:\Ruby\Gems            # the Directory with gem files

C:\Ruby\Gems>java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

C:\Ruby\Gems>jruby -S gem install rubyzip rawr
Successfully installed rubyzip-0.9.9
Successfully installed rawr-1.2
2 gems installed

cd C:\Ruby\FR       # the Directory with my .rb files

C:\Ruby\FR>jruby -S rawr install
Creating Rawr configuration file C:/Ruby/FR/build_configuration.rb
Creating Java class C:/Ruby/FR/src/org/rubyforge/rawr/Main.java
Creating Rakefile ...
Downloading jruby-complete.jar. This may take a moment...
SocketError: initialize: name or service not known
                        initialize at org/jruby/ext/socket/RubyTCPSocket.java:129
                              open at org/jruby/RubyIO.java:1179
                           connect at c:/jruby-1.7.3/lib/ruby/1.9/net/http.rb:762
                           timeout at org/jruby/ext/timeout/Timeout.java:105
                           connect at c:/jruby-1.7.3/lib/ruby/1.9/net/http.rb:762
                          do_start at c:/jruby-1.7.3/lib/ruby/1.9/net/http.rb:755
                             start at c:/jruby-1.7.3/lib/ruby/1.9/net/http.rb:744
                         open_http at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:306
                       buffer_open at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:775
                         open_loop at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:203
                             catch at org/jruby/RubyKernel.java:1174
                         open_loop at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:201
                          open_uri at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:146
                              open at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:677
                              open at c:/jruby-1.7.3/lib/ruby/1.9/open-uri.rb:33
                          get_list at c:/jruby-1.7.3/lib/ruby/gems/shared/gems/rawr-1.2/lib/jruby_release.rb:49
  get_most_current_stable_releases at c:/jruby-1.7.3/lib/ruby/gems/shared/gems/rawr-1.2/lib/jruby_release.rb:34
                               get at c:/jruby-1.7.3/lib/ruby/gems/shared/gems/rawr-1.2/lib/jruby_release.rb:17
                            (root) at c:/jruby-1.7.3/lib/ruby/gems/shared/gems/rawr-1.2/bin/rawr:143
                              load at org/jruby/RubyKernel.java:1046
                            (root) at c:/jruby-1.7.3/bin/rawr:23
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warm Wishes                                                                                                                      Mak
                           


Logan Barnett

unread,
Apr 7, 2013, 11:30:55 AM4/7/13
to yrl, rawr...@googlegroups.com
Looking at rawr --help, it wants the options first (sorry I wasn't more specific, it's been a long time for me).
You can also specify to use a specific jruby-complete.jar in the options with -j it looks like:
rawr -j C:\Ruby\FR\lib\java\jar-complete-1.7.3.jar install

(Also copying this to the Google group so others can learn and/or chime in).


On Sun, Apr 7, 2013 at 8:26 AM, yrl <yrlh...@yahoo.co.uk> wrote:
Dear Mr. Logan !

Thank You for Your answer.

I'm working with Windows 8 and there are no Internet connection, because I can't find the driver for my modem.
I've downloaded jruby-complete-1.7.3.jar(only 1 file - without .jar.md5, .jar.sha1, .pom ... files) to C:\Ruby\FR\lib\java
My *.rb files are in C:\Ruby\FR
When I try to exec the command below it's suspended:
C:\Ruby\FR>jruby -S rawr install --no-jar                                        # May be this command is wrong ???
^C
C:\Ruby\FR>jruby -S rawr install --no-jar
^C

JAVA_HOME variable is C:\Program Files\Java\jre7

C:\Ruby\FR>jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [Windows 8-amd64]

Warm Wishes                                      Mak

Logan Barnett

unread,
Apr 8, 2013, 1:21:09 AM4/8/13
to yrl, rawr...@googlegroups.com
Looks like you were on an older version of Rawr (1.2) and the current version is 1.6.5. I pushed 1.6.5 to rubygems so you should be able to update Rawr and issue the command again.

(To James mostly)
I guess it was on a different repository? I seem to recall there being trouble with pushing to rubygems but I thought it got resolved. I hope my push is fine. In the future I should be able to help with pushes as well, or do any admining to give all the right contributors access if need be. Sorry if I dropped the ball on that ):

-Logan


On Sun, Apr 7, 2013 at 9:56 AM, yrl <yrlh...@yahoo.co.uk> wrote:
Dear Mr. Logan !

Thank You for Your answer.
The -j Option does not exist in RAWR's help:
C:\Ruby\FR>rawr -j C:\Ruby\FR\lib\java\jruby-complete-1.7.3.jar install
Unknown command '-j'\

C:\Ruby\FR>rawr install -j C:\Ruby\FR\lib\java\jruby-complete-1.7.3.jar      # Does not respond
^C

Usage:
    rawr -h/--help
    rawr -v/--version
    rawr command [options]
Commands:
    install [-d dir] [-c class_name]
      -d/--directory: Directory to place Java main file in, defaults to 'src'
      -c/--class: Name of Java class (with package) to generate, defaults to org.rubyforge.rawr.Main
      -f/--file: Name of the Rawr configuration file, defaults to build_configuration.rb

Warm Wishes                                      Mak

James Britt

unread,
Apr 8, 2013, 12:11:40 PM4/8/13
to rawr...@googlegroups.com
Logan Barnett wrote:
> Looks like you were on an older version of Rawr (1.2) and the current
> version is 1.6.5. I pushed 1.6.5 to rubygems so you should be able to
> update Rawr and issue the command again.

Please don't push rawr to rubygems.


>
> (To James mostly)
> I guess it was on a different repository? I seem to recall there being
> trouble with pushing to rubygems but I thought it got resolved.

Some problems were resolved but rubygems is fundamentally broken. It is
a poor gem management tool (for gem owners, at least).

After enough headaches with the site I decided that any gem I create or
admin would be hosted on a machine I control, so I use gems.neurogami.com.


> I hope
> my push is fine. In the future I should be able to help with pushes as
> well, or do any admining to give all the right contributors access if
> need be. Sorry if I dropped the ball on that ):

I'm be much happier if rawr wasn't even listed on rubygems at all.

Pull requests work pretty good for contributions so far, since changes
over the last year or so have been basically bug fixes.


Thanks,


James


Logan Barnett

unread,
Apr 27, 2013, 11:27:40 AM4/27/13
to rawr...@googlegroups.com
On Mon, Apr 8, 2013 at 9:11 AM, James Britt <james...@gmail.com> wrote:
Logan Barnett wrote:
Looks like you were on an older version of Rawr (1.2) and the current version is 1.6.5. I pushed 1.6.5 to rubygems so you should be able to update Rawr and issue the command again.

Please don't push rawr to rubygems.


Gotcha, won't do it again.
 



(To James mostly)
I guess it was on a different repository? I seem to recall there being trouble with pushing to rubygems but I thought it got resolved.

Some problems were resolved but rubygems is fundamentally broken.  It is a poor gem management tool (for gem owners, at least).

After enough headaches with the site I decided that any gem I create or admin would be hosted on a machine I control, so I use gems.neurogami.com.



I hope my push is fine. In the future I should be able to help with pushes as well, or do any admining to give all the right contributors access if need be. Sorry if I dropped the ball on that ):

I'm be much happier if rawr wasn't even listed on rubygems at all.


I looked into removing what's up there but there doesn't seem to be an interface for it. I guess this would have to be a special request? 

 
Pull requests work pretty good for contributions so far, since changes over the last year or so have been basically bug fixes.


Thanks,


James



--
You received this message because you are subscribed to the Google Groups "rawr-lib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rawr-lib+unsubscribe@googlegroups.com.
To post to this group, send email to rawr...@googlegroups.com.
Visit this group at http://groups.google.com/group/rawr-lib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



James Britt

unread,
Apr 27, 2013, 1:03:21 PM4/27/13
to rawr...@googlegroups.com
Logan Barnett wrote:
>
> I looked into removing what's up there but there doesn't seem to be an
> interface for it. I guess this would have to be a special request?


There's a Web API that works well with curl:

curl -X DELETE -H 'Authorization:<secret-token>' -d 'gem_name=rawr' -d
'version=1.6.5' https://rubygems.org/api/v1/gems/yank

I cleaned out the old versions.

I just tried to so the same for monkeybars and found (again) that while
my names is listed as an a author, I'm not listed as an owner. I recall
trying to get this sorted out and eventually giving up.

Anyways, minor stuff in the grand scheme of things. :)


James

Logan Barnett

unread,
May 2, 2013, 4:54:44 PM5/2/13
to rawr...@googlegroups.com
On Sat, Apr 27, 2013 at 10:03 AM, James Britt <james...@gmail.com> wrote:
Logan Barnett wrote:

I looked into removing what's up there but there doesn't seem to be an interface for it. I guess this would have to be a special request?


There's a Web API that works well with curl:

curl -X DELETE -H 'Authorization:<secret-token>'  -d 'gem_name=rawr' -d 'version=1.6.5'  https://rubygems.org/api/v1/gems/yank

I cleaned out the old versions.

I just tried to so the same for monkeybars and found (again) that while my names is listed as an a author, I'm not listed as an owner.  I recall trying to get this sorted out and eventually giving up.

Monkeybars has been yanked (as well as some remaining Rawr versions). Are there other gems I need to get? Thanks for the legwork on the curl command, that made things a breeze.
 

Anyways, minor stuff in the grand scheme of things.  :)



James

James Britt

unread,
May 2, 2013, 5:23:37 PM5/2/13
to rawr...@googlegroups.com
Logan Barnett wrote:
>
>
> Monkeybars has been yanked (as well as some remaining Rawr versions).

Wow. Thank you.

> Are there other gems I need to get? Thanks for the legwork on the curl
> command, that made things a breeze.

I think that's it.

Thanks very much.


James


Reply all
Reply to author
Forward
0 new messages