Problems when trying to get a connection

Hi, i'm doing some tests with Hibernate but i'm getting an error when Hibernate tries to get a connection from a pooled datasource.
Here is my session factory configuration:
  <session-factory>
    <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
    <property name="connection.datasource">jdbc/CORE_DS</property>
    <property name="dialect">org.hibernate.dialect.SQLServerDialect</property>       
  </session-factory>
I created a jdbc2.0 datasource called jdbc/CORE_DS
This is the error i'm getting:
     java.lang.ExceptionInInitializerError
     at com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)
     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:324)
     at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
     at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:135)
     at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:296)
     at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
     at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: java.lang.ExceptionInInitializerError
     at test.util.HibernateUtil.<clinit>(HibernateUtil.java:22)
     at test.vo.EventManager.listEvents(EventManager.java:41)
     at test.ejb.EventHandlerBean.getEvents(EventHandlerBean.java:54)
     at test.ejb.EventHandlerObjectImpl0.getEvents(EventHandlerObjectImpl0.java:204)
     at test.ejb.EventHandlerObjectImpl0p4_Skel.dispatch(EventHandlerObjectImpl0p4_Skel.java:119)
     at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
     ... 8 more
Caused by: java.lang.NullPointerException
     at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:145)
     at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:312)
     at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:231)
     at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
     at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
     at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
     at test.util.HibernateUtil.<clinit>(HibernateUtil.java:18)
     ... 13 more
any ideas?
Thanks,
Juan Manuel
Message was edited by: Juan Sanmarco

Hi we are having a similar issue, could you please specify how you solved this?
Thanks
regards
Vincenzo

Similar Messages

  • Not connecting when trying to get email

    I have just got a problem when trying to get email. The account is Ok and connected, but next to the button Get new email (under button email) my account is grey.
    Mail program is getting mail when starting the computer. I have marked that program should get mail every five minutes, but it is not working. Neither when I am trying to get it manual.
    Tried to make a new identical account (IMAP instead of POP) and then it worked. I am though afraid of deleting my old account and lose all my old emails.
    Have repaired authorities.
    What has gone wrong?

    Please clarify -- the Get New Mail button in the toolbar of the Mail window is gray, or also if you click on Mailbox in the menubar, and choose Get New Mail, then this account is not available? But there are no symbols beside the Inbox for this account?
    Ernie
    Message was edited by: Ernie Stamper

  • I got problem when trying to contact my iphone 4 using facetime,it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

    i got problem when trying to call my iphone 4 using facetime with my Macbook Pro 13',it did ringing,but my iphone 4 did not receive that call as if nothing happen.But,when the call ended,that call appeared in the missed call list.fyi both are connected to internet.Help!! thank you in advance

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • On my Ipad I seem to be having a problem when trying to play YouTube videos embedded on Facebook.   When I click the links, I get a message saying: "Flash Player upgrade required."   and under it, it says, "You need to download and install the lastes vers

    On my Ipad I seem to be having a problem when trying to play YouTube videos embedded on Facebook.
    When I click the links, I get a message saying: "Flash Player upgrade required."
    and under it, it says, "You need to download and install the lastes version of Adobe Flash Player to view this content"
    and also a green button saying "Get Flash Player"
    I get this if using chrome or safari .
      I can go direct to YouTube it just works.

    The Facebook link to the video is accessing an Adobe Flash video.  Unfortunately, no iOS devices can play flash. 

  • HT204266 cannot connect to itunes store when trying to get app updates

    Why do I get this message...."cannot connect to itunes store" when trying to get app updates.  I have no trouble connecting to store in other area.

    Try this http://support.apple.com/kb/TS1702

  • When trying to get updates it says that I am not conntected and to check my network.  How do I fix this?

    When trying to get an update, a message reads that it cannot connect and to check the network setting.  I can get the internet, so I dont know how the fix this. 

    Temporarily turn off the anti-virus and firewall software on your PC before attempting to get the update

  • Problem when trying to print standart invoice crystal report for SAP

    Hi All, I have the following problem when trying to print a system invoice report in crystal reports for SAP
    I pass params and load the report using this code
    Private Sub DisplayThreadReportSeq()
    Dim oView As New frmViewReport
    Dim strReportPath As String = ""
    Dim strParamName As String = ""
    Try
    Dim CR As New ReportDocument
    CR.Load(oReport.CrstPath)
    ' Declare the parameter related objects.
    SetReportValues(CR)
    Dim crParameterDiscreteValue As ParameterDiscreteValue
    Dim crParameterFieldDefinitions As ParameterFieldDefinitions
    Dim crParameterFieldLocation As ParameterFieldDefinition
    Dim crParameterValues As ParameterValues
    ' Get the report's parameters collection.
    For Each oPar As cslParam In oReport.Params
    crParameterFieldDefinitions = CR.DataDefinition.ParameterFields
    crParameterFieldLocation = crParameterFieldDefinitions.Item(oPar.ParName)
    crParameterValues = crParameterFieldLocation.CurrentValues
    crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
    crParameterDiscreteValue.Value = oPar.Value
    crParameterValues.Add(crParameterDiscreteValue)
    crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
    Next
    If pPrint Then
    If oReport.Printer "" Then
    CR.PrintOptions.PrinterName = oReport.Printer
    End If
    CR.PrintToPrinter(IIf(oReport.Copies = "", 1, oReport.Copies), False, 0, 0)
    SBO_Application.StatusBar.SetText("Printed Document Successfully", SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
    Else
    oView.Text = pReport
    oView.TopMost = True
    oView.Viewer.ReportSource = CR
    oView.Hide()
    oView.ShowDialog()
    End If
    Catch ex As Exception
    Util_GenErrorLog("DisplayReport", ex)
    End Try
    End Sub
    This code works fine when the report invoke to print is developed in crystal reports version for .net 2008 or .net 2005
    when trying to print a report standart getting from SAP BO 8.8.1 using this code I getting the following error:
    Error in File C:UsersecombaAppDataLocalTemp5ARInvoiceStandartSap {300B9A68-DF05-4D7B-8F3B-1670A4493BEE}.rpt:
    Error in formula .
    'Shared numberVar SectionTotalMaxHeght;
    A number, currency amount, boolean, date, time, date-time, or string is expected here.
    This report is the standart report that SAP 8.8.1 includes and works fine on SAP.
    I referenced this dlls CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.CrystalReports.Shared, version 10.2.3600
    How I can get these dll´s version for Crystal Report 2008 for SAP Business one or How I can solve this problem
    thanks in advance,
    Ezequiel.

    Hi Ezequiel,
    You can try to search in SAP Business One Reporting & Printing forum section or post there.
    nd.Q

  • Hi There, I have a problem when trying to print either Email or from a web page.

    Hi There,
    I have a problem when trying to print contents fro either Email's or from web pages, the problem started after i opened Google earth and it down loaded Google Chrome i do not like Google chrome so i removed it from my pc via add and remove programmes since then when i try to print an email i get what looks like the computer settings for writing the email and not the text same for web pages, as anyone come across this problem before i can print any word or spreadsheet documents but problem is with email's and web pages.
    Many Thanks.

    Something changed on your system, possibly when Google Chrome installed. It could  be many things, but what it boils down to, is it needs to go back to the way it was. Either by removing whatever else might still be left from the install, or maybe by reinstalling the printer itself.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • GenericServiceFactory initialization problem when trying to load Web servic

    Hi,
    I am making a Guided procedure that calls a webservice. I have created a new Destination Template and was able to load the webservice definition successfully, but when I test the callable object I created for that same webservice y get the error:
    GenericServiceFactory initialization problem when trying to load Web service model for WSDL.
    Somehow I think there is something wrong with the user authentication. The Destination template has a user and password but somehow I think the callable object test is not using this information at all.
    Can anyone help ?
    Thanks in advance

    Hi Hans,
    Have you verified if you can call any external web service calls from your J2EE engine?  Go into the SOA Management / Global settings (if you are on CE - if you're on 7.0 it's in manage WS desintations).
    Look at your proxy settings and set them like your web browser that enables external calls.  For example, in the SAP network I set my global proxy settings on my local J2EE engine to be:
    Proxy host:  proxy
    Proxy port: 8080
    Exclude list:  *.sap.corp
    Does that make sense - have you verified if your settings are correct for your company?
    Regards
    Ginger

  • Problems when trying to migrate from 6.0 to 6i

    Hi,
    I'm having problems when trying to migrate a Designer 6.0 application to 6i.
    When I get to start the migration after having selected the source application, the process fails immediately after I've pressed the button.
    I'm getting the error: CDR-21244: This process has been aborted and the advice to check the log file. But no log file is created.
    I've read Note 234984.1 which gives two suggestions in this situation: That the ORACLE_HOME environment variable is unset, and that the LOG_DIRECTORY_RAU directory is writeable. Both is fulfilled in my situation. However it seems that the migration procedure tries to start imp - I've noticed a short flash with the command prompt screen - and when I try to start imp manually from the command prompt I get errors. I was able to fix this error by setting ORACLE_HOME and ORA_NLS33. But the defining ORACLE_HOME is "illegal" ref. Note 234984.1. Of course I tried to leave it anyway, but that didn't help neither: The migration still dies a quick and silent dead.
    So now I'm stucked. How can I carry on?
    The source is on version 6.0.3.5.0 running on 8.1.5, and the taget is version 6.5.92.1.9 running on 8.1.7.4.
    Regards, Michael

    The migration from Designer 6.0 to 6i requires careful planning. Please read the migration guide on OTN (http://www.oracle.com/technology/products/designer/index.html) for advice and to assist you with the migration.
    Regards
    Sue

  • Problem when trying to run MD04

    I am experiencing problems when trying to run my MD04 Collective access, for vendor say X & Y.
    I buy many products from these vendors and I therefore need to have access to place these orders anytime of the day (as it can take more than one hour to raise the orders) and it is only allowing me access last thing in the day for some strange reason.
    Please can you look into this - I'm not sure if there is a server issue due to the size of the job, but I must have the ability to undertake this task.
    I tried to limit the selection further but still the problem is not getting solved.
    please tell me what else can be done?
    Thanks in advance.
    Regards,
    Sonal.

    Basically when i am trying to do collective access thru MD04 I am putting plant and vendor.
    the sys is not displaying the stock reqmt list but is getting time out.
    I tried limiting further by putting delivery dates, MRP controller but still it is not working.
    What else can be done?
    Thanks & Regards,
    Sonal

  • Sorry the answer to my previous question did not help....when trying to get app message tells me I do not have acc or its been disabled. Is this because of joint usage of email as my partner has account with iTunes using same email?

    Sorry the answer to my previous question did not help....when trying to get new app installed on iPad  message tells me I do not have acc or its been disabled. Is this because of joint usage of email as my partner has account with iTunes using same email?

    Whatever the reasons are that you think the problem exists, you will not be able to resolve it on your own. Did you see this at the bottom of the support article that I suggested that you read?
    Additional Information
    If the issue persists, you can visit iCloud Support, iTunes Support, Apple Print Products, or contact AppleCare for further assistance.
    You should probably contact iTunes Support.

  • TS1424 When trying to get into apps I keep getting a error message the "cannot verify identity of server" and it's not accepting my Apple ID password. I found something that said I have to accept the new terms and conditions for iCloud  but can't get in

    Getting a verification error when trying to get into the apps,

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

Maybe you are looking for

  • How to embed the needed fonts in a pdf file

    Dear Sir/Mam, We had purchased licenced version of adobe acrobat x pro We are facing issues while embedding the font in the pdf file Please find the below mentioned requirement Requirement: We have a pdf file (template) with some static images and st

  • How can i put the songs on my ipod back into my itunes library?

    Most of the songs in my library have been corrupted, so I need to find a way to put the songs back onto the main library so I can transfer them to my new iPod.  A majority of the songs were downloaded from an older computer that is now broken, or wer

  • Providing date back based on number interval

    Below is a SQL example of what I'm trying to accomplish. The parameter I will be using is what days are available to work on in the format of (0,1,1,1,1,1,0). The first number represents Sunday and the last is Saturday. If the day has a 0 you have to

  • Disabling font tab in InDesign CS5 Control panel

    Hi, Is there any option to disable the Font change option in the InDesign CS5 Control panel. That is the user should not change the font using Control panel. Thanks, Gopal

  • Audio Tracking Suddenly Off

    I'm experiencing a wierdness for the first time in iMovie. I am doing a final edit on a movie and noticing that my audio track has shifted slightly, enough to be noticeable. This was not happening a few weeks ago when I finished my last movie. I am m