Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7532113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:21:29+00:00 2026-05-30T05:21:29+00:00

I am using javax.persistence.QueryTimeoutException in my unit tests successfully with OpenJPA 2.1 to test

  • 0

I am using javax.persistence.QueryTimeoutException in my unit tests successfully with OpenJPA 2.1 to test my code. I am using Java 1.6 and I am not pointing to any JavaEE libs in my ant build script.

However, my customer says he can’t compile because QueryTimeoutException is JavaEE 6.

How can this work for me without pointing to JavaEE.jar and not work for him? How do I separate JavaSE 1.6 from JavaEE 1.6 so I can reproduce this issue?

My customer didn’t provide additional detail. In my unit tests, I am doing:

import javax.persistence.QueryTimeoutException;

and then using EasyMock like:

EasyMock.expect(query.getResultList()).andThrow(new QueryTimeoutException("expected"));

My java/javac version is 1.6.0_29-b11

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:21:31+00:00Added an answer on May 30, 2026 at 5:21 am

    What are you using for the OpenJPA lib? If you use the openjpa-all-2.1.1.jar, that has the javax.persistence.* APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a newbie in hibernate, I am using @javax.persistence.NamedNativeQuery to resolve my stored
I'm using java persistence to save a list of entities that are associated to
I am using GAE(Java) with JDO for persistence. I have an entity with a
I'm currently developping an application in java using Hibernate as a persistence manager and
I want to do AES CBC encryption in Java. I'm using javax.crypto . After
I am using Hibernate to persist this bean. import javax.persistence.*; @Entity public class Person
I have a persistence.xml file using JDBC, working fine, but the code updates the
When I execute the following code in scala REPL: javax.persistence.Persistence.createEntityManagerFactory(manager1) I get javax.persistence.PersistenceException: No
I am having an issue with creating queries with javax.persistence.criteria.CriteriaBuilder. I am using EclipseLink
I have the following simple entity: package net.plus.msodb.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.