Re: [hibernate-dev] [OGM] Ogm documentation does not build completly

2014-02-19 Thread Davide D'Alto
Thanks for the help.

I still haven't found  the reason but I'm investigating.
Upgrade the plugins did not help.


On Mon, Feb 17, 2014 at 10:10 PM, Gunnar Morling wrote:

> Apache Maven 3.0.3 and Java 1.7.0_45.
>
> I don't think it's related to that. Do you see any error in the output
> from AsciiDoctor? Maybe there is some kind of debug or verbose option? You
> also could try updating to the latest version of asciidoctor-maven-plugin
> (0.1.4).
>
>
> 2014/2/17 Guillaume SCHEIBEL 
>
>> java version "1.7.0_51" and  Maven 3.1.1
>>
>>
>>
>> 2014-02-17 22:51 GMT+01:00 Davide D'Alto :
>>
>> It seems to work fine if I remove the "module/" from the include part in
>>> the datastore-providers.asciidoc,
>>> for example from
>>>
>>> *include::modules/infinispan.asciidoc[]*
>>> to
>>> *include::infinispan.asciidoc[]*
>>>
>>> I will try again tomorrow.
>>> Do you think the Java or maven version might be on issue? Out of
>>> curiosity, which version are you using?
>>>
>>>
>>> On Mon, Feb 17, 2014 at 9:46 PM, Gunnar Morling wrote:
>>>
 Same here, all chapters are there as expected.

 As a starting point for analysis, does the assembled DocBook file
 under documentation/manual/target/docbook/en-US/master.xml contain all the
 chapters? If not it seems to be a problem with Asciidoc.


 2014/2/17 Guillaume SCHEIBEL 

> Hi Davide,
>
> I've just fetch the master and the documentation built without any
> problem.
>
> Guillaume
>
>
> 2014-02-17 20:18 GMT+01:00 Davide D'Alto :
>
> > Hi.
> > I've noticed that when I run the build of OGM the documentation is
> not
> > completly built.
> > The part releated to the single datastores is missing.
> >
> > It works on Jenkins.
> >
> > Does it happen only to me?
> > ___
> > hibernate-dev mailing list
> > hibernate-dev@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


>>>
>>
>
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] WELD-1606

2014-02-19 Thread Brett Meyer
Abhijit, if I'm reading that correctly, it's probably the same discussion here:

https://hibernate.atlassian.net/browse/HHH-8778

There is an interface change in newer versions of Javassist (ProxyObject -> 
Proxy)

Brett Meyer
Red Hat, Hibernate ORM

- Original Message -
From: "Abhijit Sarkar" 
To: hibernate-dev@lists.jboss.org
Sent: Tuesday, February 18, 2014 10:50:41 PM
Subject: [hibernate-dev] WELD-1606

Hi,
Does anyone want to take a look at WELD-1606 and help me out? It seems
pretty similar to WELD-1498, a fix for which is targeted for 2.1.0.Beta2.

Regards,
Abhijit Sarkar
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] hibernate classloading issue

2014-02-19 Thread DANISIK, BAHADIR (BAHADIR)
Hello,

We have an issue in Hibernate ORM 3.6.1 related with the classloading. It is 
seen in weblogic application server when many concurrent threads are trying to 
execute hibernate queries.

When a HQL query is executed, first time it is parsed and than cached. 
Subsequent calls do not have any issues. If too many threads are doing parse 
operation, because of the single threaded nature of classloading (java6) many 
threads are waiting the thread doing the parse operation.

An example : "from Device dev where dev.deleted = 0"

When hibernate is executing the query above, it is first parsed. During the 
parse operation hibernate is checking the alias name "dev" as a class. A class 
load operation is executed. It will not find a class named "dev", but for some 
reason it is doing a lookup. The package name of "Device" class like 
"com.mycompany.domain" is also looked up as a class by doing class load 
operation. If there are many (400+) concurrent threads, doing same hibernate 
call, they are stuck in the parsing because of single threaded class loading.

This behavior is causing long warm up time in the application server when there 
is a burs t of traffic.

As an improvement, I am planning to add a negative cache for the non existing 
classes to prevent going to the class loader again and again.

Here is the modification in ReflectHelper.java: (Changes are in red)

private static Map hmNonExistingClasses = new 
ConcurrentHashMap();

/**
 * Perform resolution of a class name.
 * 
 * Same as {@link #classForName(String, Class)} except that here we 
delegate to
 * {@link Class#forName(String)} if the context classloader lookup is 
unsuccessful.
 *
 * @param name The class name
 * @return The class reference.
 * @throws ClassNotFoundException From {@link Class#forName(String)}.
 */
public static Class classForName(String name) throws 
ClassNotFoundException {
if (hmNonExistingClasses.containsKey(name))
throw new ClassNotFoundException(name);

try {
ClassLoader contextClassLoader = 
Thread.currentThread().getContextClassLoader();
if ( contextClassLoader != null ) {
return contextClassLoader.loadClass(name);
}
}
catch ( Throwable ignore ) {
}

try {
return Class.forName( name );
} catch (ClassNotFoundException cnfe) {
hmNonExistingClasses.put(name, true);
throw cnfe;
}
}

Can you please also let me know if I can make this change in hibernate 3.6.1 
(in a new branc)without making our product open source? My understanding is, I 
need to make this change public. I have created a new branch locally in git and 
want to push the changes to a new branch named "3.6.1.Final_ALU" in github. Can 
you please let me know if I can create the new branch?

Thanks for your help,
Bahadir DANISIK.




___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] Hibernate OGM 4.1.0.Beta1 is out

2014-02-19 Thread Gunnar Morling
Hi,

It's my great pleasure to announce the release of Hibernate OGM
4.1.0.Beta1! This version shines with:

* support for CouchDB
* query execution via JPA
* new Option API and much more

Please check out the announcement post [1] which has all the details.

--Gunnar

[1] http://in.relation.to/Bloggers/HibernateOGM410Beta1IsOut
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] WELD-1606

2014-02-19 Thread Abhijit Sarkar
Brett,Thanks for taking a look. I'm not getting a javassist class cast, so I 
don't see the relevance with HHH-8778. I still upgraded to javassist 3.18.1-GA 
but it did not help. Please see the attachment WEB-INF.lib on WELD-1606 for a 
list my dependencies.
Regards,Abhijit
> Date: Wed, 19 Feb 2014 10:35:11 -0500
> From: brme...@redhat.com
> To: abhijit.sar...@gmail.com
> CC: hibernate-dev@lists.jboss.org
> Subject: Re: [hibernate-dev] WELD-1606
> 
> Abhijit, if I'm reading that correctly, it's probably the same discussion 
> here:
> 
> https://hibernate.atlassian.net/browse/HHH-8778
> 
> There is an interface change in newer versions of Javassist (ProxyObject -> 
> Proxy)
> 
> Brett Meyer
> Red Hat, Hibernate ORM
> 
> - Original Message -
> From: "Abhijit Sarkar" 
> To: hibernate-dev@lists.jboss.org
> Sent: Tuesday, February 18, 2014 10:50:41 PM
> Subject: [hibernate-dev] WELD-1606
> 
> Hi,
> Does anyone want to take a look at WELD-1606 and help me out? It seems
> pretty similar to WELD-1498, a fix for which is targeted for 2.1.0.Beta2.
> 
> Regards,
> Abhijit Sarkar
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
  
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] WELD-1606

2014-02-19 Thread Sanne Grinovero
Hi Abhijit,
this list will delete any attachment you might have sent. Could you
please attach any related files to your JIRA issue ?

On 20 February 2014 00:05, Abhijit Sarkar  wrote:
> Brett,Thanks for taking a look. I'm not getting a javassist class cast, so I 
> don't see the relevance with HHH-8778. I still upgraded to javassist 
> 3.18.1-GA but it did not help. Please see the attachment WEB-INF.lib on 
> WELD-1606 for a list my dependencies.
> Regards,Abhijit
>> Date: Wed, 19 Feb 2014 10:35:11 -0500
>> From: brme...@redhat.com
>> To: abhijit.sar...@gmail.com
>> CC: hibernate-dev@lists.jboss.org
>> Subject: Re: [hibernate-dev] WELD-1606
>>
>> Abhijit, if I'm reading that correctly, it's probably the same discussion 
>> here:
>>
>> https://hibernate.atlassian.net/browse/HHH-8778
>>
>> There is an interface change in newer versions of Javassist (ProxyObject -> 
>> Proxy)
>>
>> Brett Meyer
>> Red Hat, Hibernate ORM
>>
>> - Original Message -
>> From: "Abhijit Sarkar" 
>> To: hibernate-dev@lists.jboss.org
>> Sent: Tuesday, February 18, 2014 10:50:41 PM
>> Subject: [hibernate-dev] WELD-1606
>>
>> Hi,
>> Does anyone want to take a look at WELD-1606 and help me out? It seems
>> pretty similar to WELD-1498, a fix for which is targeted for 2.1.0.Beta2.
>>
>> Regards,
>> Abhijit Sarkar
>> ___
>> hibernate-dev mailing list
>> hibernate-dev@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
> ___
> hibernate-dev mailing list
> hibernate-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] WELD-1606

2014-02-19 Thread Abhijit Sarkar
Hi Sanne,
I already did...if you go to WELD-1606, you should see a file called
WEB-INF.lib attached.

Regards,
Abhijit


On Wed, Feb 19, 2014 at 9:04 PM, Sanne Grinovero wrote:

> Hi Abhijit,
> this list will delete any attachment you might have sent. Could you
> please attach any related files to your JIRA issue ?
>
> On 20 February 2014 00:05, Abhijit Sarkar 
> wrote:
> > Brett,Thanks for taking a look. I'm not getting a javassist class cast,
> so I don't see the relevance with HHH-8778. I still upgraded to javassist
> 3.18.1-GA but it did not help. Please see the attachment WEB-INF.lib on
> WELD-1606 for a list my dependencies.
> > Regards,Abhijit
> >> Date: Wed, 19 Feb 2014 10:35:11 -0500
> >> From: brme...@redhat.com
> >> To: abhijit.sar...@gmail.com
> >> CC: hibernate-dev@lists.jboss.org
> >> Subject: Re: [hibernate-dev] WELD-1606
> >>
> >> Abhijit, if I'm reading that correctly, it's probably the same
> discussion here:
> >>
> >> https://hibernate.atlassian.net/browse/HHH-8778
> >>
> >> There is an interface change in newer versions of Javassist
> (ProxyObject -> Proxy)
> >>
> >> Brett Meyer
> >> Red Hat, Hibernate ORM
> >>
> >> - Original Message -
> >> From: "Abhijit Sarkar" 
> >> To: hibernate-dev@lists.jboss.org
> >> Sent: Tuesday, February 18, 2014 10:50:41 PM
> >> Subject: [hibernate-dev] WELD-1606
> >>
> >> Hi,
> >> Does anyone want to take a look at WELD-1606 and help me out? It seems
> >> pretty similar to WELD-1498, a fix for which is targeted for
> 2.1.0.Beta2.
> >>
> >> Regards,
> >> Abhijit Sarkar
> >> ___
> >> hibernate-dev mailing list
> >> hibernate-dev@lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
> > ___
> > hibernate-dev mailing list
> > hibernate-dev@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev