Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2012, 10:45 AM
TaronDcross TaronDcross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Location: Virginia
Posts: 46 TaronDcross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 42 m 25 sec
Reputation Power: 2
Question ExexJS::Runtime Error in Users#index and Encoding::InvalidByteSequenceError Cygwin

Below is what the page tells me at http://localhost:3000/ I am trying to figure out how to fix this but I don't know why it's occuring in the first place any ideas?
So far I tried updating gems I still have the same problem however.

Sometimes comes up as
Encoding::InvalidByteSequenceError in Users#index
Frequently comes up as ExecJS::RuntimeError in Users#index

Showing /home/Doug/Projects/demo_app/app/views/layouts/application.html.erb where line #6 raised:

incomplete "\n" on UTF-16LE
(in /home/Doug/Projects/demo_app/app/assets/javascripts/users.js.coffee)

this occures after I've run the following commands in this order and then try to view my rails app on my local machine for testing purposes.

1.
Code:
rails generate scaffold User name:string email:string

2.
Code:
 rake db:migrate 

3.
Code:
rails server

4. I type in localhost:3000/users

the error log on the server localhost:3000.
Code:
[2012-06-15 11:19:44] INFO  WEBrick 1.3.1
[2012-06-15 11:19:44] INFO  ruby 1.9.3 (2012-04-20) [i386-cygwin]
[2012-06-15 11:19:44] INFO  WEBrick::HTTPServer#start: pid=1632 port=3000
      0 [main] ruby 5332 child_info_fork::abort: address space needed by 'md5.so' (0x460000) is already occupied


Started GET "/users/" for 127.0.0.1 at 2012-06-15 11:30:44 -0400
Processing by UsersController#index as HTML
  User Load (0.0ms)  SELECT "users".* FROM "users"
  Rendered users/index.html.erb within layouts/application (62.4ms)
Completed 500 Internal Server Error in 2917ms

ActionView::Template::Error (incomplete "\n" on UTF-16LE
  (in /home/Doug/Projects/demo_app/app/assets/javascripts/users.js.coffee)):
    3: <head>
    4:   <title>DemoApp</title>
    5:   <%= stylesheet_link_tag    "application", :media => "all" %>
    6:   <%= javascript_include_tag "application" %>
    7:   <%= csrf_meta_tags %>
    8: </head>
    9: <body>
  app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__983831371_278094630'
  app/controllers/users_controller.rb:7:in `index'


  Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
  Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.0ms)
  Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (31.2ms)

Last edited by TaronDcross : June 18th, 2012 at 08:45 PM. Reason: To make question more succintly written for easier search engines for the next person with this problem on cygwin

Reply With Quote
  #2  
Old June 18th, 2012, 08:40 PM
TaronDcross TaronDcross is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2012
Location: Virginia
Posts: 46 TaronDcross User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 42 m 25 sec
Reputation Power: 2
Lightbulb

Found the solution to the cygwin problem. The error frequently occures when there is lack of javascript support, Cygwin has another constraint that a old version of javascript support is the only known fix such as node.js version 0.4.12. Here is the solution I used works at least as of this post's date.

Code:
wget http://nodejs.org/dist/node-v0.4.12.tar.gz
tar xvfz node-v0.4.12.tar.gz
cd node-v0.4.12/
./configure
make
make install

Many thanks to James on stackoverflow for the compilable code version of node.js for cygwin.
http://stackoverflow.com/questions/7548935/problem-with-execjs-doing-michael-hartl-tutorial-on-windows-execjsruntimeer

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby on Rails 3 error tryign to troubleshoot

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap