Why i am still getting exception in hibernate logs? -


this first hibernate program , want run , getting same exception again , again tried add <property name="hibernate.temp.use_jdbc_metadata_defaults">false</property> didnt worked

hibernate.cfg.xml:

<?xml version="1.0" encoding="utf-8"?> <!doctype hibernate-configuration system  "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.oracle10gdialect</property> <property name="hibernate.connection.driver_class">oracle.jdbc.oracledriver</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:xe</property> <property name="hibernate.connection.username">hibernate</property> <property name="hibernate.connection.password">hibernate</property> <property name="hibernate.jdbc.lob.non_contextual_creation">true</property> <property name="hibernate.temp.use_jdbc_metadata_defaults">false</property> <property name="hibernate.show_sql">true</property> <property name="hibernate.hbm2ddl.auto">create</property>  <mapping class="objectclasses.address"/>      </session-factory> </hibernate-configuration> 

controller class:

package controller; import objectclasses.*; import org.hibernate.session; import org.hibernate.sessionfactory; import org.hibernate.boot.registry.standardserviceregistrybuilder; import org.hibernate.cfg.configuration; import org.hibernate.service.serviceregistry;  public class usercontroller  {    static sessionfactory sf=null;     public static void main(string args[]){    address a1=new address("341","chhoti baradari part-1","jalandhar",144001,"punjab","india");     sf=new configuration().configure().buildsessionfactory();     session ses = sf.opensession();   ses.begintransaction();   ses.save(a1);   ses.gettransaction();   }     } 

exceptions :

nov 13, 2016 6:55:49 pm     org.hibernate.annotations.common.reflection.java.javareflectionmanager <clinit> info: hcann000001: hibernate commons annotations {4.0.4.final} nov 13, 2016 6:55:50 pm org.hibernate.version logversion info: hhh000412: hibernate core {4.3.1.final} nov 13, 2016 6:55:50 pm org.hibernate.cfg.environment <clinit> info: hhh000206: hibernate.properties not found nov 13, 2016 6:55:50 pm org.hibernate.cfg.environment buildbytecodeprovider info: hhh000021: bytecode provider name : javassist nov 13, 2016 6:55:50 pm org.hibernate.cfg.configuration configure info: hhh000043: configuring resource: /hibernate.cfg.xml nov 13, 2016 6:55:50 pm org.hibernate.cfg.configuration getconfigurationinputstream info: hhh000040: configuration resource: /hibernate.cfg.xml nov 13, 2016 6:55:50 pm org.hibernate.cfg.configuration doconfigure info: hhh000041: configured sessionfactory: null nov 13, 2016 6:55:50 pm  org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderim pl configure warn: hhh000402: using hibernate built-in connection pool (not production use!) nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000401: using driver [oracle.jdbc.oracledriver] @ url [jdbc:oracle:thin:@localhost:1521:xe] nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000046: connection properties: {user=hibernate, password=****} nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl buildcreator info: hhh000006: autocommit mode: false nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl configure info: hhh000115: hibernate connection pool size: 20 (min=1) nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.internal.jdbcservicesimpl configure warn: hhh000341: not obtain connection metadata : unsupported feature  nov 13, 2016 6:55:50 pm org.hibernate.engine.jdbc.internal.lobcreatorbuilder usecontextuallobcreation  info: hhh000422: disabling contextual lob creation connection null  exception in thread "main" java.lang.nullpointerexception   @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:244)  @   org.hibernate.boot.registry.internal.standardserviceregistryimpl.configureservic e(standardserviceregistryimpl.java:89)  @   org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:206)  @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:178) @ org.hibernate.cfg.configuration.buildtyperegistrations(configuration.java:1885) @ org. hibernate.cfg.configuration.buildsessionfactory(configuration.java:1843) @       org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1928) @ controller.usercontroller.main(usercontroller.java:18)   


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -