facebook

Error opening HQL editor

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #253039 Reply

    ledelste
    Member

    I got the following stack trace when trying to open an HQL editor from the context menu opened from my Eclipse project. I’m running Eclipse 3.2RC6, MyEclipse 5.0M1, JDK1.5, Oracle using ojdbc14.jar. The project in question was around for a while so I have added Hibernate nature but did not add the libraries through MyEclipse, and only begrudgingly allowed it to generate a session factory class for me.

    eclipse.buildId=I20060526-0010
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    Error
    Fri Jun 02 12:33:48 PDT 2006

    java.lang.NullPointerException
    at oracle.gss.util.NLSLocale.getNLSLanguage(NLSLocale.java:675)
    at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(T4CTTIoauthenticate.java:787)
    at oracle.jdbc.driver.T4CTTIoauthenticate.<init>(T4CTTIoauthenticate.java:157)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:294)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:348)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
    at org.hibernate.console.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:23)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
    at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:267)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:70)
    at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:262)
    at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildSessionFactory(MEConsoleConfiguration.java:209)
    at org.hibernate.eclipse.console.actions.MERefreshCCAction.buildSessionFactory(MERefreshCCAction.java:113)
    at org.hibernate.eclipse.console.actions.MERefreshCCAction$1.run(MERefreshCCAction.java:95)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

    #253214 Reply

    Haris Peco
    Member

    Hi,
    You have problems with NLS (languages)
    Try download oracle jar for languages support ojdbc14_g.jar or set english locale
    with next options in eclipse
    -vmargs -Duser.language=en

    Best regards

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error opening HQL editor

You must be logged in to post in the forum log in