Results 1 to 6 of 6

Thread: log4j

  1. #1
    haj1st is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Question log4j

    hi every body ,
    i am working with myeclipse ,
    and i'm working on hibernate ,
    as you know my eclipse automaticaly connects to data base,
    i connected it and when using session and putting data in data base,
    i get this log4j error,
    what is this exactly?!?
    and also i wanted to know about reverse engineering....

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Hi, Can you show stack trace exceptions?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    haj1st is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    here :
    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" org.hibernate.MappingException: Unknown entity: sql.test.Message
    at org.hibernate.impl.SessionFactoryImpl.getEntityPer sister(SessionFactoryImpl.java:628)
    at org.hibernate.impl.SessionImpl.getEntityPersister( SessionImpl.java:1366)
    at org.hibernate.event.def.AbstractSaveEventListener. saveWithGeneratedId(AbstractSaveEventListener.java :121)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.saveWithGeneratedOrRequestedId(DefaultSaveO rUpdateEventListener.java:210)
    at org.hibernate.event.def.DefaultSaveEventListener.s aveWithGeneratedOrRequestedId(DefaultSaveEventList ener.java:56)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.entityIsTransient(DefaultSaveOrUpdateEventL istener.java:195)
    at org.hibernate.event.def.DefaultSaveEventListener.p erformSaveOrUpdate(DefaultSaveEventListener.java:5 0)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventLi stener.onSaveOrUpdate(DefaultSaveOrUpdateEventList ener.java:93)
    at org.hibernate.impl.SessionImpl.fireSave(SessionImp l.java:563)
    at org.hibernate.impl.SessionImpl.save(SessionImpl.ja va:551)
    at org.hibernate.impl.SessionImpl.save(SessionImpl.ja va:547)
    at sql.test.Main.main(Main.java:16)
    Last edited by haj1st; 01-22-2011 at 05:48 PM.

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    You have mistake in mapping in model hibernate.
    Do you use xml or annotation? Can you show your code?
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    haj1st is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    i thought my eclipse does the mapping automaticaly,
    doesnt it?
    i'm new to hibernate and i dont know exactly how does it connect , i just want to use it and i want a quick way to connect it,can you help me?!

  6. #6
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

Similar Threads

  1. Replies: 1
    Last Post: 09-20-2010, 08:32 AM
  2. log4j
    By swapna_d in forum New To Java
    Replies: 7
    Last Post: 08-04-2010, 12:23 AM
  3. Regarding Log4j
    By sidiq in forum New To Java
    Replies: 0
    Last Post: 04-07-2008, 07:35 PM
  4. Log4j
    By chakri in forum New To Java
    Replies: 1
    Last Post: 02-08-2008, 10:15 PM
  5. Problems using log4j
    By fred in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 03:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •