Hi I am getting an error on running my grails - twitter app

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Hi I am getting an error on running my grails - twitter app

divz28

 the code is based on the one posted on this site -  https://github.com/grails-samples/
Following is the error

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\USER>cd /d F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp

F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp>grails run-app
Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: F:\PROJECT_GRAILS\grails-1.3.5

Base Directory: F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp
Resolving dependencies...
Downloading: http://repo1.maven.org/maven2/org/grails/grails-datastore-gorm-test
/1.0.0.M2/grails-datastore-gorm-test-1.0.0.M2.pom ...
Download complete.
Downloading: http://repo1.maven.org/maven2/org/grails/grails-datastore-gorm-test
/1.0.0.M2/grails-datastore-gorm-test-1.0.0.M2.pom.sha1 ...
Download complete.
Downloading: http://maven.springframework.org/milestone/org/springframework/spri
ng-datastore-simple/1.0.0.M2/spring-datastore-simple-1.0.0.M2.pom ...
Download complete.
Downloading: http://maven.springframework.org/milestone/org/springframework/spri
ng-datastore-simple/1.0.0.M2/spring-datastore-simple-1.0.0.M2.pom.sha1 ...
Download complete.
Downloading: http://repo1.maven.org/maven2/org/grails/grails-datastore-gorm-test
/1.0.0.M2/grails-datastore-gorm-test-1.0.0.M2.jar ...
Download complete.
Downloading: http://repo1.maven.org/maven2/org/grails/grails-datastore-gorm-test
/1.0.0.M2/grails-datastore-gorm-test-1.0.0.M2.jar.sha1 ...
Download complete.
Downloading: http://maven.springframework.org/milestone/org/springframework/spri
ng-datastore-simple/1.0.0.M2/spring-datastore-simple-1.0.0.M2.jar ...
Download complete.
Downloading: http://maven.springframework.org/milestone/org/springframework/spri
ng-datastore-simple/1.0.0.M2/spring-datastore-simple-1.0.0.M2.jar.sha1 ...
Download complete.
Dependencies resolved in 25843ms.
Running script F:\PROJECT_GRAILS\grails-1.3.5\scripts\RunApp.groovy
Environment set to development
Plugin [svn-1.0.0.M1] not installed. ...
Resolving new plugins. Please wait... ...
Installing zip C:\Documents and Settings\USER\.ivy2\cache\org.grails.plugins\svn
\zips\svn-1.0.0.M1.zip... ...
    [mkdir] Created dir: C:\Documents and Settings\USER\.grails\1.3.5\projects\T
witterApp\plugins\svn-1.0.0.M1
    [unzip] Expanding: C:\Documents and Settings\USER\.ivy2\cache\org.grails.plu
gins\svn\zips\svn-1.0.0.M1.zip into C:\Documents and Settings\USER\.grails\1.3.5
\projects\TwitterApp\plugins\svn-1.0.0.M1
Installed plugin svn-1.0.0.M1 to location C:\Documents and Settings\USER\.grails
\1.3.5\projects\TwitterApp\plugins/svn-1.0.0.M1. ...
Resolving plugin JAR dependencies ...
Executing svn-1.0.0.M1 plugin post-install script ...
Plugin svn-1.0.0.M1 installed
   [delete] Deleting: C:\Documents and Settings\USER\.grails\1.3.5\projects\Twit
terApp\resources\web.xml
   [delete] Deleting directory F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp\target\
classes
   [delete] Deleting directory C:\Documents and Settings\USER\.grails\1.3.5\proj
ects\TwitterApp\plugin-classes
   [delete] Deleting directory C:\Documents and Settings\USER\.grails\1.3.5\proj
ects\TwitterApp\resources
     [copy] Copied 4 empty directories to 2 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 6 empty directories to 4 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 5 empty directories to 4 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 8 empty directories to 4 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 10 empty directories to 10 empty directories under C:\Documen
ts and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 1 empty directory to 1 empty directory under C:\Documents and
 Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 3 empty directories to 3 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copying 1 file to C:\Documents and Settings\USER\.grails\1.3.5\proje
cts\TwitterApp\resources
     [copy] Copied 1 empty directory to 1 empty directory under C:\Documents and
 Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
     [copy] Copied 1 empty directory to 1 empty directory under C:\Documents and
 Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
    [mkdir] Created dir: C:\Documents and Settings\USER\.grails\1.3.5\projects\T
witterApp\plugin-classes
  [groovyc] Compiling 151 source files to C:\Documents and Settings\USER\.grails
\1.3.5\projects\TwitterApp\plugin-classes
C:\Documents and Settings\USER\.grails\1.3.5\projects\TwitterApp\plugins\searcha
ble-0.5.5.1\src\java\org\codehaus\groovy\grails\plugins\searchable\compass\confi
g\mapping\CompassAnnotationSearchableGrailsDomainClassMappingConfigurator.java:5
6: warning: non-varargs call of varargs method with inexact argument type for la
st parameter;
        return ReflectionUtils.invokeMethod(getter, clazz, new Class[] { getSear
chableAnnotationClass() }) != null;
                                                           ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
    [mkdir] Created dir: F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp\target\classe
s
  [groovyc] Compiling 15 source files to F:\PROJECT_GRAILS\grails-1.3.5\TwitterA
pp\target\classes
    [mkdir] Created dir: C:\Documents and Settings\USER\.grails\1.3.5\projects\T
witterApp\resources\grails-app\i18n
[native2ascii] Converting 13 files from F:\PROJECT_GRAILS\grails-1.3.5\TwitterAp
p\grails-app\i18n to C:\Documents and Settings\USER\.grails\1.3.5\projects\Twitt
erApp\resources\grails-app\i18n
    [mkdir] Created dir: C:\Documents and Settings\USER\.grails\1.3.5\projects\T
witterApp\resources\plugins\spring-security-core-1.2.1\grails-app\i18n
[native2ascii] Converting 2 files from C:\Documents and Settings\USER\.grails\1.
3.5\projects\TwitterApp\plugins\spring-security-core-1.2.1\grails-app\i18n to C:
\Documents and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources\plugins
\spring-security-core-1.2.1\grails-app\i18n
     [copy] Copying 1 file to F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp\target\c
lasses
     [copy] Copied 2 empty directories to 2 empty directories under C:\Documents
 and Settings\USER\.grails\1.3.5\projects\TwitterApp\resources
   [delete] Deleting directory C:\Documents and Settings\USER\.grails\1.3.5\proj
ects\TwitterApp\tomcat
Running Grails application..
2011-08-25 17:44:18,328 [main] ERROR context.GrailsContextLoader  - Error execut
ing bootstraps: null
java.lang.NullPointerException
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:321)
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:351)
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:310)
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:303)
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:351)
        at com.sun.beans.TypeResolver.resolve(TypeResolver.java:172)
        at com.sun.beans.TypeResolver.resolveInClass(TypeResolver.java:93)
        at java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java
:387)
        at java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:114)
        at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:72)
        at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:56)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1150)
        at java.beans.Introspector.getBeanInfo(Introspector.java:433)
        at java.beans.Introspector.getBeanInfo(Introspector.java:174)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.grails.plugins.gemfire.RegionAttributesBuilder.execute(RegionAttr
ibutesBuilder.groovy:13)
        at org.grails.plugins.gemfire.RegionAttributesBuilder$execute.call(Unkno
wn Source)
        at org.grails.plugins.gemfire.RegionMetadataBuilder.methodMissing(Region
MetadataBuilder.groovy:10)
        at org.grails.plugins.gemfire.RegionMetadataBuilder.invokeMethod(RegionM
etadataBuilder.groovy)
        at Config$_run_closure3.doCall(Config.groovy:98)
        at Config$_run_closure3.doCall(Config.groovy)
        at GemfireGrailsPlugin$_closure1.doCall(GemfireGrailsPlugin.groovy:77)
        at GemfireGrailsPlugin$_closure1.doCall(GemfireGrailsPlugin.groovy)
        at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:
723)
        at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
        at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:15
8)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:2
80)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
F:\PROJECT_GRAILS\grails-1.3.5\TwitterApp>