java.sql.SQLSyntaxErrorException:length must be specified in type definition:VARBINARY

Can you try this:

 

- Open the JBOSS_HOME/server/< servername>/conf/standardjbosscmp-jdbc.xml in a text editor

- Search for the "Hypersonic SQL" type-mappping in that file. It will look something like this:

 

<type-mapping>
         <name>Hypersonic SQL</name>
         <row-locking-template/>
         ...



         <mapping>
            <java-type>java.lang.Object</java-type>
            <!-- hsqldb only supports directly serializable objects for sql type OBJECT -->
            <jdbc-type>VARBINARY</jdbc-type>
            <sql-type>VARBINARY</sql-type>
         </mapping>
...

      </type-mapping>

 

Try changing it to:

 

<type-mapping>
         <name>Hypersonic SQL</name>
         <row-locking-template/>
         ...



         <mapping>
            <java-type>java.lang.Object</java-type>
            <!-- hsqldb only supports directly serializable objects for sql type OBJECT -->
            <jdbc-type>VARBINARY</jdbc-type>
            <sql-type>VARBINARY(1024)</sql-type>
         </mapping>
...

      </type-mapping>

 

See the change in the sql-type value. I set the length randomly to 1024.

 

After this change, restart the server and see if it works.

你可能感兴趣的:(exception)