• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JNDI error message

 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


why do we need a datasource object as we have sessionfactory object


Because all* Java code that connects to a database will ultimately use JDBC to do this. Hibernate is no different. In order to do anything with a database it needs a DataSource to use.


(* OK, you could call native code or communicate via another protocol if the DB allows it, but this is just side stepping JDBC for the sake of being clever)
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
As per your discussion its better to bingd the session factory in to JNDI for reuse. ok , why is this line of code then
cfg.buildSessionFactory();
This also returns the SessionFactory which we are lokking up in JNDI is it so??. If so how to proceed with this ???

Can you give your mail Id ill post some questions because me off for next two days plzzz
[ July 13, 2007: Message edited by: mano ranjan ]
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


why is this line of code then
cfg.buildSessionFactory();


Because this is the route Hibernate dictates to configure a SessionFactory. The fact is returns a SessionFactory (ignoring any JNDI implications) is useful if you have a single JVM application: you can have a static class that creates the SessionFactory and other classes can use this instance directly. In a distributed JEE application you cannot do this, so the fact it returns a SessionFactory instance is not important, since all classes that use it are probably going to need to look it up in JNDI.


If so how to proceed with this ???


Did you cahnge your JNDI lookup to the value the logs specify your SessionFactory is bound at? Did it work?


Can you give your mail Id ill post some questions because me off for next two days plzzz


I'd rather you just use the forums for any discussion. See this for our reasons.
[ July 13, 2007: Message edited by: Paul Sturrock ]
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
but now also iam getting the same null pointer exception as above no improvement..but when i try this line of code iam getting a Wrapperdatasource object

Object ds =(Object)new InitialContext().lookup("java:MySqlDS");

will it be useful for us to proceed ...???

ok ill post in forum itself ....will you be available tomorrow
[ July 13, 2007: Message edited by: mano ranjan ]
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


2007-07-13 20:01:04,421 INFO [STDOUT] 20:01:04,421 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/hibernate/MySessionFactory


Your log is telling you that the SessionFactory has been configured and where it has been bound into JNDI. Your SessionFactory (according to the logs) currently has no mapped classes, which makes it useless, but it is definately in JNDI.

All I can advise is you are very, very careful your lookup string is right. For example, I'd cut and paste it from your log, just to be sure.
[ July 13, 2007: Message edited by: Paul Sturrock ]
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Session factory has no mapped classes means what i must do to map the classes in it . What do you mean by classes which classes..???
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The last code you posted to configure your SessionFactory was this:

This sets a bunch of properties of your SessionFactory, but doesn't map any classes. A "mapped class" is a concept at the core or all ORMs; it is the point you map your object to its relational data. In the configuration route you are taking, this is done with hbm.xml files for each mapped class. You need to define these in your SessionFactory configuration otherwise the SessionFactory will map no classes.

Have a read of the Hibernate documentation for configuration to see what I am on about.
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
As per your reply i must set all the properties in a hbm.xml or hibernate.properties ,which would be a meaning ful one. is that wright??
ok one doubht
1. A "mapped class" is a concept at the core or all ORMs; it is the point you map your object to its relational data
what do you mean by the above line i cant under stand about ORMs and relatinal data. Can you explain me these plzz

thanks
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


As per your reply i must set all the properties in a hbm.xml or hibernate.properties ,which would be a meaning ful one. is that wright??


No. As I have aready said in previous replies, Hibernate needs certain properties in order to ba able to create a SessionFactory. It gives a variety of ways to set these, hibernate.cfg.xml and hibernate.properties are two possible ways. Putting these properties in a n external file gives you room to change your configuration without changing code, so it is considered better.


what do you mean by the above line i cant under stand about ORMs and relatinal data. Can you explain me these plzz


Hmm. This is one of the main reasons why you might choose to include Hibernate in your application in the first place. It exists to handle the problem of mapping objects to entities, and overcome the differences between a relational model of data and an object oriented model of data. Might I suggest you take time to google for "object relational impedance mismatch". You might also benefit by reading throuhg this article.
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
As per the article you have linked . Its says there will be a mismatch between relational database management system
and object oriented program(java).ok ill agree with you that it has been mismatched,but how do ill check
that it has mismatched .. how do identify these type of errors in my application

thanks
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure you have understood the article. The mismatch is between your object model and your entity-relational model. There are no errors to identify.
[ July 16, 2007: Message edited by: Paul Sturrock ]
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I read many documents in net . but i have not got a clear idea about
1.ORM(object relational mapping)
2.Relational model of data and
3.Entity-ralatioanal model.

Can you please explain in detail with simple english . please .

very sorry to ask you this question because i cant understand

thanks
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I read many documents in net . but i have not got a clear idea about
1.ORM(object relational mapping)



Object Relational Mapping is the concept whereby you map an Object to a Relational entity. Lets break up the term:
  • You understand the term Object I hope? An object is a something in your application that (for thepurposes of this argument) represents some data. So you might have a Person class that defines your object.
  • A "relational entity" is a simmilar concept: it represents the properties of something and is usually defined as a single table in a relational database. However, the entity exists in the database where the rules and conventions of its behaviour and how it is defined are very differernt from your object model. So your person in the database might be one table called person.
  • The mapping is the part Hibernate manages. It is where you define that a property of your Person class (lets say name) maps to a field in the entity in the database. So Person.getName() would return the name field of the person table.



  • 2.Relational model of data and
    3.Entity-ralatioanal model.



    These are the same things. If you don't know these terms I highly recommend you buy a book on the basics of relational databases and read up on them. Briefly though, an Entity-relational model is the model of the entities (tables) defines in the database and their relationships (usually foreign key constraints) to each other.

    If these terms are ones you don't yet understand I'd suggest you stop trying to work with Hibernate and have a read up on the basics behind it. There are plenty of resources on the net.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    Thanks i have got some idea about this topic,so ill explain correcr me if iam wrong

    1.ORM conecpt is that were a object is been mapped to table with the help of "relational entity" were we map the table with
    relationaships with the object.but the relationship entity is different form object relation ship mapping.

    2.Entity relational model. is that we define the table and their relationships in the database


    is it ok in my part

    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator


    1.ORM conecpt is that were a object is been mapped to table with the help of "relational entity" were we map the table with
    relationaships with the object.but the relationship entity is different form object relation ship mapping.


    Not quite. An "relational entity" == a table in the database. It is not part of the ORM mechanism itself, it is what you are trying to map your objects to. Make sense?


    2.Entity relational model. is that we define the table and their relationships in the database


    Yes. The Entity Relational model (ER model) is how data is defined in the database.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    Assume
    a. Person - a table in database
    b. person.hbm.xml - xml file in hibernate mapping file
    c.Person.java - a pojo class
    d.hibernate.xml - hibernate file
    by this structure how can you define ORM and relational entity where does
    these two play their roles (i.e in which file is considered as ORM and relational entity)

    i have understood a lot form you

    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator


    a. Person - a table in database


    This is a relational entity. It is part of the database.


    b. person.hbm.xml - xml file in hibernate mapping file


    This is a mapping. It is part of the ORM tool (Hibernate).


    c.Person.java - a pojo class


    This is the mapped object. It is part of your object model and is used by the ORM tool (Hibernate).


    d.hibernate.cfg.xml - hibernate file


    This is how you configure Hibernate, so is part of the ORM tool again. It is where you define your mapped classes, amoungst other things.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    HI
    Thanks for your reply.i had understood more from you.So
    ORM is a tool which mapps the objects with the tables(i.e relation entity).So hibernate is using object relational mapping technique to map the objects to the database.

    thanks
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    Please tell me now how should i continue in this issue..
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    To be honest, I'm not 100% sure where you are in the issue. As far as I can see you are struggling to configure Hibernate's SessionFactory after trying a variety of different methods, and you seem to be struggling because you are not understanding some of the core concepts of Hibernate, and databases in general. I'd recommend you take time to read through the Hibernate documentation before trying anything else. I'd also strongly recommend you brush up on your understanding of relational databases otherwise doing anything with Hibernate is liable to be very difficult. This came up when I googled for a basic RDBMS tutorial. You could also look at the documentation that comes with whichever RDBMS you are using; most have a "concepts" section that will introduce the basic terms.

    Good luck!
    [ July 18, 2007: Message edited by: Paul Sturrock ]
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    i went through the document which you said.i configured as per the document.iam getting the this error . Can you help me out in this ...



    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator


    17:50:16,765 INFO [STDOUT] 17:50:16,765 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured


    You are not binding your SessionFactory into JNDI, as the log tells you. If your application architecture doesn't require a JNDI-bound SessionFactory this is fine. Of course if you are not binding it into JNDI, then you should not be trying to look it up from there.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    HI
    how to configure in JNDI . i have given
    hibernate.session_factory_name=java:comp/env/hibernate/SessionFactory
    hibernate.connection.datasource = java:/MySqlDS
    and the datasource name in hibernate.properties file.

    this datasource name has been specified in mysql-ds.xml

    Is this ok for sessionFactory Specification for JNDI???

    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    We've been through this before (see previous replies). Rather than repeat myself, I recommend you read the chapter on configuration in the Hibernate documentation.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    HI
    Now it has configured but also same error



    please look at this ...

    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I can't add anything to what I've already said, mano ranjan. Please re-read the earlier replies (particularaly the one I posted directly after you last posted an identical log).
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    HI
    Can you please guide in this issue please



    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hibernate reports that error when the context used does not implement javax.naming.event.EventContext. It will not stop the SesisonFactory being configured, but it will prevent it registering a naming listener. This is not the source of your issue.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    So if its not in my side . So whats the solution for this issue to be made..


    thanks
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi
    Referring the previous post its the same log but i could'nt get the solution for this error so please help me .. i think i am very near so i need your help ....


    thanks
     
    Paul Sturrock
    Bartender
    Posts: 10336
    Hibernate Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    This is not a problem and will not prevent your SessionFactory from being created.
     
    mano ranjan
    Ranch Hand
    Posts: 102
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    HI
    iam still trying to get the session factory but iam not able to plzz help me paul
     
    Greenhorn
    Posts: 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    i got the same problem like this:

    23:50:49,107 INFO [STDOUT] 23:50:49,107 INFO [Environment] Hibernate 3.1.3
    23:50:49,127 INFO [STDOUT] 23:50:49,127 INFO [Environment] hibernate.properties not found
    23:50:49,137 INFO [STDOUT] 23:50:49,137 INFO [Environment] using CGLIB reflection optimizer
    23:50:49,137 INFO [STDOUT] 23:50:49,137 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
    23:50:49,418 INFO [STDOUT] 23:50:49,418 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
    23:50:49,418 INFO [STDOUT] 23:50:49,418 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
    23:50:49,658 INFO [STDOUT] 23:50:49,658 INFO [Configuration] Reading mappings from resource: domain/InfoArti
    cle.hbm.xml
    23:50:50,720 INFO [STDOUT] 23:50:50,720 INFO [HbmBinder] Mapping class: domain.InfoArticle -> info_article
    23:50:50,820 INFO [STDOUT] 23:50:50,820 INFO [Configuration] Reading mappings from resource: domain/ChanArti
    Relation.hbm.xml
    23:50:51,240 INFO [STDOUT] 23:50:51,240 INFO [HbmBinder] Mapping class: domain.ChanArtiRelation -> chan_arti
    _relation
    23:50:51,511 INFO [STDOUT] 23:50:51,511 INFO [Configuration] Reading mappings from resource: domain/InfoChan
    nel.hbm.xml
    23:50:52,382 INFO [STDOUT] 23:50:52,382 INFO [HbmBinder] Mapping class: domain.InfoChannel -> info_channel
    23:50:52,392 INFO [STDOUT] 23:50:52,392 INFO [Configuration] Configured SessionFactory: null
    23:50:52,392 INFO [STDOUT] 23:50:52,392 INFO [HbmBinder] Mapping collection: domain.InfoArticle.chanArtiRela
    tions -> chan_arti_relation
    23:50:52,392 INFO [STDOUT] 23:50:52,392 INFO [HbmBinder] Mapping collection: domain.InfoChannel.chanArtiRela
    tions -> chan_arti_relation
    23:50:52,522 INFO [STDOUT] 23:50:52,522 INFO [NamingHelper] JNDI InitialContext properties:{}
    23:50:52,532 INFO [STDOUT] 23:50:52,522 INFO [DatasourceConnectionProvider] Using datasource: java:/moreflur
    ish
    23:50:53,293 INFO [STDOUT] 23:50:53,293 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.15-nt
    23:50:53,293 INFO [STDOUT] 23:50:53,293 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: m
    ysql-connector-java-5.0.8 ( Revision: ${svn.Revision} )
    23:50:53,414 INFO [STDOUT] 23:50:53,373 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
    23:50:53,434 INFO [STDOUT] 23:50:53,434 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate
    .transaction.JDBCTransactionFactory
    23:50:53,454 INFO [STDOUT] 23:50:53,454 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup c
    onfigured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    23:50:53,454 INFO [STDOUT] 23:50:53,454 INFO [SettingsFactory] Automatic flush during beforeCompletion(): di
    sabled
    23:50:53,454 INFO [STDOUT] 23:50:53,454 INFO [SettingsFactory] Automatic session close at end of transaction
    : disabled
    23:50:53,454 INFO [STDOUT] 23:50:53,454 INFO [SettingsFactory] JDBC batch size: 15
    23:50:53,454 INFO [STDOUT] 23:50:53,454 INFO [SettingsFactory] JDBC batch updates for versioned data: disabl
    ed
    23:50:53,464 INFO [STDOUT] 23:50:53,464 INFO [SettingsFactory] Scrollable result sets: enabled
    23:50:53,464 INFO [STDOUT] 23:50:53,464 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
    23:50:53,464 INFO [STDOUT] 23:50:53,464 INFO [SettingsFactory] Connection release mode: auto
    23:50:53,474 INFO [STDOUT] 23:50:53,474 INFO [SettingsFactory] Maximum outer join fetch depth: 2
    23:50:53,474 INFO [STDOUT] 23:50:53,474 INFO [SettingsFactory] Default batch fetch size: 1
    23:50:53,474 INFO [STDOUT] 23:50:53,474 INFO [SettingsFactory] Generate SQL with comments: disabled
    23:50:53,474 INFO [STDOUT] 23:50:53,474 INFO [SettingsFactory] Order SQL updates by primary key: disabled
    23:50:53,474 INFO [STDOUT] 23:50:53,474 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQu
    eryTranslatorFactory
    23:50:53,484 INFO [STDOUT] 23:50:53,484 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
    23:50:53,494 INFO [STDOUT] 23:50:53,494 INFO [SettingsFactory] Query language substitutions: {}
    23:50:53,494 INFO [STDOUT] 23:50:53,494 INFO [SettingsFactory] Second-level cache: enabled
    23:50:53,494 INFO [STDOUT] 23:50:53,494 INFO [SettingsFactory] Query cache: disabled
    23:50:53,494 INFO [STDOUT] 23:50:53,494 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCachePr
    ovider
    23:50:53,514 INFO [STDOUT] 23:50:53,514 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
    23:50:55,226 INFO [STDOUT] 23:50:55,226 INFO [SettingsFactory] Structured second-level cache entries: disabl
    ed
    23:50:55,256 INFO [STDOUT] 23:50:55,256 INFO [SettingsFactory] Echoing all SQL to stdout
    23:50:55,256 INFO [STDOUT] 23:50:55,256 INFO [SettingsFactory] Statistics: disabled
    23:50:55,256 INFO [STDOUT] 23:50:55,256 INFO [SettingsFactory] Deleted entity synthetic identifier rollback:
    disabled
    23:50:55,256 INFO [STDOUT] 23:50:55,256 INFO [SettingsFactory] Default entity-mode: pojo
    23:50:55,376 INFO [STDOUT] 23:50:55,376 INFO [SessionFactoryImpl] building session factory
    23:50:55,406 INFO [STDOUT] 23:50:55,406 WARN [Configurator] No configuration found. Configuring ehcache from
    ehcache-failsafe.xml found in the classpath: jar:file:/D:/jboss-4.2.2.GA/server/default/deploy/ejb3web.war/WE
    B-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    23:50:58,301 INFO [STDOUT] 23:50:58,301 INFO [SessionFactoryObjectFactory] Factory name: hibernateJNDI
    23:50:58,301 INFO [STDOUT] 23:50:58,301 INFO [NamingHelper] JNDI InitialContext properties:{}
    23:50:58,301 INFO [STDOUT] 23:50:58,301 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: hiber
    nateJNDI
    23:50:58,311 INFO [STDOUT] 23:50:58,301 WARN [SessionFactoryObjectFactory] InitialContext did not implement
    EventContext
    23:50:58,311 INFO [STDOUT] bind hibernateJNDI~~~~~~~~~~~~~~~~~~~~~~~`
    23:50:58,441 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    23:50:59,052 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
    23:50:59,102 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
    23:50:59,192 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)]
    Started in 1m:32s:103ms
    23:51:08,265 INFO [STDOUT] hibernateJNDI===============org.hibernate.impl.SessionFactoryImpl@197d63b
    23:51:08,265 ERROR [STDERR] java.lang.ClassCastException: org.hibernate.impl.SessionFactoryImpl
    23:51:08,265 ERROR [STDERR] at hibernate.HibernateBase.Init(HibernateBase.java:21)
    23:51:08,285 ERROR [STDERR] at hibernate.HibernateBase.Begin(HibernateBase.java:13)
    23:51:08,285 ERROR [STDERR] at ejb3.services.Article.ArticleEJB.getAllArticle(ArticleEJB.java:18)
    23:51:08,285 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    23:51:08,285 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
    9)
    23:51:08,285 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
    l.java:25)
    23:51:08,285 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    23:51:08,285 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    12)
    23:51:08,285 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI
    mpl.java:166)
    23:51:08,285 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept
    orsInterceptor.java:63)
    23:51:08,285 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,285 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran
    sactionScopedEntityManagerInterceptor.java:54)
    23:51:08,285 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,285 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce
    ptor.java:47)
    23:51:08,285 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,285 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
    23:51:08,285 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
    23:51:08,285 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,285 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept
    or.java:95)
    23:51:08,315 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,315 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta
    nceInterceptor.java:62)
    23:51:08,315 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,325 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI
    nterceptor.java:77)
    23:51:08,325 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica
    tionInterceptor.java:110)
    23:51:08,335 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,345 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j
    ava:46)
    23:51:08,345 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,355 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte
    rceptor.java:106)
    23:51:08,365 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,365 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.
    java:240)
    23:51:08,375 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.
    java:210)
    23:51:08,375 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav
    a:84)
    23:51:08,385 ERROR [STDERR] at $Proxy66.getAllArticle(Unknown Source)
    23:51:08,385 ERROR [STDERR] at EJBClient.ClientTest.getAllArticle(ClientTest.java:18)
    23:51:08,395 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_jsp.java:88)
    23:51:08,395 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    23:51:08,425 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    23:51:08,425 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
    373)
    23:51:08,425 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    23:51:08,425 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    23:51:08,425 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    23:51:08,425 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
    nFilterChain.java:290)
    23:51:08,435 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
    hain.java:206)
    23:51:08,445 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j
    ava:96)
    23:51:08,445 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
    nFilterChain.java:235)
    23:51:08,455 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
    hain.java:206)
    23:51:08,465 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
    ava:230)
    23:51:08,505 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
    ava:175)
    23:51:08,505 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc
    iationValve.java:179)
    23:51:08,505 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java
    :84)
    23:51:08,505 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
    7)
    23:51:08,505 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
    2)
    23:51:08,535 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect
    ionValve.java:157)
    23:51:08,535 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
    a:109)
    23:51:08,535 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

    23:51:08,535 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    23:51:08,535 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Htt
    p11Protocol.java:583)
    23:51:08,535 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    23:51:08,545 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
    23:51:08,545 ERROR [STDERR] java.lang.NullPointerException
    23:51:08,555 ERROR [STDERR] at hibernate.HibernateBase.Begin(HibernateBase.java:14)
    23:51:08,555 ERROR [STDERR] at ejb3.services.Article.ArticleEJB.getAllArticle(ArticleEJB.java:18)
    23:51:08,555 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    23:51:08,565 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
    9)
    23:51:08,565 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
    l.java:25)
    23:51:08,575 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    23:51:08,575 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    12)
    23:51:08,605 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI
    mpl.java:166)
    23:51:08,605 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept
    orsInterceptor.java:63)
    23:51:08,605 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:1
    01)
    23:51:08,605 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran
    sactionScopedEntityManagerInterceptor.java:54)
     
    Marshal
    Posts: 67446
    173
    Mac Mac OS X IntelliJ IDE jQuery Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "paul LMC", please check your private messages for an important administrative matter.
     
    He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
      Bookmark Topic Watch Topic
    • New Topic