Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Raphael A BEREHOUDOUGOU, 1 year ago
via Hibernate JIRA by Raphael A BEREHOUDOUGOU, 2 years ago
via sourceforge.net by Unknown author, 2 years ago
This exception has no message.
via sourceforge.net by Unknown author, 1 year ago
This exception has no message.
java.lang.NullPointerException: 	at com.elina.commercialis.server.stock.produit.Produit.hashCode(Produit.java:151)	at java.util.HashMap.hash(HashMap.java:264)	at java.util.HashMap.put(HashMap.java:382)	at java.util.HashSet.add(HashSet.java:194)	at java.util.AbstractCollection.addAll(AbstractCollection.java:318)	at org.hibernate.collection.PersistentSet.endRead(PersistentSet.java:273)	at org.hibernate.engine.CollectionLoadContext.endLoadingCollection(CollectionLoadContext.java:183)	at org.hibernate.engine.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:268)	at org.hibernate.engine.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:249)	at org.hibernate.loader.Loader.endCollectionLoad(Loader.java:866)	at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:853)	at org.hibernate.loader.Loader.doQuery(Loader.java:717)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)	at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)	at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)	at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)	at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)	at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:859)	at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)	at org.hibernate.type.EntityType.resolve(EntityType.java:303)	at org.hibernate.type.EntityType.nullSafeGet(EntityType.java:217)	at org.hibernate.persister.collection.AbstractCollectionPersister.readElement(AbstractCollectionPersister.java:644)	at org.hibernate.collection.PersistentSet.readFrom(PersistentSet.java:262)	at org.hibernate.loader.Loader.readCollectionElement(Loader.java:994)	at org.hibernate.loader.Loader.readCollectionElements(Loader.java:635)	at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)	at org.hibernate.loader.Loader.doQuery(Loader.java:689)	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)	at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)	at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)	at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)	at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)	at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)	at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)	at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)	at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)	at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)	at org.hibernate.impl.SessionImpl.get(SessionImpl.java:828)	at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:209)	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:100)	at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:52)	at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:701)	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:685)	at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)	at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:138)	at org.jboss.ejb3.entity.InjectedEntityManager.merge(InjectedEntityManager.java:146)	at com.elina.commercialis.server.facade.stock.produit.ProduitSessionFacadeBean.modifier(ProduitSessionFacadeBean.java:29)	at com.elina.commercialis.server.facade.stock.produit.ProduitSessionFacadeBean.sauver(ProduitSessionFacadeBean.java:23)	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:585)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)	at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:219)	at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)	at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:660)	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:513)	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290)	at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344)	at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202)	at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:163)	at org.jboss.remoting.Client.invoke(Client.java:258)	at org.jboss.remoting.Client.invoke(Client.java:221)	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)	at $Proxy0.sauver(Unknown Source)	at com.elina.commercialis.client.delegate.stock.produit.ProduitDelegate.createProduit(ProduitDelegate.java:21)	at com.elina.commercialis.client.gui.screens.stock.produit.ProduitTab.enregistrer(ProduitTab.java:81)	at com.elina.commercialis.client.util.gui.screens.CommercialisToolbarBuilder$2.actionPerformed(CommercialisToolbarBuilder.java:80)	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)	at java.awt.Component.processMouseEvent(Unknown Source)	at javax.swing.JComponent.processMouseEvent(Unknown Source)	at java.awt.Component.processEvent(Unknown Source)	at java.awt.Container.processEvent(Unknown Source)	at java.awt.Component.dispatchEventImpl(Unknown Source)	at java.awt.Container.dispatchEventImpl(Unknown Source)	at java.awt.Component.dispatchEvent(Unknown Source)	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)	at java.awt.Container.dispatchEventImpl(Unknown Source)	at java.awt.Window.dispatchEventImpl(Unknown Source)	at java.awt.Component.dispatchEvent(Unknown Source)	at java.awt.EventQueue.dispatchEvent(Unknown Source)	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.run(Unknown Source)