Budi Hartono
unread,Oct 9, 2012, 6:12:23 AM10/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ormlite...@googlegroups.com
hello,
i try to set the table config file.
i started with the ormlite manual to guide me
i have do like the tutorial
but i found error like this
###########################
Writing configurations to D:\EclipseData\workspace\Toko\.\res\raw\ormlite_config.txt
Could not load class file for: .\src\com\lifeform\toko\barcode\SerialPort.java
java.lang.UnsatisfiedLinkError: no serial_port in java.library.path
2012-10-09 17:06:30,150 [WARNING] OrmLiteSqliteOpenHelper Unable to call constructor with single String argument for class com.j256.ormlite.android.AndroidLog, so had to use local log
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.j256.ormlite.logger.LoggerFactory$LogType.createLogFromClassName(LoggerFactory.java:109)
at com.j256.ormlite.logger.LoggerFactory$LogType.createLog(LoggerFactory.java:98)
at com.j256.ormlite.logger.LoggerFactory.getLogger(LoggerFactory.java:34)
at com.j256.ormlite.logger.LoggerFactory.getLogger(LoggerFactory.java:24)
at com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper.<clinit>(OrmLiteSqliteOpenHelper.java:36)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:202)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:183)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:183)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:183)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:183)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.findAnnotatedClasses(OrmLiteConfigUtil.java:183)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigFile(OrmLiteConfigUtil.java:107)
at com.j256.ormlite.android.apptools.OrmLiteConfigUtil.writeConfigFile(OrmLiteConfigUtil.java:95)
at com.lifeform.toko.DatabaseConfigUtil.main(DatabaseConfigUtil.java:12)
Caused by: java.lang.UnsatisfiedLinkError: android.util.Log.isLoggable(Ljava/lang/String;I)Z
at android.util.Log.isLoggable(Native Method)
at com.j256.ormlite.android.AndroidLog.isLevelEnabledInternal(AndroidLog.java:148)
at com.j256.ormlite.android.AndroidLog.refreshLevelCache(AndroidLog.java:141)
at com.j256.ormlite.android.AndroidLog.<init>(AndroidLog.java:68)
... 20 more
Wrote config for class com.lifeform.toko.data.ItemCategory
Done.
#######################################
the serialport.java is a header for serial_port.so jni use
i found that the ormlite_config.txt has writen
the file-id in R.java existed
but when i decalre super like this
public DatabaseHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION,
R.raw.ormlite_config);
}
R.raw.ormlite_config is unknown.
could you told me where is wrong with my code?
thx u