Created dir: G:\javatest\DesktopApplication1\build\classes
Created dir: G:\javatest\DesktopApplication1\build\empty
Compiling 4 source files to G:\javatest\DesktopApplication1\build\classes
Copying 23 files to G:\javatest\DesktopApplication1\build\classes
compile:
run:
[TopLink Info]: 2009.12.22 07:44:17.703--ServerSession(10040639)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
[TopLink Info]: 2009.12.22 07:44:19.421--ServerSession(10040639)--file:/G:/javatest/DesktopApplication1/build/classes/-127.0.0.1:1433;databaseName=lqjj_jjejPU login successful
[TopLink Warning]: 2009.12.22 07:44:24.453--UnitOfWork(19097823)--Exception [TOPLINK-3002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ConversionException
Exception Description: The object [123], of class [class java.lang.String], from mapping [oracle.toplink.essentials.mappings.DirectToFieldMapping[t1-->lqjj_jjej.dbo.test.t1]] with descriptor [RelationalDescriptor(desktopapplication1.Test --> [DatabaseTable(lqjj_jjej.dbo.test)])], could not be converted to [class [B].
2009-12-22 19:44:24 org.jdesktop.application.Application$1 run
严重: Application class desktopapplication1.DesktopApplication1 failed to launch
Local Exception Stack: 
Exception [TOPLINK-3002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.ConversionException
Exception Description: The object [123], of class [class java.lang.String], from mapping [oracle.toplink.essentials.mappings.DirectToFieldMapping[t1-->lqjj_jjej.dbo.test.t1]] with descriptor [RelationalDescriptor(desktopapplication1.Test --> [DatabaseTable(lqjj_jjej.dbo.test)])], could not be converted to [class [B].
        at oracle.toplink.essentials.exceptions.ConversionException.couldNotConvertToByteArray(ConversionException.java:111)
        at oracle.toplink.essentials.internal.helper.Helper.buildBytesFromHexString(Helper.java:179)
         ... 8 more什么意思??

解决方案 »

  1.   

     Swing 应用程序框架
    是用NetBeans生成的桌面应用程序
      

  2.   

    Exception Description: The object [123], of class [class java.lang.String], from mapping [oracle.toplink.essentials.mappings.DirectToFieldMapping[t1-->lqjj_jjej.dbo.test.t1]] with descriptor [RelationalDescriptor(desktopapplication1.Test --> [DatabaseTable(lqjj_jjej.dbo.test)])], could not be converted to [class [B].
    根据上面的描述,应该是类型转换错误。
      

  3.   

    类型不一致啊。楼主检查下映射的那个类和oracle中表的字段类型是否一一对应。