<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    expected number got Binary
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/onesleo">leonardo ginting</a> in <i>JBoss Web Development</i> - <a href="http://community.jboss.org/message/634541#634541">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>hi guys i had an issue about expected number got binary does anybody knows what i should to do to solve this problem</p><p>this is the stack trace</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ol><li style="text-align: start;">java.sql.BatchUpdateException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY</li><li style="text-align: start;"></li><li style="text-align: start;">&#160;&#160;&#160; at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343)</li><li style="text-align: start;">&#160;&#160;&#160; at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10656)</li><li style="text-align: start;">&#160;&#160;&#160; at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)</li><li style="text-align: start;">&#160;&#160;&#160; at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)</li><li style="text-align: start;">&#160;&#160;&#160; at id.co.compnet.api.keu.ctl.DetailPendapatanJpaController.create(DetailPendapatanJpaController.java:42)</li><li style="text-align: start;">&#160;&#160;&#160; at id.co.compnet.PenerimaanDenda.PenerimaanDendaMBean.simpan(PenerimaanDendaMBean.java:391)</li><li style="text-align: start;">&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">and this is on my bean at line 391</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>for (DetailPendapatan detail : listPenerimaanDenda) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.println("MASUK SIMPAN DETAIL PENDAPATAN");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setMataUang("IDR");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setPenerimaanid(pendapatan);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setBiayaid(biaya);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setBiaya(new BigDecimal(getNilai()));</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setSubtotal(new BigDecimal(getSubtotal()));</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detail.setVariabel(new BigInteger(getJumlah().toString()));</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; detailPendapatan = detail;</p><p>//&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.println("PRINT DETAIL PENERIMAAN&#160; PENDAPTAN ID"+pendapatan +"BIAYA ID = "+biaya +" BIAYA = "+getNilai() +"SUBTOTAL ="+getSubtotal()+"VARIABEL = "+getJumlah());</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; LINE&#160; 391&#160; =&gt;&#160;&#160;&#160;&#160;&#160;&#160; dcont.create(detailPendapatan);&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.print("DETAIL ID ="+detailPendapatan.getDetailpendapatanid());</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">ive printed all the value and i got all the value but why im still getting this error?</p><p style="text-align: start;">any solution guys?</p><p style="text-align: start;">thanks in advance</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/634541#634541">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>