java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Using Spring Roo 1.1.2.BUILD-SNAPSHOT [rev 31429bd] I encounter the following problem using "gwt setup" command: NullPointerException cea34f2 Created SRC_MAIN_JAVA/com/stan/mysql/client/scaffold/activity/IsScaffoldMobileActivity.java java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtUtils.areMethodsEqual(GwtUtils.java:57) at org.springframework.roo.addon.gwt.GwtUtils.isOneMethodsEqual(GwtUtils.java:49) at org.springframework.roo.addon.gwt.GwtUtils.isRequestMethod(GwtUtils.java:44) at org.springframework.roo.addon.gwt.GwtTemplatingServiceImpl.getClientTypeMap(GwtTemplatingServiceImpl.java:276) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.get(GwtMetadataProviderImpl.java:123) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:215) at org.springframework.roo.addon.gwt.GwtOperationsImpl.setupGwt(GwtOperationsImpl.java:127) at org.springframework.roo.addon.gwt.GwtCommands.installSecurity(GwtCommands.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:662) log.roo // Spring Roo 1.1.2.BUILD-SNAPSHOT [rev 3dc0546] log opened at 2011-02-15 09:03:35 project --topLevelPackage com.stan.mysql persistence setup --provider HIBERNATE --database MYSQL database properties set --key database.username --value stan database properties set --key database.password --value 333333 database properties set --key database.url --value jdbc:mysql://localhost:3306/opea database properties list // [failed] database reverse engineer --schema opea --package ~.domain --testAutomatically addon info id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon upgrade id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon install id --searchResultId 1 // [failed] addon install bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java;5.1.14 database reverse engineer --schema openopens --package ~.domain --testAutomatically // [failed] gwt setup
    via by stanhangzhou xi,
  • Using Spring Roo 1.1.2.BUILD-SNAPSHOT [rev 31429bd] I encounter the following problem using "gwt setup" command: NullPointerException cea34f2 Created SRC_MAIN_JAVA/com/stan/mysql/client/scaffold/activity/IsScaffoldMobileActivity.java java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtUtils.areMethodsEqual(GwtUtils.java:57) at org.springframework.roo.addon.gwt.GwtUtils.isOneMethodsEqual(GwtUtils.java:49) at org.springframework.roo.addon.gwt.GwtUtils.isRequestMethod(GwtUtils.java:44) at org.springframework.roo.addon.gwt.GwtTemplatingServiceImpl.getClientTypeMap(GwtTemplatingServiceImpl.java:276) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.get(GwtMetadataProviderImpl.java:123) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:215) at org.springframework.roo.addon.gwt.GwtOperationsImpl.setupGwt(GwtOperationsImpl.java:127) at org.springframework.roo.addon.gwt.GwtCommands.installSecurity(GwtCommands.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:662) log.roo // Spring Roo 1.1.2.BUILD-SNAPSHOT [rev 3dc0546] log opened at 2011-02-15 09:03:35 project --topLevelPackage com.stan.mysql persistence setup --provider HIBERNATE --database MYSQL database properties set --key database.username --value stan database properties set --key database.password --value 333333 database properties set --key database.url --value jdbc:mysql://localhost:3306/opea database properties list // [failed] database reverse engineer --schema opea --package ~.domain --testAutomatically addon info id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon upgrade id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon install id --searchResultId 1 // [failed] addon install bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java;5.1.14 database reverse engineer --schema openopens --package ~.domain --testAutomatically // [failed] gwt setup
    via by stanhangzhou xi,
    • java.lang.NullPointerException at org.springframework.roo.addon.gwt.GwtUtils.areMethodsEqual(GwtUtils.java:57) at org.springframework.roo.addon.gwt.GwtUtils.isOneMethodsEqual(GwtUtils.java:49) at org.springframework.roo.addon.gwt.GwtUtils.isRequestMethod(GwtUtils.java:44) at org.springframework.roo.addon.gwt.GwtTemplatingServiceImpl.getClientTypeMap(GwtTemplatingServiceImpl.java:276) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.get(GwtMetadataProviderImpl.java:123) at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82) at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:215) at org.springframework.roo.addon.gwt.GwtOperationsImpl.setupGwt(GwtOperationsImpl.java:127) at org.springframework.roo.addon.gwt.GwtCommands.installSecurity(GwtCommands.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:662)
    No Bugmate found.