<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Service XML - Mapping to BigInt</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113982766" />
  <subtitle>Service XML - Mapping to BigInt</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113982766</id>
  <updated>2026-04-04T12:31:18Z</updated>
  <dc:date>2026-04-04T12:31:18Z</dc:date>
  <entry>
    <title>RE: Service XML - Mapping to BigInt</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114020106" />
    <author>
      <name>Jorge Diaz</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114020106</id>
    <updated>2019-06-15T17:36:55Z</updated>
    <published>2019-06-15T17:36:55Z</published>
    <summary type="html">Hi Kevin,About your exception:&lt;br /&gt;&lt;br /&gt;ClassCastException: java.lang.Long cannot be cast to java.lang.Integer&lt;br /&gt;&lt;br /&gt;Can you attach the log with the full exception?</summary>
    <dc:creator>Jorge Diaz</dc:creator>
    <dc:date>2019-06-15T17:36:55Z</dc:date>
  </entry>
  <entry>
    <title>Service XML - Mapping to BigInt</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113982765" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113982765</id>
    <updated>2019-06-13T12:42:54Z</updated>
    <published>2019-06-13T12:42:54Z</published>
    <summary type="html">I&amp;#39;m having issues mapping a very large BigInt in my MySQL DB to the java type &amp;#34;int&amp;#34;. The BigInt is 999999999999 and service layers API is turning it in to 9.99999999999E11. So, of course, I get the below error&lt;blockquote&gt;&lt;strong&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-family: -webkit-standard"&gt;&lt;span style="font-size: 10px;"&gt;&lt;span style="font-family: Calibri, sans-serif"&gt;&lt;span style="font-size: 10px;"&gt;[JDBCExceptionReporter:82] &amp;#39;9.99999999999E11&amp;#39; in column &amp;#39;1&amp;#39; is outside valid range for the datatype INTEGER.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;When I try to change the service xml for that column and set the type=&amp;#34;long&amp;#34; I get the error&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span style="color: #000000"&gt;&lt;span style="font-family: -webkit-standard"&gt;ClassCastException: java.lang.Long cannot be cast to java.lang.Integer&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Is there another data type besides I can set in my service.xml besides &amp;#34;int&amp;#34; that will work??&lt;/blockquote&gt;</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2019-06-13T12:42:54Z</dc:date>
  </entry>
</feed>
