Git Product home page Git Product logo

torpedoquery's Introduction

TorpedoQuery

Status

Maven Central license

Simple and powerful query builder for your project. Can be use with any existing Hibernate or JPA application.
Stop wasting your time to maintain complex HQL queries and start today with the new generation of query builder.

Torpedo Query Quick Start Guide

Step 1: Set Up Your Environment

Start by importing the necessary classes from the Torpedo Query library. This will enable you to use the query methods directly.

import static org.torpedoquery.jpa.Torpedo.*;

Step 2: Simple Select Query

A basic query retrieves all columns for the Entity rows. This can be compared to SQL's SELECT *.

Entity entity = from(Entity.class);
org.torpedoquery.jpa.Query<Entity> selectQuery = select(entity);

Step 3: Scalar Queries

Scalar queries return specific columns rather than the entire row. This is useful when you only need particular data points.

Entity entity = from(Entity.class);
org.torpedoquery.jpa.Query<String> scalarQuery = select(entity.getCode());

Step 4: Executing Your Query

After constructing your query, execute it using an EntityManager to retrieve results. Here, we're getting a list of entities.

Entity entity = from(Entity.class);
org.torpedoquery.jpa.Query<Entity> selectQuery = select(entity);
List<Entity> entityList = selectQuery.list(entityManager);

Step 5: Adding Conditions

Queries can be filtered using conditions. Here, we're querying entities with a specific code.

Entity entity = from(Entity.class);
where(entity.getCode()).eq("mycode");
org.torpedoquery.jpa.Query<Entity> conditionalQuery = select(entity);

The .eq("mycode") is equivalent to SQL's WHERE code = 'mycode'.

Step 6: Joining Entities

Torpedo Query supports joining tables. Here's how you can create an inner join between Entity and its associated SubEntity.

Entity entity = from(Entity.class);
SubEntity subEntity = innerJoin(entity.getSubEntities());
org.torpedoquery.jpa.Query<String[]> joinQuery = select(entity.getCode(), subEntity.getName());

The result will be a combination of entity.getCode() and subEntity.getName() for each matching row.

Step 7: Grouping Conditions

Complex conditions can be grouped together using logical operations like and & or.

Entity fromEntity = from(Entity.class);
OnGoingLogicalCondition groupedCondition = condition(fromEntity.getCode()).eq("test")
                                               .or(fromEntity.getCode()).eq("test2");
where(fromEntity.getName()).eq("test").and(groupedCondition);
Query<Entity> groupedSelect = select(fromEntity);

Here, we're selecting entities where the name equals "test" and the code is either "test" or "test2".


Remember, always refer to the official documentation of Torpedo Query for a comprehensive understanding and best practices. This guide is meant to get you started quickly, but the library offers much more flexibility and depth.

How to Improve It

Create your own fork of xjodoin/torpedoquery

To share your changes, submit a pull request.

Don't forget to add new units tests on your change.

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

torpedoquery's People

Contributors

bitdeli-chef avatar chenzhang22 avatar dependabot[bot] avatar ebelanger avatar uweschaefer avatar xjodoin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torpedoquery's Issues

Support @MapKey annotation

It would be great to have this feature supported :-)

@mapkey(name = "languageCode")//$NON-NLS-1$
@accesstype(value = "field")
public Map<String, ProductDescription> getDescription()
{
return description;
}

to result something like (or if you find something better):

INNER JOIN Entity.description description with description.languageCode = :lang

Thanks!

Multiple OnGoingLogicalConditions in where()?

Hi, kudos for a great HQL framework!
I have been using Torpedo Query for about 6 months now, love it.

I'm trying to build my query based on a filter class.

public List<SomeObject> findByFilter(SomeFilter filter) {
    SomeObject entity = from(SomeObject.class);
    where(and(filter(entity, filter)));
    return select(entity).setFirstResult(filter.getFirstResult()).setMaxResults(filter.getMaxResults()).list(entityManager);
}
private List<OnGoingLogicalCondition> filter(SomeObject entity, SomeFilter filter) {
    List<OnGoingLogicalCondition> conditions = new ArrayList<OnGoingLogicalCondition>();

    if(filter.getCode() != null) {
        conditions.add(condition(upper(entity.getCode())).like().any(filter.getCode().toUpperCase()));
    }

    if(filter.getName() != null) {
        conditions.add(condition(upper(entity.getName())).like().any(filter.getName().toUpperCase()));
    }

    return conditions;
}

First of all, this code (obviously) won't compile. It's only an example.

Is there any way I could solve this with Torpedo Query? I've been looking through documentation and tests, but can't find anything matching my case.

Also, the "condition(upper(entity.getXX()).like()" won't work because it resolves to ValueOnGoingCondition. Is there a way around this? (fixed? #26)

Best regards
Petter Helset

BigDecimal problème

en essayant de faire une somme sur un BigDecimal, Torpedo lance l'exception Caused by: java.lang.NoSuchMethodException: org.javassist.tmp.java.math.BigDecimal_$$_javassist_1652.()

select(sum(fromObject.getBigDecimalValue()));

ClassCastException in from()

Hi, I'm experiencing this obscure error.

java.lang.RuntimeException: java.lang.ClassCastException: solve.campaign.service.domain.JpaCampaign_$$_javassist_13 cannot be cast to javassist.util.proxy.Proxy
    at org.torpedoquery.jpa.Torpedo.from(Torpedo.java:124)
Caused by: java.lang.ClassCastException: solve.campaign.service.domain.JpaCampaign_$$_javassist_13 cannot be cast to javassist.util.proxy.Proxy
    at org.torpedoquery.jpa.internal.utils.ProxyFactoryFactory.createProxy(ProxyFactoryFactory.java:87)
    at org.torpedoquery.jpa.Torpedo.from(Torpedo.java:114)

I'm not able to reproduce this in any of my tests.
A wild guess would be some classloader problems at runtime.

JpaCampaign entity = from(JpaCampaign.class);

Any suggestions?

How to call custom register function?

Hi,

I defined a function into MySQL Dialect as below:

registerFunction("MATCH", new SQLFunctionTemplate(StandardBasicTypes.DOUBLE, "MATCH(?1) AGAINST (?2 IN BOOLEAN MODE)"));

How to call above function as a condition in WHERE cause? for example:

Entity from = from(Entity.class);
Function func = function("MATCH", Double.class, from.getDescription());
where(func).gt(0);

Is it correct?

Complex query example with join

Throws NPE when attempted thus:

public static long getTotalUsersCountTorpedo()
{
EmailAddress email = from(EmailAddress.class);
MailServer mailServer = innerJoin(email.getMailServer());
Customer customer = innerJoin(mailServer.getCustomer());
with(customer.getCustomerId()).eq(Secured.getAdmin().getCustomerId()); // this line throws the exception at org.torpedoquery.jpa.internal.TorpedoMagic.java line 32
System.out.println(" Q U E R Y = [" + select(count(email)).getQuery() + "]");
return select(count(email)).get(JPA.em());
}

EmailAddress, MailServer, Customer are hibernate entities

In the debugger, stopped BEFORE the excepting line shows the query string as -

[select count(*) from EmailAddress emailAddress_0 inner join emailAddress_0.mailServer mailServer_1 inner join mailServer_1.customer customer_2 with]

Is there a way to do a where on a class type

given hierarchy
E reference A
B extends A
C extends A
D extends A

Is there a way to create a query that will scope on a subclass

select * from E e
inner join A a
where a.class = B or a.class = C

tried doing where(a.getClass) .eq(B.class)... but doesn't compile

(Kotlin) Can classes be final?

Hi!
I'm trying to use your library. Syntax is very comfortable, but it's a bit hard to use with Kotlin language. My code:

data class Player(
    var id: Long? = null,
    var title: String? = null,
    var date: Date? = null
)

In Kotlin you can use data classes. But in this case classes are final. So I can't use data classes:

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: ru.egslava.db.hbm.Player is final
at org.torpedoquery.jpa.Torpedo.from(Torpedo.java:124)

Is it fixable? :-)

Thank you for the great library! :-)

Ordre dans le select

Quand dans un select je sélectionne un champ suivi d'une fonction ça ne fonctionne pas, pourtant l'inverse fonctionne.

Ex: select(count(countVariable), join.getId) --> fonctionne

select(join.getId(), count(countVariable)) --> exception levée

Caused by: java.util.NoSuchElementException
at java.util.LinkedList$ListItr.previous(Unknown Source)
at java.util.LinkedList$DescendingIterator.next(Unknown Source)
at com.netappsid.jpaquery.internal.ArrayCallHandler.handleCall(ArrayCallHandler.java:48)
at com.netappsid.jpaquery.internal.ArrayCallHandler.handleCall(ArrayCallHandler.java:1)
at com.netappsid.jpaquery.internal.FJPAMethodHandler.handle(FJPAMethodHandler.java:94)
at com.netappsid.jpaquery.FJPAQuery.select(FJPAQuery.java:97)

Bug with between and MathOperationFunction

generateParameter always returns null, which causes a NullPointerException in this scenario:

@test
public void testBetweenBug()
{
Entity from = from(Entity.class);
where(operation(from.getBigDecimalField()).subtract(from.getBigDecimalField2())).between(constant(BigDecimal.ZERO),
constant(BigDecimal.valueOf(Double.MAX_VALUE)));

org.torpedoquery.jpa.Query<BigDecimal> select = select(sum(operation(from.getBigDecimalField()).subtract(from.getBigDecimalField2())));

assertEquals("select sum(entity_0.bigDecimalField - entity_0.bigDecimalField2) from Entity entity_0 and entity_0.bigDecimalField - entity_0.bigDecimalField2) > 0", select.getQuery());

}

Is there any way to fetch child class?

I have two classes as below:

public class User {
    private List<Project> projects = new ArrayList<>();
}

public class Project {
    // do something here
}

In repository layer, is there anyway to load an user with its collection similar to fetch join in JQL?

Feature: Support operations in where clause

gt/gte/lt/lte should be supported

@test
public void testSumInOperationAndWhereClause()
{
Entity from = from(Entity.class);
where(operation(from.getBigDecimalField()).subtract(from.getBigDecimalField2())).gt(constant(BigDecimal.ZERO));

org.torpedoquery.jpa.Query<BigDecimal> select = select(sum(operation(from.getBigDecimalField()).subtract(from.getBigDecimalField2())));
assertEquals("select sum(entity_0.bigDecimalField - entity_0.bigDecimalField2) from Entity entity_0 and (entity_0.bigDecimalField - entity_0.bigDecimalField2) > 0", select.getQuery());

}

Bug with distinct operation

Here is a simple test case where getId() returns a Serializable:

@test
public void testDistinct()
{
Order fromOrder = from(Order.class);
Query select = select(distinct(fromOrder.getId()));
}

java.lang.ClassCastException: org.javassist.tmp.java.io.Serializable_$$_javassist_1035 cannot be cast to org.torpedoquery.jpa.internal.Proxy
at org.torpedoquery.jpa.Torpedo.select(Torpedo.java:180)
at org.torpedoquery.jpa.Torpedo.select(Torpedo.java:151)

Tests

Ajout d'outils à l'API afin de pouvoir tester nos TorpedoQuery

Project the results to a specific class

Hi.

Congratulations for your work, with your solution I need to write less code than other alternatives like Querydsl, besides do not generate intermediate classes.

However I miss some features like fetch joins or being able to project the results to a specific class. Something like this:

Entity entity = from(Entity.class);
SubEntity subEntity = innerJoin(entity.getSubEntity());

List[MixEntityDTO] listDTOs = select (create (MixEntityDTO.class, entity.getCode(), subEntity.getCode()).list (entityManager);

PD. I put [ ] in listDTOs definition because the simbols: less and major causes the code in between these characters not see.

Thanks in advance.

CoalesceFunction cannot be cast to java.math.BigDecimal

OrderDetailToShip orderDetailToShipQuery = from(OrderDetailToShip.class);
ShippingDetail shippingDetailQuery = leftJoin(orderDetailToShipQuery.getShippings());
OrderDetail orderDetailQuery = rightJoin(orderDetailToShipQuery.getOrderDetail());
SaleTransaction orderQuery = innerJoin(orderDetailQuery.getSaleTransaction());

where(orderDetailQuery.getProduct()).eq(product).and(orderQuery.getCompany()).eq(company);

groupBy(orderDetailQuery.getId(), orderDetailQuery.getQuantityConvertedValue(), shippingDetailQuery.getQuantityConvertedValue()).having(
orderDetailQuery.getQuantityConvertedValue()).gt(coalesce(sum(shippingDetailQuery.getQuantityConvertedValue()), constant(BigDecimal.ZERO)));

Query select = select(sum(orderDetailQuery.getQuantityConvertedValue()));

List sumByDetail = select.list(manager);

Problèmes de prise en compte des conditions après un instruction Having

Dans le cas où une condition est ajoutée après une instruction HAVING, la condition n'est pas pris en compte.

Ex. having(anyFunction).gte(anyFunction).or(condition)
Dans ce cas-ci, le or ne sera jamais pris en compte.


Dans le cas où l'ont inverse les conditions, il est impossible d'utiliser le or.

Ex. having(condition).or(anyFunction).gte(anyFunction);

Critère Where Clause

J'aimerais pouvoir faire un where clause sur 2 colonnes de la même table.

where(proxy.getQuantity()).eq(proxy.getQuantityAchetée())

Order of multiple "Order By" functions not respected

There seems to be a problem with the ordering of the "Order By"s when mixing them for an entity and its joined entities.

Example :
OrderDetail orderDetail = (OrderDetail.class);
Order order = innerJoin(orderDetail.getSaleTransaction());
orderBy(order.getDate(), orderDetail.getSequence());
select(orderDetail.getId());

The resulted query will order by orderDetail.getSequence() before ordering by order.getDate(). The problem appears to be in the QueryBuilder's appendOrderBy() method, the "order by" of the query builder is considered before the "order by" of the joins.

Note that I am testing with the 1.4.1 version, but the code in the recent versions doesn't appear to have changed.

IllegalArgumentException: You cannot have more than one WhereClause by query

Users entityForCount = from(Users.class);
OnGoingLogicalCondition condition = condition(entityForCount.getUsername()).eq("Admin");
where(condition);
Query countQuery = select(count(entityForCount));
System.out.println("totalcount:"+countQuery.get(JPA.em()));

    Users entity = from(Users.class);
    OnGoingLogicalCondition condition2 = condition(entityForCount.getUsername()).eq("Admin");
    Query <Users>query = select(entity);
    where(condition2);
    System.out.println("totalRecord:"+query.list(JPA.em()).size());

hi, this is my program. And I get the following exception,
[IllegalArgumentException: You cannot have more than one WhereClause by query].

Is there any way to allow query twice in a session ?

Union

Any way to do a union operation?

Not all named parameters have been set

Bug reported between 1.2.1 and 1.3.1

@OverRide
public Map<Serializable, Long> findNumberOfReceivedPurchase(List orderIds)
{
List<Object[]> list = orderDashBoardQueryBuilder.generateNumberOfReceivedPurchaseQuery(orderIds).list(getEntityManager());

final Map<Serializable, Long> numberOfRequisitionMap = generateMap(list);
return numberOfRequisitionMap;

}

@OverRide
public Query<Object[]> generateNumberOfReceivedPurchaseQuery(List orderIds)
{

    final OrderDetail fromOrderDetail = from(OrderDetail.class);
    final PurchaseRequisition innerJoinPurchaseRequisition = innerJoin(fromOrderDetail.getPurchaseRequisitions());
    final PurchaseOrderDetail leftJoinpurchaseOrderDetail = leftJoin(innerJoinPurchaseRequisition.getPurchaseOrderDetail());
    final PurchaseOrderDetailToReceive innerJoinPurchaseOrderDetailToReceive = innerJoin(leftJoinpurchaseOrderDetail.getPurchaseOrderDetailToReceive());
    final ReceivingDetail innerJoinReceivingDetail = innerJoin(innerJoinPurchaseOrderDetailToReceive.getReceptions());
    final Receiving innerJoinReceiving = innerJoin(innerJoinReceivingDetail.getReceiving());
    final DocumentStatus innerJoindocumentStatus = innerJoin(innerJoinReceiving.getDocumentStatus());
    final Order innerJoinOrder = innerJoin(fromOrderDetail.getSaleTransaction());

    final OnGoingLogicalCondition condition = condition(innerJoinPurchaseOrderDetailToReceive.isForcedComplete()).eq(true);

    final OnGoingLogicalCondition where = where(innerJoinReceiving.isReversed()).eq(false);

    where.and(innerJoinReceiving.getReverse()).isNull();
    where.and(innerJoindocumentStatus.getInternalId()).neq(DocumentStatus.CANCEL);

    groupBy(innerJoinOrder.getId()).having(sum(innerJoinReceivingDetail.getQuantityConvertedValue()))
            .gte(sum(innerJoinPurchaseRequisition.getQuantityConvertedValue())).or(condition);

    Query<Object[]> select = select(count(innerJoinReceivingDetail), innerJoinOrder.getId());

    return select;
}

STACK TRACE

Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryException: Not all named parameters have been set: [forcedComplete_10] [select count(), order_1.id from OrderDetail orderDetail_0 inner join orderDetail_0.purchaseRequisitions purchaseRequisition_2 left join purchaseRequisition_2.purchaseOrderDetail purchaseOrderDetail_3 inner join purchaseOrderDetail_3.purchaseOrderDetailToReceive purchaseOrderDetailToReceive_4 inner join purchaseOrderDetailToReceive_4.receptions receivingDetail_5 inner join receivingDetail_5.receiving receiving_6 inner join receiving_6.documentStatus documentStatus_7 inner join orderDetail_0.saleTransaction order_1 where receiving_6.reversed = :reversed_8 and receiving_6.reverse is null and documentStatus_7.internalId <> :internalId_9 group by order_1.id having sum(receivingDetail_5.quantityConvertedValue) >= sum(purchaseRequisition_2.quantityConvertedValue) or ( purchaseOrderDetailToReceive_4.forcedComplete = :forcedComplete_10 )]
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:601)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:76)
at org.torpedoquery.jpa.internal.QueryBuilder.list(QueryBuilder.java:257)
at com.netappsid.erp.dashboard.server.order.utils.mapmanager.OrderDashBoardMapManager.findNumberOfReceivedPurchase(OrderDashBoardMapManager.java:99)
at com.netappsid.erp.dashboard.server.order.utils.mapmanager.OrderDashBoardDataMapManager.generateDataInMaps(OrderDashBoardDataMapManager.java:76)
at com.netappsid.erp.dashboard.server.order.services.beans.OrderDashBoardServicesBean.generateOrderDashBoard(OrderDashBoardServicesBean.java:91)
... 11 more
Caused by: org.hibernate.QueryException: Not all named parameters have been set: [forcedComplete_10] [select count(
), order_1.id from OrderDetail orderDetail_0 inner join orderDetail_0.purchaseRequisitions purchaseRequisition_2 left join purchaseRequisition_2.purchaseOrderDetail purchaseOrderDetail_3 inner join purchaseOrderDetail_3.purchaseOrderDetailToReceive purchaseOrderDetailToReceive_4 inner join purchaseOrderDetailToReceive_4.receptions receivingDetail_5 inner join receivingDetail_5.receiving receiving_6 inner join receiving_6.documentStatus documentStatus_7 inner join orderDetail_0.saleTransaction order_1 where receiving_6.reversed = :reversed_8 and receiving_6.reverse is null and documentStatus_7.internalId <> :internalId_9 group by order_1.id having sum(receivingDetail_5.quantityConvertedValue) >= sum(purchaseRequisition_2.quantityConvertedValue) or ( purchaseOrderDetailToReceive_4.forcedComplete = :forcedComplete_10 )]
at org.hibernate.impl.AbstractQueryImpl.verifyParameters(AbstractQueryImpl.java:315)
at org.hibernate.impl.AbstractQueryImpl.verifyParameters(AbstractQueryImpl.java:299)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:98)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
... 15 more

Order By Using Functions

Hi Xavier,

First of all, thanks torpedoquery is really awesome! However I am having a hard time sorting on multiple potentially empty columns

SELECT
    COALESCE([individual].[last_name], [individual].[first_name], [enterprise].[registered_name], [enterprise].[trade_name]) AS [customer_name]
        from customer
        LEFT JOIN individual individual on individual.id = customer.id
        LEFT JOIN enterprise enterprise ON enterprise.id = customer.id

order by COALESCE(individual.last_name, individual.first_name, enterprise.registered_name, enterprise.trade_name)
/* OR Simply */
order by customer_name

In torpedo I am able to declare and use the following function in the select statement, but using it in the orderyBy causes a null pointer exception

final Customer customer = from(Customer.class);
final Individual individual = extend(customer, Individual.class);
final Enterprise enterprise = extend(customer, Enterprise.class);
final Function<String> sortingName = coalesce(enterprise.getTradeName(), enterprise.getRegisteredName(), individual.getLastName(), individual.getFirstName());

//This works
select(sortingName);

//This throws a NullPointerException
orderBy = asc(sortingName);
Caused by: java.lang.NullPointerException
        at org.torpedoquery.jpa.Torpedo$3.handle(Torpedo.java:702)
        at org.torpedoquery.jpa.Torpedo$3.handle(Torpedo.java:698)
        at org.torpedoquery.jpa.internal.handlers.AbstractCallHandler.handleValue(AbstractCallHandler.java:63)
        at org.torpedoquery.jpa.internal.handlers.ArrayCallHandler.handleCall(ArrayCallHandler.java:46)
        at org.torpedoquery.jpa.internal.handlers.ArrayCallHandler.handleCall(ArrayCallHandler.java:26)
        at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.handle(TorpedoMethodHandler.java:107)
        at org.torpedoquery.jpa.Torpedo.orderBy(Torpedo.java:697)
        at com.sti.uciscore.transaction.report.bean.ReportLoadServicesBean.createBillingConsumptionExceptionReportQuery(ReportLoadServicesBean.java:131)
        at com.sti.uciscore.transaction.report.bean.ReportLoadServicesBean.generateReport(ReportLoadServicesBean.java:74)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
        at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)
        at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
        ... 76 more

Is there a way to achieve this? (for instance reproducing the SQL select (expression) as alias order by alias)

Thanks

Appels successifs

Je ne sais pas s'il y a des états statiques, mais quand je call de manière subséquentes mes requêtes j'obtiens l'un des 2 stacks suivant :

java.lang.RuntimeException: void is final
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:344)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:488)
at javassist.util.proxy.ProxyFactory.create(ProxyFactory.java:473)
at com.netappsid.jpaquery.internal.JoinHandler.handleCall(JoinHandler.java:50)
at com.netappsid.jpaquery.internal.FJPAMethodHandler.handle(FJPAMethodHandler.java:94)
at com.netappsid.jpaquery.FJPAQuery.innerJoin(FJPAQuery.java:110)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardQueryBuilder.generateNumberOfRequisitionQuery(OrderDashBoardQueryBuilder.java:155)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardMapManager.findNumberOfRequisition(OrderDashBoardMapManager.java:111)
at com.netappsid.erp.server.orderdashboard.services.beans.OrderDashBoardServicesBean.generateOrderDashBoard(OrderDashBoardServicesBean.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.netappsid.mob.ejb3.internal.InvocationHandler$InvocationContextImpl.proceed(InvocationHandler.java:97)
at com.netappsid.mob.ejb3.internal.InvocationHandler.call(InvocationHandler.java:173)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javassist.CannotCompileException: void is final
at javassist.util.proxy.ProxyFactory.make(ProxyFactory.java:526)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:335)
... 21 more

ou

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.netappsid.mob.ejb3.internal.InvocationHandler$InvocationContextImpl.proceed(InvocationHandler.java:97)
at com.netappsid.mob.ejb3.internal.InvocationHandler.call(InvocationHandler.java:173)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardQueryBuilder.generateNumberOfPReceivedPurchaseQuery(OrderDashBoardQueryBuilder.java:188)
at com.netappsid.erp.server.orderdashboard.utils.OrderDashBoardMapManager.findNumberOfReceivedPurchase(OrderDashBoardMapManager.java:129)
at com.netappsid.erp.server.orderdashboard.services.beans.OrderDashBoardServicesBean.generateOrderDashBoard(OrderDashBoardServicesBean.java:76)
... 11 more

parfois ça passe d'autre ça ne passe pas. Semble être une condition de course. Ce qui est bizarre c'est que le null pointer semble être sur un proxy généré et en plus jamais le même.

Create OngoingLogicalCondition

class Condition{
public OnGoingLogicalCondition getKeywordLikeCondition(Game entity, String keyword){
return condition(lower(entity.getTitle())).like().any(keyword)
.or(entity.getKeyphrase()).like().any(keyword);
}
}

hi, this is my code.

I would like to create a method and return type as OnGoingLogicalCondition. My issue is when I use lower function to the title field, and the condition force to return as ValueOnGoingCondition interface. Made me unable to use like() function onward. is anyway able to cover this condition by torpedo ?

WIki acces

Hi,

Noticed I can edit your wiki, might want to change your settings.

Have a good day!

Subqueries

Hi, I would like to create this kind of HQL queries:

SELECT a  FROM A a
WHERE  (SELECT sum(b.weight) FROM a.childs as b) > 10

is it possible with torpedoquery?

Thks in advance!

Coalesce vs Sum generic Issue

here are the test cases:

Seems to be related to the fact coalesce only support values OR function, not combination of both
@test
public void testCoalesceSumFunction_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
// Ok if Function does not have BigDecimal generic type
Function coalesce = coalesce(sum, from.getBigDecimalField2());
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}

The problem seems related to the way java handles the variable parameters
@test
public void testCoalesceSumFunctions_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
Function sum2 = sum(from.getBigDecimalField2());
// Type safety: A generic array of Function is created for a varargs parameter
Function coalesce = coalesce(sum, sum2);
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}

How to select a POJO with a JPQL query

The entity projection doesn’t fit my use case. Is there an easy option to select POJOs instead of entities?

Like this:

TypedQuery<BookValue> q = em.createQuery(
      "SELECT new org.thoughts.on.java.model.BookValue("
      + "b.id, b.title, b.publisher.name) FROM Book b "
      + "WHERE b.id = :id", BookValue.class);
q.setParameter("id", 1L); BookValue b = q.getSingleResult();

NullPointerException while joining on List

Hello Xavier,

When I try to do a left or right join on a java.util.List property of an entity class I end up with a null pointer exception in class MultiClassLoaderProvider.

Snippet of my torpedoQuery :

final Section sectionFrom = from(Section.class);
final TexteSection leftJoinTextSection = leftJoin(sectionFrom.getTexteSections()); // crash right here
final ImageSection leftJoinImageSection = leftJoin(sectionFrom.getImageSections());

My object structure is a Class Section which has many TextSections.
@OneToMany(mappedBy = "section")
private List texteSections = new ArrayList<>();

I tried whith and without the field initialization ending up with the same exception.

I've debugged a bit, and noticed that in class : MultiClassLoaderProvider

in method get at line 69 to 73 you had to the list of class Loader the proper classLoader for the received proxy, but in my case the proxy is a List proxy and the class loader ends up being null.

so when it does the load class method at line 48 classLoader.loadClass(name)
... class loader is null so the exception is thrown.

here's the full stack trace

[#|2015-06-22T12:03:36.393-0400|WARNING|glassfish 4.1|javax.enterprise.ejb.container|_ThreadID=31;_ThreadName=http-listener-1(3);_TimeMillis=1434989016393;_LevelValue=900;|
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:662)
at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:507)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4566)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2074)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy299.findSectionContents(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.osgicdi.impl.OSGiServiceFactory$DynamicInvocationHandler.invoke(OSGiServiceFactory.java:240)
at com.sun.proxy.$Proxy353.findSectionContents(Unknown Source)
at com.sti.document.webservices.section.SectionLoadWebServices.getSectionContent(SectionLoadWebServices.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer._intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy221.getSectionContent(Unknown Source)
at com.sti.document.webservices.section.EJB31_Generated__SectionLoadWebServices__Intf____Bean.getSectionContent(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.objenesis.ObjenesisException: java.lang.reflect.InvocationTargetException
at org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:52)
at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.(SunReflectionFactoryInstantiator.java:38)
at org.objenesis.strategy.StdInstantiatorStrategy.newInstantiatorOf(StdInstantiatorStrategy.java:89)
at org.objenesis.ObjenesisBase.getInstantiatorOf(ObjenesisBase.java:90)
at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
at org.objenesis.ObjenesisHelper.newInstance(ObjenesisHelper.java:43)
at org.torpedoquery.jpa.internal.utils.ProxyFactoryFactory.createProxy(ProxyFactoryFactory.java:87)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createLinkedProxy(TorpedoMethodHandler.java:103)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createReturnValue(TorpedoMethodHandler.java:80)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.invoke(TorpedoMethodHandler.java:71)
at com.sti.persistence.internal.entities.Section
$$jvste4d_64.getTexteSections(Section$$_jvste4d_64.java)
at com.sti.entityviewcontroller.transaction.services.section.bean.SectionLoadServicesBean.findSectionContents(SectionLoadServicesBean.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
... 96 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:42)
... 138 more
Caused by: java.lang.NullPointerException
at org.torpedoquery.jpa.internal.utils.MultiClassLoaderProvider$MultiClassLoader.loadClass(MultiClassLoaderProvider.java:48)
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:112)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:340)
... 143 more
|#]

[#|2015-06-22T12:03:36.622-0400|WARNING|glassfish 4.1|javax.enterprise.ejb.container|_ThreadID=31;_ThreadName=http-listener-1(3);_TimeMillis=1434989016622;_LevelValue=900;_MessageID=AS-EJB-0
0056;|
A system exception occurred during an invocation on EJB SectionLoadWebServices, method: public javax.ws.rs.core.Response com.sti.document.webservices.section.SectionLoadWebServices.getSect
ionContent(java.lang.String,java.lang.String,java.lang.Long)|#]

[#|2015-06-22T12:03:36.623-0400|WARNING|glassfish 4.1|javax.enterprise.ejb.container|_ThreadID=31;_ThreadName=http-listener-1(3);_TimeMillis=1434989016623;_LevelValue=900;|
javax.ejb.EJBTransactionRolledbackException
at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2342)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2123)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2044)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy299.findSectionContents(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.osgicdi.impl.OSGiServiceFactory$DynamicInvocationHandler.invoke(OSGiServiceFactory.java:240)
at com.sun.proxy.$Proxy353.findSectionContents(Unknown Source)
at com.sti.document.webservices.section.SectionLoadWebServices.getSectionContent(SectionLoadWebServices.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer._intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy221.getSectionContent(Unknown Source)
at com.sti.document.webservices.section.EJB31_Generated__SectionLoadWebServices__Intf____Bean.getSectionContent(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:662)
at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:507)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4566)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2074)
... 98 more
Caused by: org.objenesis.ObjenesisException: java.lang.reflect.InvocationTargetException
at org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:52)
at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.(SunReflectionFactoryInstantiator.java:38)
at org.objenesis.strategy.StdInstantiatorStrategy.newInstantiatorOf(StdInstantiatorStrategy.java:89)
at org.objenesis.ObjenesisBase.getInstantiatorOf(ObjenesisBase.java:90)
at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
at org.objenesis.ObjenesisHelper.newInstance(ObjenesisHelper.java:43)
at org.torpedoquery.jpa.internal.utils.ProxyFactoryFactory.createProxy(ProxyFactoryFactory.java:87)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createLinkedProxy(TorpedoMethodHandler.java:103)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createReturnValue(TorpedoMethodHandler.java:80)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.invoke(TorpedoMethodHandler.java:71)
at com.sti.persistence.internal.entities.Section
$$jvste4d_64.getTexteSections(Section$$_jvste4d_64.java)
at com.sti.entityviewcontroller.transaction.services.section.bean.SectionLoadServicesBean.findSectionContents(SectionLoadServicesBean.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
... 96 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:42)
... 138 more
Caused by: java.lang.NullPointerException
at org.torpedoquery.jpa.internal.utils.MultiClassLoaderProvider$MultiClassLoader.loadClass(MultiClassLoaderProvider.java:48)
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:112)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:340)
... 143 more
|#]

[#|2015-06-22T12:03:37.060-0400|WARNING|glassfish 4.1|javax.enterprise.web|_ThreadID=31;_ThreadName=http-listener-1(3);_TimeMillis=1434989017060;LevelValue=900;|
StandardWrapperValve[com.sti.document.webservices.initializer.DocumentServicesInitializer]: Servlet.service() for servlet com.sti.document.webservices.initializer.DocumentServicesInitializ
er threw exception
java.lang.NullPointerException
at org.torpedoquery.jpa.internal.utils.MultiClassLoaderProvider$MultiClassLoader.loadClass(MultiClassLoaderProvider.java:48)
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399)
at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:394)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:393)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:112)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:340)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.objenesis.instantiator.sun.SunReflectionFactoryHelper.newConstructorForSerialization(SunReflectionFactoryHelper.java:42)
at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.(SunReflectionFactoryInstantiator.java:38)
at org.objenesis.strategy.StdInstantiatorStrategy.newInstantiatorOf(StdInstantiatorStrategy.java:89)
at org.objenesis.ObjenesisBase.getInstantiatorOf(ObjenesisBase.java:90)
at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
at org.objenesis.ObjenesisHelper.newInstance(ObjenesisHelper.java:43)
at org.torpedoquery.jpa.internal.utils.ProxyFactoryFactory.createProxy(ProxyFactoryFactory.java:87)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createLinkedProxy(TorpedoMethodHandler.java:103)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.createReturnValue(TorpedoMethodHandler.java:80)
at org.torpedoquery.jpa.internal.utils.TorpedoMethodHandler.invoke(TorpedoMethodHandler.java:71)
at com.sti.persistence.internal.entities.Section
$$jvste4d_64.getTexteSections(Section$$_jvste4d_64.java)
at com.sti.entityviewcontroller.transaction.services.section.bean.SectionLoadServicesBean.findSectionContents(SectionLoadServicesBean.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy299.findSectionContents(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.osgicdi.impl.OSGiServiceFactory$DynamicInvocationHandler.invoke(OSGiServiceFactory.java:240)
at com.sun.proxy.$Proxy353.findSectionContents(Unknown Source)
at com.sti.document.webservices.section.SectionLoadWebServices.getSectionContent(SectionLoadWebServices.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4786)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:656)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:608)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4758)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4746)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy221.getSectionContent(Unknown Source)
at com.sti.document.webservices.section.EJB31_Generated__SectionLoadWebServices__Intf____Bean.getSectionContent(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:254)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
|#]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.