ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ozhan <ozhan...@gmail.com>
Subject Ibatis 3 Regional Setting Problem
Date Fri, 05 Mar 2010 23:24:42 GMT

Hi,

SessionFactoryBuilder coud not be instantiate if the regional setting is
Turkish (-Duser.language=tr -Duser.region=TR)

Tested with IBatis 3, Beta-10

### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL
Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing
Mapper XML. Cause: java.lang.IllegalArgumentException: No enum const class
org.apache.ibatis.mapping.SqlCommandType.İNSERT
	at
org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)
	at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:32)
	at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:15)
	at ibatortest.generated.flat.java5.Main.main(Main.java:18)
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL
Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing
Mapper XML. Cause: java.lang.IllegalArgumentException: No enum const class
org.apache.ibatis.mapping.SqlCommandType.İNSERT
	at
org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:71)
	at
org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:55)
	at
org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:29)
	... 2 more
Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause:
java.lang.IllegalArgumentException: No enum const class
org.apache.ibatis.mapping.SqlCommandType.İNSERT
	at
org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:60)
	at
org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:39)
	at
org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:247)
	at
org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:69)
	... 4 more
Caused by: java.lang.IllegalArgumentException: No enum const class
org.apache.ibatis.mapping.SqlCommandType.İNSERT	at
java.lang.Enum.valueOf(Enum.java:196)
	at org.apache.ibatis.mapping.SqlCommandType.valueOf(SqlCommandType.java:1)
	at
org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:52)
	at
org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:193)
	at
org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:58)
	... 7 more

-- 
View this message in context: http://old.nabble.com/Ibatis-3-Regional-Setting-Problem-tp27800459p27800459.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message