
| View previous topic :: View next topic |
| Author |
Message |
zwadar
Joined: 27 Dec 2008 Posts: 8
|
Posted: Tue Jul 07, 2009 8:00 pm Post subject: Rails 2.3.2 and output window on Windows |
|
|
Hi,
I'm sorry if it's duplicate or well known issue, but I found nothing about it.
On my Vista x64 NB 6.5.1 and 6.7 Rails 2.3.2 don't write anything to NB output window exept
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
and than nothing about performed actions, caught exceptions etc. It's newly generated rails project. Loading this project with rails 2.2.2 fixes it. Tested with MRI and latest Jruby.
Is there anything what I can do to fix it, or its just impossible to use 2.3.2 in NB now?
Thanks
Roman
EDIT
Well, now I found that it works, but it takes couple of minutes to synchronize rails log outpput with NB outputwindow. Times are higher with jruby (1.3.1) : 5 to 20 minutes (both 2.2.2 and 2.3.2), and lower with MRI (2.2.2 works well, but in 2.3.2 it takes 1-2 minutes to synchrnoze) |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Wed Jul 08, 2009 5:21 am Post subject: Rails 2.3.2 and output window on Windows |
|
|
Hi Roman,
zwadar wrote:
| Quote: | Hi,
I'm sorry if it's duplicate or well known issue, but I found nothing about it.
On my Vista x64 NB 6.5.1 and 6.7 Rails 2.3.2 don't write anything to NB output window exept
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
and than nothing about performed actions, caught exceptions etc. It's newly generated rails project. Loading this project with rails 2.2.2 fixes it. Tested with MRI and latest Jruby.
Is there anything what I can do to fix it, or its just impossible to use 2.3.2 in NB now?
|
Do you see any output if you run the app (with 2.3.2) from the command
line? If yes, can you please turn on detailed logging
(http://wiki.netbeans.org/FaqRubyNBLogging67), reproduce the issue and
send the log file to me?
Thanks,
Erno
|
|
| Back to top |
|
 |
zwadar
Joined: 27 Dec 2008 Posts: 8
|
Posted: Wed Jul 08, 2009 8:09 am Post subject: Rails 2.3.2 and output window on Windows |
|
|
Hey,
Lately I edited my first postu on the forums, but edit didn't arrived by
mail.
EDIT
Well, now I found that it works, but it takes couple of minutes to
synchronize rails log outpput with NB outputwindow. Times are higher with
jruby (1.3.1) : 5 to 20 minutes (both 2.2.2 and 2.3.2), and lower with MRI
(2.2.2 works well, but in 2.3.2 it takes 1-2 minutes to synchrnoze)
But I'll follow your guidlines when Iwill be at home..
Thanks
Roman
-----Original Message-----
From: address-removed [mailto:address-removed]
Sent: Wednesday, July 08, 2009 7:21 AM
To: address-removed
Subject: Re: Rails 2.3.2 and output window on Windows
Hi Roman,
zwadar wrote:
| Quote: | Hi,
I'm sorry if it's duplicate or well known issue, but I found nothing about
| it.
| Quote: |
On my Vista x64 NB 6.5.1 and 6.7 Rails 2.3.2 don't write anything to NB
| output window exept
| Quote: |
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
and than nothing about performed actions, caught exceptions etc. It's
| newly generated rails project. Loading this project with rails 2.2.2 fixes
it. Tested with MRI and latest Jruby.
| Quote: |
Is there anything what I can do to fix it, or its just impossible to use
| 2.3.2 in NB now?
Do you see any output if you run the app (with 2.3.2) from the command
line? If yes, can you please turn on detailed logging
(http://wiki.netbeans.org/FaqRubyNBLogging67), reproduce the issue and
send the log file to me?
Thanks,
Erno
|
|
| Back to top |
|
 |
zwadar
Joined: 27 Dec 2008 Posts: 8
|
Posted: Wed Jul 08, 2009 5:25 pm Post subject: |
|
|
so, here are results form testing on different Pc with win XP, NB 6.7.1 and Jruby 1.3.1, rails 2.3.2.
I ran rails, send couple of requests, but nothing appeared in output windows. It looks like output is flushed to this window only when break point is reached.
Another thing which log vcan show is that when I exit rails aplication, error message box appears with message
| Quote: | | The web server failed to start because the port number 3000 is already in use, and nearby port could not be used... | (yes, its on app exit), and I'm unable to run mongrel again until I kill java.exe process.
IDE log is
| Code: | FINE [org.netbeans.modules.ruby.debugger.RubyDebugger]: Running fast debugger...
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Running [basedir: D:\rails_apps\SDSB_Stats]: "C:\jruby\bin\jruby.bat -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -r C:\Documents and Settings\roman.zawada\Local Settings\Temp\io-synchronizer39044.rb C:\jruby\bin\rdebug-ide _0.4.6_ -p 4382 --xml-debug -- script\server -e development --port 3000"
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Proxy target: RubyDebugTarget@5932050[baseDir: D:\rails_apps\SDSB_Stats, debuggedFile: script\server, port: 4382]
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to localhost:4382. Trying again...(29)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Successfully attached to localhost:4382
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Sending command debugger: start
FINE [org.rubyforge.debugcommons.ReadersSupport]: Starting ReadersSupport readloop: class org.rubyforge.debugcommons.ReadersSupport command loop
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Sending command debugger: th l
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Waiting for breakpoints.
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message debug='true'>Starting command read loop</message>
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message debug='true'>Processing: start</message>
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message debug='true'>Starting: running program script</message>
FINE [org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]: Identified org.netbeans.modules.ruby.railsprojects.server.Mongrel@dd02c442 as running
INFO [org.netbeans.modules.ruby.debugger.RubySession]: Cannot read threads from a live proxy: Unable to read information in the specified timeout [15s]
org.rubyforge.debugcommons.RubyDebuggerException: Unable to read information in the specified timeout [15s]
at org.rubyforge.debugcommons.ReadersSupport.readInfo(ReadersSupport.java:177)
at org.rubyforge.debugcommons.ReadersSupport.readThreads(ReadersSupport.java:188)
at org.rubyforge.debugcommons.RubyDebuggerProxy.readThreadInfo(RubyDebuggerProxy.java:376)
[catch] at org.netbeans.modules.ruby.debugger.RubySession.getThreadInfos(RubySession.java:247)
at org.netbeans.modules.ruby.debugger.model.ThreadsModel.getChildrenCount(ThreadsModel.java:108)
at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildrenCount(Models.java:1338)
at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildrenCount(Models.java:3211)
at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:838)
at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:1291)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Sending command debugger: th l
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message debug='true'>Processing: th l</message>
FINEST [org.rubyforge.debugcommons.Util]: Received: <threads>
FINEST [org.rubyforge.debugcommons.Util]: Received: <thread id='1' status='run'>
FINEST [org.rubyforge.debugcommons.Util]: Received: <thread id='3' status='sleep'>
FINEST [org.rubyforge.debugcommons.Util]: Received: </threads>
WARNING [org.netbeans.modules.ruby.debugger.RubySession]: There is no thread for: RubyThreadInfo[Id: 1, run]
WARNING [org.netbeans.modules.ruby.debugger.RubySession]: There is no thread for: RubyThreadInfo[Id: 3, sleep]
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message debug='true'>Processing: th l</message>
FINEST [org.rubyforge.debugcommons.Util]: Received: <threads>
FINEST [org.rubyforge.debugcommons.Util]: Received: <thread id='1' status='run'>
FINEST [org.rubyforge.debugcommons.Util]: Received: <thread id='3' status='sleep'>
FINEST [org.rubyforge.debugcommons.Util]: Received: </threads>
FINE [org.netbeans.api.extexecution.ExecutionService]
java.lang.InterruptedException
at java.lang.ProcessImpl.waitFor(Native Method)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:288)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
FINE [org.netbeans.api.extexecution.ExecutionService]: Process not yet exited
java.lang.IllegalThreadStateException: process has not exited
at java.lang.ProcessImpl.exitValue(Native Method)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:316)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
|
after java.exe process is killed this is added to IDE log
| Code: | FINE [org.rubyforge.debugcommons.ReadersSupport]: SocketException. Loop [class org.rubyforge.debugcommons.ReadersSupport command loop]: Connection reset
FINE [org.rubyforge.debugcommons.ReadersSupport]: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.read1(BufferedReader.java:185)
at java.io.BufferedReader.read(BufferedReader.java:261)
at org.kxml2.io.KXmlParser.peek(Unknown Source)
at org.kxml2.io.KXmlParser.peekType(Unknown Source)
at org.kxml2.io.KXmlParser.nextImpl(Unknown Source)
at org.kxml2.io.KXmlParser.next(Unknown Source)
at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:133)
at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
[catch] at org.rubyforge.debugcommons.ReadersSupport$XPPLoop.run(ReadersSupport.java:271)
INFO [org.rubyforge.debugcommons.Util]: Stream closed
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:189)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
[catch] at org.rubyforge.debugcommons.Util.collect(Util.java:189)
at org.rubyforge.debugcommons.Util.dumpStream(Util.java:174)
at org.rubyforge.debugcommons.Util.dumpAndDestroyProcess(Util.java:148)
at org.rubyforge.debugcommons.RubyDebuggerProxy$SuspensionReaderLoop.run(RubyDebuggerProxy.java:581)
INFO [org.rubyforge.debugcommons.Util]: Read error
java.io.IOException: Read error
at java.io.FileInputStream.read(Native Method)
[catch] at org.rubyforge.debugcommons.Util.collect(Util.java:189)
at org.rubyforge.debugcommons.Util.dumpStream(Util.java:174)
at org.rubyforge.debugcommons.Util.dumpAndDestroyProcess(Util.java:149)
at org.rubyforge.debugcommons.RubyDebuggerProxy$SuspensionReaderLoop.run(RubyDebuggerProxy.java:581)
Unexpected fail. Debuggee: RubyDebugTarget@5932050[baseDir: D:\rails_apps\SDSB_Stats, debuggedFile: script\server, port: 4382], output:
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Destroying process: RubyDebugTarget@5932050[baseDir: D:\rails_apps\SDSB_Stats, debuggedFile: script\server, port: 4382]
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Socket reader loop finished.
|
|
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Thu Jul 09, 2009 5:19 am Post subject: Rails 2.3.2 and output window on Windows |
|
|
zwadar wrote:
| Quote: | so, here are results form testing on different Pc with win XP, NB 6.7.1 and Jruby 1.3.1, rails 2.3.2.
|
Thanks!
| Quote: | I ran rails, send couple of requests, but nothing appeared in output windows. It looks like output is flushed to this window only when break point is reached.
Another thing which log vcan show is that when I exit rails aplication, error message box appears with message
| Quote: | The web server failed to start because the port number 3000 is already in use, and nearby port could not be used...
| (yes, its on app exit), and I'm unable to run mongrel again until I kill java.exe process.
IDE log is
|
Unfortunately the log doesn't reveal too much useful info in this case,
but one thing to try would be increasing the timeout for the debugger
(http://wiki.netbeans.org/RubyDebugging67#section-RubyDebugging67-TimeoutProblem).
It is a bit unlikely that it will help though.
Do you experience the output problem only when debugging, or also when
just running the app?
Erno |
|
| Back to top |
|
 |
zwadar
Joined: 27 Dec 2008 Posts: 8
|
Posted: Thu Jul 09, 2009 7:25 am Post subject: |
|
|
It's the same with or without debugger. With debugger it's even better, since output is flushed when breakpoint is reached
This behaviour is same on my home (Vista X64) and work (XP) computer, so I hope it is nothing machine specific.. maybe user specific
Or maybe its because I'm using older JDK? I'm sticked to jdk1.6.0_06 because newer versoins came with strange font changes and code is hard to read in NB. (small difference between normal and bold text, maybe because of some strange antialiasing or something)
Roman |
|
| Back to top |
|
 |
zwadar
Joined: 27 Dec 2008 Posts: 8
|
Posted: Thu Jul 09, 2009 11:56 am Post subject: |
|
|
After updating to jdk1.6.0_14 I've got fixed some small issues I had before, but both delayed output and hanging java.exe after debug persists.
I've checked just run command better, and it seems, that while just running the app no output is printed at all, just initial mongrel message. So I have
no output while running the app, and delayed output while debugging the app. |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Fri Jul 10, 2009 4:49 am Post subject: Rails 2.3.2 and output window on Windows |
|
|
zwadar wrote:
| Quote: | After updating to jdk1.6.0_14 I've got fixed some small issues I had before, but both delayed output and hanging java.exe after debug persists.
I've checked just run command better, and it seems, that while just running the app no output is printed at all, just initial mongrel message. So I have
no output while running the app, and delayed output while debugging the app.
|
Unfortunately I don't have much ideas for solving this right now - could
you please file an issue for this at
http://www.netbeans.org/community/issues.html (against the ruby/rails
component) so that this doesn't get lost? Can you also reproduce the
issue once more w/ detailed logging turned on but w/o debugging (i.e.
just plain run app) and attach the log file to the issue then.
Thanks in advance,
Erno |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|