<?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 Re: Error at Preview in Template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47735#M27140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's with the &lt;/SPAN&gt;&lt;STRONG&gt;_en_US&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; I've not seen that before.&amp;nbsp; It would certainly cause the truncation as the column is only allowed to be 40 characters.&amp;nbsp; In any case, the query would return no results - it's not a valid GUID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since that data cannot be contained in the database, it would have to be held or generated somewhere else.&amp;nbsp; Does the stack trace give any clues?&amp;nbsp; My initial guess is that the client code (template code) is generating a NodeRef with an invalid GUID.&amp;nbsp; Check the current HEAD for the same problem.&amp;nbsp; It might be that it was fixed during subsequent bug fixing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 17:58:03 GMT</pubDate>
    <dc:creator>derek</dc:creator>
    <dc:date>2007-01-17T17:58:03Z</dc:date>
    <item>
      <title>Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47730#M27135</link>
      <description>We are using Alfresco 1.4 Community with DB2 UDB 9.1 on Windows 2003 .After installing Alfresco, everything went fine, except for the following. When we choose to view details of a document, for example and html one, select action Preview in template, choose any template from the combo, we got the a</description>
      <pubDate>Tue, 16 Jan 2007 23:28:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47730#M27135</guid>
      <dc:creator>eleaese</dc:creator>
      <dc:date>2007-01-16T23:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47731#M27136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've raised the issue: &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1170" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1170&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Helping us identify the issue would speed things up significantly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Firstly, take copies of the schema script files that were generated during system startup - you should see the file names listed in the log file from the startup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the schema scripts to see if there are any obvious issues.&amp;nbsp; Then attempt to find the column(s) that are causing the issue.&amp;nbsp; You can execute the table creation scripts manually.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you know which columns are the issue, then the Hibernate dialect can be modified.&amp;nbsp; But identifying the problem would be the biggest help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 09:53:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47731#M27136</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-01-17T09:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47732#M27137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank your for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After I configured db access for DB2 UDB, Alfresco tried to create schema with Hibernate. I found an issue with table &lt;/SPAN&gt;&lt;STRONG&gt;alf_child_assoc &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;create table alf_child_assoc (&lt;BR /&gt;id bigint generated by default as identity,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent_node_id bigint,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;child_node_id bigint,&lt;BR /&gt;type_qname varchar(255) not null,&lt;BR /&gt;qname varchar(255) not null,&lt;BR /&gt;child_node_name varchar(50) not null,&lt;BR /&gt;child_node_name_crc bigint not null,&lt;BR /&gt;is_primary smallint,&lt;BR /&gt;assoc_index integer,&lt;BR /&gt;primary key (id),&lt;BR /&gt;unique (parent_node_id, type_qname, child_node_name, child_node_name_crc)&lt;BR /&gt;);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;because unique indexes couldn't include null columns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked and found the hibernate mapping file at &lt;/SPAN&gt;&lt;STRONG&gt;org/alfresco/repo/domain/hibernate/node.hbm.xml&lt;/STRONG&gt;&lt;SPAN&gt;, in file WEB-INF/lib/repository.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The mapping for class org.alfresco.repo.domain.hibernate.ChildAssocImpl was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;…&lt;BR /&gt;&amp;lt;class&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="org.alfresco.repo.domain.hibernate.ChildAssocImpl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy="org.alfresco.repo.domain.ChildAssoc"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic-insert="false"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dynamic-update="false"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lazy="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimistic-lock="version"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table="alf_child_assoc" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– auto-generated ID –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id name="id" column="id" type="long" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;generator class="native" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/id&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– forward assoc to parent node –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;many-to-one &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="parent"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.alfresco.repo.domain.hibernate.NodeImpl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lazy="proxy"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fetch="select"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimistic-lock="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not-null="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unique-key="UIDX_CHILD_NAME" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;column name="parent_node_id" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/many-to-one&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– forward assoc to child node –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;many-to-one&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="child" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lazy="proxy"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fetch="select"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.alfresco.repo.domain.hibernate.NodeImpl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimistic-lock="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not-null="true" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;column name="child_node_id" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/many-to-one&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="typeQName" column="type_qname" type="QName" length="255" not-null="true" unique-key="UIDX_CHILD_NAME" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="qname" column="qname" type="QName" length="255" not-null="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="childNodeName" column="child_node_name" type="string" length="50" not-null="true" unique-key="UIDX_CHILD_NAME" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="childNodeNameCrc" column="child_node_name_crc" type="long" not-null="true" unique-key="UIDX_CHILD_NAME" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="isPrimary" column="is_primary" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="index" column="assoc_index" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/class&amp;gt;&lt;BR /&gt;…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the line with&amp;nbsp; "Changed -&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;!– forward assoc to parent node –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;many-to-one &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="parent"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.alfresco.repo.domain.hibernate.NodeImpl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lazy="proxy"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fetch="select"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimistic-lock="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not-null="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unique-key="UIDX_CHILD_NAME" &amp;gt;&lt;BR /&gt;Changed -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;column name="parent_node_id" not-null="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/many-to-one&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;to instruct Hibernate to declare the column as Not Null. The SQL script was &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;…&lt;BR /&gt;create table alf_child_assoc (&lt;BR /&gt;id bigint generated by default as identity,&lt;BR /&gt;parent_node_id bigint not null,&lt;BR /&gt;child_node_id bigint,&lt;BR /&gt;type_qname varchar(255) not null,&lt;BR /&gt;qname varchar(255) not null,&lt;BR /&gt;child_node_name varchar(50) not null,&lt;BR /&gt;child_node_name_crc bigint not null,&lt;BR /&gt;is_primary smallint,&lt;BR /&gt;assoc_index integer,&lt;BR /&gt;primary key (id),&lt;BR /&gt;unique (parent_node_id, type_qname, child_node_name, child_node_name_crc)&lt;BR /&gt;);&lt;BR /&gt;…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything went fine after the change, Alfresco started OK. The problem arised when we tried to apply templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A minor comment. I issued the select statement at the DB2 Command Line Processor, without the where …,&amp;nbsp; and it worked. The sentence was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;select nodestatus0_.protocol as protocol3_3_, nodestatus0_.identifier as identifier3_3_, nodestatus0_.guid as guid3_3_, nodestatus0_.transaction_id as transact4_3_3_, nodestatus0_.node_id as node5_3_3_, nodeimpl1_.id as id0_0_, nodeimpl1_.protocol as protocol0_0_, nodeimpl1_.identifier as identifier0_0_, nodeimpl1_.uuid as uuid0_0_, nodeimpl1_.type_qname as type5_0_0_, nodeimpl1_.acl_id as acl6_0_0_, storeimpl2_.protocol as protocol6_1_, storeimpl2_.identifier as identifier6_1_, storeimpl2_.root_node_id as root3_6_1_, aspects3_.node_id as node1_5_, aspects3_.qname as qname5_, parentasso4_.child_node_id as child3_6_, parentasso4_.id as id6_, parentasso4_.id as id4_2_, parentasso4_.parent_node_id as parent2_4_2_, parentasso4_.child_node_id as child3_4_2_, parentasso4_.type_qname as type4_4_2_, parentasso4_.qname as qname4_2_, parentasso4_.child_node_name as child6_4_2_, parentasso4_.child_node_name_crc as child7_4_2_, parentasso4_.is_primary as is8_4_2_, parentasso4_.assoc_index as assoc9_4_2_ from alf_node_status nodestatus0_ left outer join alf_node nodeimpl1_ on nodestatus0_.node_id=nodeimpl1_.id left outer join alf_store storeimpl2_ on nodeimpl1_.protocol=storeimpl2_.protocol and nodeimpl1_.identifier=storeimpl2_.identifier left outer join alf_node_aspects aspects3_ on nodeimpl1_.id=aspects3_.node_id left outer join alf_child_assoc parentasso4_ on nodeimpl1_.id=parentasso4_.child_node_id&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I also activated ShowSQL=true for Hibernate settings, but it didn't show the value of parameters. I suspect (just an idea) the problem is related with the where parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 15:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47732#M27137</guid>
      <dc:creator>eleaese</dc:creator>
      <dc:date>2007-01-17T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47733#M27138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion regarding the indexes.&amp;nbsp; We'll fix that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you double check that you are using the correct JDBC driver for your database version.&amp;nbsp; We have come across this type of problem when the JDBC driver was incorrect, although not on DB2.&amp;nbsp; What is the exact version of your JDBC driver?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you do put in some data into the &lt;/SPAN&gt;&lt;EM&gt;where&lt;/EM&gt;&lt;SPAN&gt; clause manually, does the query blow up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 16:24:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47733#M27138</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-01-17T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47734#M27139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Re: jdbc driver version.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using IBM DB2 UDB 9.1 Type 4 JDBC Driver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also try with IBM DB2 UDB 8.2.4 Type 4 JDBC Driver, with the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Re: SQL with parameters&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked OK. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested with some combinations, everything went fine at CLP. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;where nodestatus0_.protocol='archive' and&lt;BR /&gt;nodestatus0_.identifier='SpacesStore' and&lt;BR /&gt;nodestatus0_.guid='aecb7b27-a355-11db-9288-afa9868bb29e'&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;STRONG&gt;Re: Hibernate logging&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed Hibernate logging to get SQL and parameters. The log entries are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;14:20:27,401 DEBUG [org.hibernate.type.StringType] binding 'workspace' to parameter: 1&lt;BR /&gt;14:20:27,401 DEBUG [org.hibernate.type.StringType] binding 'SpacesStore' to parameter: 2&lt;BR /&gt;14:20:27,417 DEBUG [org.hibernate.type.StringType] binding 'b08db99b-a354-11db-9288-afa9868bb29e_en_US' to parameter: 3&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Testing the SQL statement with those parameters at the command line worked OK, resulting in an empty recordset, no rows.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 17:37:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47734#M27139</guid>
      <dc:creator>eleaese</dc:creator>
      <dc:date>2007-01-17T17:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47735#M27140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's with the &lt;/SPAN&gt;&lt;STRONG&gt;_en_US&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; I've not seen that before.&amp;nbsp; It would certainly cause the truncation as the column is only allowed to be 40 characters.&amp;nbsp; In any case, the query would return no results - it's not a valid GUID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since that data cannot be contained in the database, it would have to be held or generated somewhere else.&amp;nbsp; Does the stack trace give any clues?&amp;nbsp; My initial guess is that the client code (template code) is generating a NodeRef with an invalid GUID.&amp;nbsp; Check the current HEAD for the same problem.&amp;nbsp; It might be that it was fixed during subsequent bug fixing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 17:58:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47735#M27140</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-01-17T17:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47736#M27141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your explanation. Please let me dig a little bit more. I checked the code at the page, it shows the right ID (I mean, without the suffix en_US) related with the combo item in order to select the template to apply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you explain me a little bit more how I can fix it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides that, my main purpose was to validate DB2 UDB as a valid DBMS for repository services. By far this small issue is negligible, I testes the whole document flow, actions, aspects and didn't find any trouble.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 20:38:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47736#M27141</guid>
      <dc:creator>eleaese</dc:creator>
      <dc:date>2007-01-17T20:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47737#M27142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to take a look at the full stack trace of the exception and follow the call right from the client down to the NodeService.&amp;nbsp; The aim is to find the code that generates the invalid &lt;/SPAN&gt;&lt;STRONG&gt;NodeRef&lt;/STRONG&gt;&lt;SPAN&gt; instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't mind, could you attach the full stack trace as a file to the JIRA bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 01:11:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47737#M27142</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-01-18T01:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47738#M27143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same issue and I have checked the Jira bug to upload a stack trace but it has been marked as a duplicate of another bug (AR-1002) and closed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not correct. This bug is quite distinct from the bug AR-1002 which relates to the failed creation of a table (alf_child_assoc) and indexes. Which is now working in the 2.0 release. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error AR-1170 is still present in Community 2.0 release. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this issue can be re-opened I can supply as much info as you require.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 07:24:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47738#M27143</guid>
      <dc:creator>warren</dc:creator>
      <dc:date>2007-02-23T07:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47739#M27144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right.&amp;nbsp; It's open again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 08:49:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47739#M27144</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-02-23T08:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47740#M27145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want this one to be fixed sooner rather than later, then I suggest you put a stack trace and a description of how to reproduce it onto the JIRA bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 11:53:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47740#M27145</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-02-23T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47741#M27146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have uploaded a strack trace and some screen shots to the jira issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also found another case where this error occurs - when mailing users of a space. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you need anything else on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 03:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47741#M27146</guid>
      <dc:creator>warren</dc:creator>
      <dc:date>2007-02-26T03:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47742#M27147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed that this bug is now resolved with a single source file that was modified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin Roast [05-Mar-07 12:18 PM] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fixed &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;r5289 | kevinr | 2007-03-05 12:17:29 +0000 (Mon, 05 Mar 2007) | 1 line &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Changed paths: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; M /alfresco/BRANCHES/V2.0/root/projects/repository/source/java/org/alfresco/repo/template/FreeMarkerProcessor.java &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to compile, package and test this in my environment however it does not seem to be updated in HEAD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anyway: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I can access BRANCHES via SVN?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I can have the file sent to me &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; It can be commited to HEAD?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 06:30:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47742#M27147</guid>
      <dc:creator>warren</dc:creator>
      <dc:date>2007-03-06T06:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47743#M27148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The bug fix will be merged to HEAD shortly. If you want to make the change yourself now the change is very simple thus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;open the source for class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.repo.template.FreeMarkerProcessor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;protected Configuration getConfig()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;add this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;config.setLocalizedLookup(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;recompile and the issue will be fixed.&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>Tue, 06 Mar 2007 10:55:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47743#M27148</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-03-06T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error at Preview in Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47744#M27149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll do that quick patch tomorrow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick resolution. It will help progress our pilot of Alfesco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 11:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-at-preview-in-template/m-p/47744#M27149</guid>
      <dc:creator>warren</dc:creator>
      <dc:date>2007-03-06T11:38:52Z</dc:date>
    </item>
  </channel>
</rss>

