This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 160900 - ide grails problem
Summary: ide grails problem
Status: RESOLVED DUPLICATE of bug 161176
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: HP Windows Vista
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 16:57 UTC by douglasv
Modified: 2009-05-11 10:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description douglasv 2009-03-23 16:57:04 UTC
the ide sees a problem where there is no problem(excerpts from forum)


[1] How do I correct this?

 netbeans editor reports error: Catch statement parameter type is not a subclass of Throwable

def newPost =
postService.createPost(params.id, params.content)
flash.message = "Added new post: ${newPost.content}"
} catch (PostException pe) {
flash.message = pe.message
}
redirect(action: 'timeline', id: params.id)
}
}


[2] I've seen this before, but only from an IDE - since the error is spurious (PostException extends RuntimeException
which definitely extends Throwable!). Running from the commandline will fix the issue.

Is it from IntelliJ or Netbeans or Eclipse?

Thanks,

Glen.

[3] The code that caused this:

package com.grailsinaction

class PostController {

    def postService

    def scaffold = true

    def timeline = {
        def user = User.findByUserId(params.id)
        [ user : user ]
    }

    def addPost = {
        try {
def newPost =
postService.createPost(params.id, params.content)
flash.message = "Added new post: ${newPost.content}"
} catch (PostException pe) { 
flash.message = pe.message
}
redirect(action: 'timeline', id: params.id)
        }
Comment 1 Petr Hejl 2009-04-10 11:47:45 UTC
This was fixed during the rewrite to CSL.
Comment 2 sjdavis1224 2009-05-10 02:28:06 UTC
Colleagues,

Please cf. http://www.manning-sandbox.com/thread.jspa?threadID=30235&tstart=0 and post dated May 9, 2009 9:03 PM

The respective problem needs to be revisited.  The original anomaly has been encountered on a newer version of Netbeans.

Thank you for an excellent product.  The IDE is an excellent tool.

Respectfully,

berean1155

Product Version: NetBeans IDE Dev (Build 200904011705)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Linux version 2.6.27.9-73.fc9.i686 running on i386; UTF-8; en_US (nb)
Userdir: /home/Stephen.Davis/.netbeans/6.7m3

Comment 3 Petr Hejl 2009-05-11 10:11:41 UTC

*** This issue has been marked as a duplicate of 161176 ***