i get the following error when i click on project name ->generate in
netbeans IDE. help please…
java.lang.NullPointerException
at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.getSelectedGenerator(GeneratorPanel.java:136)
at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.isValid(GeneratorPanel.java:459)
at java.awt.Component.invalidateIfValid(Component.java:2809)*
at java.awt.Component.setLocale(Component.java:1879)*
at javax.swing.JComponent.(JComponent.java:584)*
at javax.swing.JPanel.(JPanel.java:65)*
at javax.swing.JPanel.(JPanel.java:92)*
at javax.swing.JPanel.(JPanel.java:100)*
at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.(GeneratorPanel.java:87)
at
org.netbeans.modules.ruby.railsprojects.GenerateAction.generate(GenerateAction.java:148)
at
org.netbeans.modules.ruby.railsprojects.GenerateAction.performAction(GenerateAction.java:127)
at
org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:111)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:104)*
at
org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:52)
at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:102)
at
org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:71)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)* [catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
On Sat, Mar 12, 2011 at 1:28 AM, Er.SALIM MANDREKAR < [email protected]> wrote:
i get the following error when i click on project name ->generate in
netbeans IDE. help please…
Stop using NetBeans to generate your rails application. Use the command
prompt to do it then import your newly created app into NetBeans for
editing. Follow this guide for learning how to create rails apps:
when i do that using command prompt rails server a folder is created “server” into my project directory…
*
* n further things r not working. please provide the help. ill also give the list of gems installed…
when i do that using command prompt
rails server
a folder is created “server” into my project directory…
So you have Rails 2.x
n further things r not working. please provide the help.
What “further things”?
ill also give the list of gems installed…
*** LOCAL GEMS *** actionmailer (2.2.3) actionpack (2.2.3) activerecord
(2.2.3) activerecord-odbc-adapter (2.0) activeresource (2.2.3) activesupport
(3.0.5, 2.2.3) builder (3.0.0) dbi (0.4.3) deprecated (3.0.0) minitest
(2.0.2, 1.6.0) rails (2.2.3) rake (0.8.7) rdoc (2.5.8)
now guide me with best tutorial
Well, what tutorials have you followed to get you to this position?
Have you looked at the Ruby on Rails “getting started” guide?
…and google for “Rails getting started” for dozens more links.
BTW You’re asking about Netbeans 6.0, while the current release is
6.9… I’d suggest using the latest release, as it works well, but for
the majority of things you need to use at your level (or arguably at
any level… but let’s not start that again! any text editor
would be fine. Don’t rely on the IDE to do stuff for you (like
creating projects, generating migrations, running rake takes); but
when you know how to do it yourself, use the IDE if it makes it easier
for you then.
ruby script/server also gives me an error… which says
C:\demo>ruby script/server internal:lib/rubygems/custom_require:29:in require': no such file to load -- script/../config/boot (LoadError) from <internal:lib/rubygems/custom_require>:29:inrequire’
from script/server:2:in `’
wil u please tel me why this error occurs.?
thanks
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.