java.lang.NullPointerException

Spring JIRA | stanhangzhou xi | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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

    Spring JIRA | 6 years ago | stanhangzhou xi
    java.lang.NullPointerException
  2. 0

    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

    Spring JIRA | 6 years ago | stanhangzhou xi
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.springframework.roo.addon.gwt.GwtUtils.areMethodsEqual()
    2. Spring Roo - Annotations (ASLv2 Licensed)
      GwtMetadataProviderImpl.get
      1. org.springframework.roo.addon.gwt.GwtUtils.areMethodsEqual(GwtUtils.java:57)
      2. org.springframework.roo.addon.gwt.GwtUtils.isOneMethodsEqual(GwtUtils.java:49)
      3. org.springframework.roo.addon.gwt.GwtUtils.isRequestMethod(GwtUtils.java:44)
      4. org.springframework.roo.addon.gwt.GwtTemplatingServiceImpl.getClientTypeMap(GwtTemplatingServiceImpl.java:276)
      5. org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.get(GwtMetadataProviderImpl.java:123)
      5 frames
    3. org.springframework.roo
      DefaultMetadataService.get
      1. org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148)
      2. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82)
      3. org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:215)
      3 frames
    4. Spring Roo - Annotations (ASLv2 Licensed)
      GwtCommands.installSecurity
      1. org.springframework.roo.addon.gwt.GwtOperationsImpl.setupGwt(GwtOperationsImpl.java:127)
      2. org.springframework.roo.addon.gwt.GwtCommands.installSecurity(GwtCommands.java:28)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
      5. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:165)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132)
      8 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame