I use lib, which has an enum type with constants like these;
Type.SHORT Type.LONG Type.FLOAT Type.STRING
While I am debugging Eclipse, I received an error message:
No enum const class Type.STRİNG
Since I use the Turkish system, there is a problem with i> İ working, but since it is enum const, although I put all the attributes as UTF-8, nothing could get STRING is what Eclipse should look for, But it still looking for STRİNG , and he cannot find, and I cannot use it. What should I do for this?
Project> Properties> Resouce> Text Encoding is now UTF-8. The problem persists.
EDIT: More information may give some clues that I cannot get; I am working on OrientDB. This is my first attempt, so I don’t know if the problem could be on OrientDB packages. But I use many other libraries, I have never seen such a problem. There is an OType enumeration in this package, and I'm only trying to connect to the database.
String url = "local:database"; ODatabaseObjectTx db = new ODatabaseObjectTx(url). Person person = new Person("John"); db.save(person); db.close();
There is no code that I use. The database is created, but then I get java.lang.IllegalArgumentException :
Caused by: java.lang.IllegalArgumentException: No enum const class com.orientechnologies.orient.core.metadata.schema.OType.STRİNG at java.lang.Enum.valueOf(Unknown Source) at com.orientechnologies.orient.core.metadata.schema.OType.valueOf(OType.java:41) at com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateProperty.parse(OCommandExecutorSQLCreateProperty.java:81) at com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateProperty.parse(OCommandExecutorSQLCreateProperty.java:35) at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:43) at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:28) at com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:63) at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63) at com.orientechnologies.orient.core.metadata.schema.OClassImpl.addProperty(OClassImpl.java:342) at com.orientechnologies.orient.core.metadata.schema.OClassImpl.createProperty(OClassImpl.java:258) at com.orientechnologies.orient.core.metadata.security.OSecurityShared.create(OSecurityShared.java:177) at com.orientechnologies.orient.core.metadata.security.OSecurityProxy.create(OSecurityProxy.java:37) at com.orientechnologies.orient.core.metadata.OMetadata.create(OMetadata.java:70) at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.create(ODatabaseRecordAbstract.java:142) ... 4 more
Here is the OType class: http://code.google.com/p/orient/source/browse/trunk/core/src/main/java/com/orientechnologies/orient/core/metadata/schema/OType.java
And another class; OCommandExecutorSQLCreateProperty: http://code.google.com/p/orient/source/browse/trunk/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateProperty.java
Line 81 says: type = OType.valueOf(word.toString());