java.lang.NullPointerException

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    It seems that the code invoke the setPortNumber method with a parameter from type 'String', but the Microsoft documentation says the parameter of this method is from type 'int.' java.sql.SQLException: java.lang.NoSuchMethodException: com.microsoft.sqlserver.jdbc.SQLServerDataSource.setPortNumber(java.lang.String) at org.ops4j.pax.jdbc.mssql.impl.MSSQLDataSourceFactory.createDataSource(MSSQLDataSourceFactory.java:56)[240:org.ops4j.pax.jdbc.mssql:0.7.0] at org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.createDs(DataSourceRegistration.java:111)[12:org.ops4j.pax.jdbc.config:0.7.0] at org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.<init>(DataSourceRegistration.java:72)[12:org.ops4j.pax.jdbc.config:0.7.0] at org.ops4j.pax.jdbc.config.impl.DataSourceFactoryTracker.addingService(DataSourceFactoryTracker.java:40)[12:org.ops4j.pax.jdbc.config:0.7.0] at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:] at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:] at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:] at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:] at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:] at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:] at org.ops4j.pax.jdbc.config.impl.DataSourceConfigManager.updated(DataSourceConfigManager.java:74)[12:org.ops4j.pax.jdbc.config:0.7.0] at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[3:org.apache.felix.configadmin:1.8.8] at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[3:org.apache.felix.configadmin:1.8.8] at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1753)[3:org.apache.felix.configadmin:1.8.8] at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.apache.felix.configadmin:1.8.8] at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[3:org.apache.felix.configadmin:1.8.8] at java.lang.Thread.run(Thread.java:745)[:1.8.0_65] Caused by: java.lang.NoSuchMethodException: com.microsoft.sqlserver.jdbc.SQLServerDataSource.setPortNumber(java.lang.String) at java.lang.Class.getMethod(Class.java:1786)[:1.8.0_65] at org.ops4j.pax.jdbc.mssql.impl.MSSQLDataSourceFactory.setProperty(MSSQLDataSourceFactory.java:111)[240:org.ops4j.pax.jdbc.mssql:0.7.0] at org.ops4j.pax.jdbc.mssql.impl.MSSQLDataSourceFactory.setProperties(MSSQLDataSourceFactory.java:101)[240:org.ops4j.pax.jdbc.mssql:0.7.0] at org.ops4j.pax.jdbc.mssql.impl.MSSQLDataSourceFactory.createDataSource(MSSQLDataSourceFactory.java:53)[240:org.ops4j.pax.jdbc.mssql:0.7.0] ... 16 more

    JIRA | 1 year ago | Andy Schmidt
    java.sql.SQLException: java.lang.NoSuchMethodException: com.microsoft.sqlserver.jdbc.SQLServerDataSource.setPortNumber(java.lang.String)
  2. 0

    [Opendaylight-users] /controller/nb/v2/neutron starts Failed

    opendaylight.org | 2 years ago
    java.lang.IllegalArgumentException: Security Mapping [free access] is already registered.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Alias does not start with slash (/)

    karaf-user | 4 years ago | Raman
    java.lang.IllegalArgumentException: Alias does not start with slash (/)
  5. 0

    Alias does not start with slash (/)

    karaf-user | 4 years ago | Raman
    java.lang.IllegalArgumentException: Alias does not start with slash (/)

    9 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.Hashtable.put()
    2. Java RT
      Properties.setProperty
      1. java.util.Hashtable.put(Hashtable.java:459)
      2. java.util.Properties.setProperty(Properties.java:166)
      2 frames
    3. PostgreSQL JDBC Driver
      BaseDataSource.setUrl
      1. org.postgresql.ds.common.BaseDataSource.setProperty(BaseDataSource.java:1030)
      2. org.postgresql.ds.common.BaseDataSource.setUrl(BaseDataSource.java:964)
      2 frames
    4. org.postgresql.osgi
      PGDataSourceFactory.createDataSource
      1. org.postgresql.osgi.PGDataSourceFactory.configureBaseDataSource(PGDataSourceFactory.java:65)
      2. org.postgresql.osgi.PGDataSourceFactory.createSimpleDataSource(PGDataSourceFactory.java:127)
      3. org.postgresql.osgi.PGDataSourceFactory.createDataSource(PGDataSourceFactory.java:149)
      3 frames
    5. org.ops4j.pax
      DataSourceFactoryTracker.addingService
      1. org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.createDs(DataSourceRegistration.java:108)
      2. org.ops4j.pax.jdbc.config.impl.DataSourceRegistration.<init>(DataSourceRegistration.java:63)
      3. org.ops4j.pax.jdbc.config.impl.DataSourceFactoryTracker.addingService(DataSourceFactoryTracker.java:42)
      3 frames
    6. OSGi
      ServiceTracker.open
      1. org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
      2. org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
      3. org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      4. org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)
      5. org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)
      6. org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)
      6 frames
    7. org.ops4j.pax
      DataSourceConfigManager.updated
      1. org.ops4j.pax.jdbc.config.impl.DataSourceConfigManager.updated(DataSourceConfigManager.java:80)
      1 frame
    8. Apache Felix Configuration Admin Service
      UpdateThread.run
      1. org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
      2. org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
      3. org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1772)
      4. org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)
      5. org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)
      5 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame