title: HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
body: <p>Creating a Hibernate Test Project using maven.</p>
  
  <p>when i run the project, it generates Exception:</p>
  
  <pre><code>org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator initiateService
  WARN: HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections
  org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:104)
  at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:71)
  at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:209)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:89)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:206)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:178)
  at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1885)
  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)
  at org.hibernate.hibernatetest.App.main(App.java:33)
  Exception in thread "main" java.lang.NullPointerException
  at org.hibernate.hibernatetest.App.main(App.java:51) 
  </code></pre>
  
  <p>But in main class required properties are set.don't know why programme is genrAating exception.</p>
  
  <p>Main Class:</p>
  
  <pre><code>public class App {
  
  public static void main(String[] args) {
      Configuration configuration;
      ServiceRegistry serviceRegistry;
      SessionFactory sessionFactory;
      Session session = null;
      try {
          configuration = new Configuration();
  
  
          serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();
          configuration.setProperty("hibernate.dialect ", "com.applerao.hibernatesqlite.dialect.SQLiteDialect");
          configuration.setProperty("hibernate.connection.url ", "jdbc:sqlite:TailorDB.db");
          configuration.setProperty("hibernate.connection.driver_class ", "org.sqlite.JDBC");
          configuration.setProperty("hibernate.connection.username ", "");
          configuration.setProperty("hibernate.connection.password ", "");
          sessionFactory = configuration.buildSessionFactory(serviceRegistry);
  
          session = sessionFactory.openSession();
  
          CustomerModel c = new CustomerModel();
          c.setID(5);
          c.setNIC_Number("691201631345");
          c.setFirstName("Zee");
          c.setNumber("55225522");
          c.setLastName("Jan");
          c.setCustomerCode("Zee-123");
  
          session.beginTransaction();
          session.save(c);
          session.getTransaction().commit();
      } catch (HibernateException e) {
          e.printStackTrace();
      } finally {
          session.close();
      }
  }
  }
  </code></pre>
  
  <p>In POM file:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;4.3.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.xerial&lt;/groupId&gt;
          &lt;artifactId&gt;sqlite-jdbc&lt;/artifactId&gt;
          &lt;version&gt;3.7.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.applerao&lt;/groupId&gt;
          &lt;artifactId&gt;hibernatesqlite&lt;/artifactId&gt;
          &lt;version&gt;1.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Any idea where the problem can be??</p>
  
  <p>CustomerModel cLass:</p>
  
  <pre><code>@Entity
  @Table(name = "Customer")
  
  public class CustomerModel {
  
  @Id
  @GeneratedValue
  @Column(name = "c_id")
  int ID;
  @Column(name = "c_code")
  String customerCode;
  @Column(name = "c_fname")
  String firstName;
  @Column(name = "c_mname")
  String middleName;
  @Column(name = "c_lname")
  String lastName;
  @Column(name = "c_nic")
  String NIC_Number;
  @Column(name = "c_email")
  String email;
  @Column(name = "c_pnumber")
  String number;
  }
  </code></pre>