<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using -server to stop the 'hibernate' error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36908#M19517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The topic "Very Ugly Errors" (&lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=1355" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=1355&lt;/A&gt;&lt;SPAN&gt;) from March this year describes an error and a workaround. I'm getting the same error, but I don't know how to implement the proposed workaround (starting java with the -server flag).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The intermittant error I'm getting is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[b]exception[/b]&lt;BR /&gt;&lt;BR /&gt;javax.servlet.ServletException: Filter execution threw an exception&lt;BR /&gt;&lt;BR /&gt;[b]root cause[/b]&lt;BR /&gt;&lt;BR /&gt;java.lang.NoSuchMethodError: java.lang.Object.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.repo.domain.Node$$EnhancerByCGLIB$$7b3dbba0.getHibernateLazyInitializer(&amp;lt;generated&amp;gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;…&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix is to start java with the -server flag. See &lt;/SPAN&gt;&lt;A href="http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293" rel="nofollow noopener noreferrer"&gt;http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293&lt;/A&gt;&lt;SPAN&gt; for gory details about how the problem was debugged and the -server workaround discovered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround sounds fine, but what do I need to do to get java to start with the -server flag. I installed the JDK 5 and java starts automatically on restart of the Linux machine, so I have no idea what startup file makes this happen or what I need to change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My setup is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;uname -a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Linux bookworm 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java -version&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java version "1.5.0_07"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cat /usr/java/jdk1.5.0_07/jre/lib/i386/jvm.cfg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# @(#)jvm.cfg&amp;nbsp;&amp;nbsp; 1.8 04/02/02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Copyright 2003 Sun Microsystems, Inc. All rights reserved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# List of JVMs that can be used as an option to java, javac, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Order is important – first in this list is the default JVM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# NOTE that this both this file and its format are UNSUPPORTED and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# WILL GO AWAY in a future release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# You may also select a JVM in an arbitrary location with the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# "-XXaltjvm=&amp;lt;jvm_dir&amp;gt;" option, but that too is unsupported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# and may not be available in a future release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-client IF_SERVER_CLASS -server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-server KNOWN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-hotspot ALIASED_TO -client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-classic WARN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-native ERROR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-green ERROR&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2006 07:54:49 GMT</pubDate>
    <dc:creator>itauthor</dc:creator>
    <dc:date>2006-08-11T07:54:49Z</dc:date>
    <item>
      <title>Using -server to stop the 'hibernate' error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36908#M19517</link>
      <description>The topic "Very Ugly Errors" (http://forums.alfresco.com/viewtopic.php?t=1355) from March this year describes an error and a workaround. I'm getting the same error, but I don't know how to implement the proposed workaround (starting java with the -server flag).The intermittant error I'm getting is:[</description>
      <pubDate>Fri, 11 Aug 2006 07:54:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36908#M19517</guid>
      <dc:creator>itauthor</dc:creator>
      <dc:date>2006-08-11T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using -server to stop the 'hibernate' error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36909#M19518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm guessing here, but you could try swapping the first two lines from the bottom section of the /usr/java/jdk1.5.0_07/jre/lib/i386/jvm.cfg config file thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# List of JVMs that can be used as an option to java, javac, etc.&lt;BR /&gt;# Order is important – first in this list is the default JVM.&lt;BR /&gt;# NOTE that this both this file and its format are UNSUPPORTED and&lt;BR /&gt;# WILL GO AWAY in a future release.&lt;BR /&gt;#&lt;BR /&gt;# You may also select a JVM in an arbitrary location with the&lt;BR /&gt;# "-XXaltjvm=&amp;lt;jvm_dir&amp;gt;" option, but that too is unsupported&lt;BR /&gt;# and may not be available in a future release.&lt;BR /&gt;#&lt;BR /&gt;-server KNOWN&lt;BR /&gt;-client IF_SERVER_CLASS -server&lt;BR /&gt;-hotspot ALIASED_TO -client&lt;BR /&gt;-classic WARN&lt;BR /&gt;-native ERROR&lt;BR /&gt;-green ERROR&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So swapping round the order of the first 2 lines in that section. As I think that is selecting the client JVM, and if i'm reading it correctly "Order is important – first in this list is the default JVM".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 09:55:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36909#M19518</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-08-11T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using -server to stop the 'hibernate' error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36910#M19519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll give that a try and see if the error reoccurs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 13:07:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36910#M19519</guid>
      <dc:creator>itauthor</dc:creator>
      <dc:date>2006-08-11T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using -server to stop the 'hibernate' error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36911#M19520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What Alfresco distribution are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-1.3.0-linux-community.bin &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-community-jboss-1.3.0.tar.gz &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-community-tomcat-1.3.0.tar.gz &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-community-war-1.3.0.tar.gz &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, is Alfresco starting up when you reboot, or do you run it manually?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 02:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36911#M19520</guid>
      <dc:creator>rgeimer</dc:creator>
      <dc:date>2006-08-18T02:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using -server to stop the 'hibernate' error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36912#M19521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The fix appears to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, for the record:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco-community-war-1.3.0.tar.gz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco restarts automatically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:47:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-server-to-stop-the-hibernate-error/m-p/36912#M19521</guid>
      <dc:creator>itauthor</dc:creator>
      <dc:date>2006-08-18T06:47:01Z</dc:date>
    </item>
  </channel>
</rss>

