简体   繁体   English

DBFit java.lang.UnsupportedOperationException: 不支持类型 İNT

[英]DBFit java.lang.UnsupportedOperationException: Type İNT is not supported

I get "java.lang.UnsupportedOperationException: Type İNT is not supported" exception for all types other than varchars.对于除varchars以外的所有类型,我都收到“java.lang.UnsupportedOperationException: Type İNT is not supported”异常。 For example below test runs without any problem:例如下面的测试运行没有任何问题:

!path lib/*.jar
!define SOCKET_TIMEOUT {300000}
!define COMMAND_PATTERN {java -Ds=${SOCKET_TIMEOUT} -cp %p %m }
!| dbfit.SqlServerTest |
!|Connect | jdbc:sqlserver://***;user=;password=*;databaseName=***|
!|Query|select 'test1' as column_one, '2' as column_two |
|column_one |column_two|
|test1 |2|

But below statement gives "java.lang.UnsupportedOperationException: Type İNT is not supported" exception但下面的语句给出了“java.lang.UnsupportedOperationException: Type İNT is not supported”异常

!path lib/*.jar
!define SOCKET_TIMEOUT {300000}
!define COMMAND_PATTERN {java -Ds=${SOCKET_TIMEOUT} -cp %p %m }
!| dbfit.SqlServerTest |
!|Connect | jdbc:sqlserver://***;user=;password=*;databaseName=***|
!|Query|select 1 as column_one, 2 as column_two |
|column_one |column_two|
|1|2|

I couldn't find any related problem or solution in fitnesse wiki or anyother material.我在 Fitnesse wiki 或任何其他材料中找不到任何相关的问题或解决方案。

I figured out that this problem occurs because of Turkish characters.我发现这个问题是由土耳其语字符引起的。 The TYPE int is converted to "İNT" not "INT" so it couldn't be found. TYPE int 被转换为“İNT”而不是“INT”,因此无法找到它。

I have added -Duser.language=en to COMMAND_PATTERN Now it works without any problem.我已将-Duser.language=en添加到 COMMAND_PATTERN 现在它可以正常工作了。

!define COMMAND_PATTERN {java -Ds=${SOCKET_TIMEOUT} -Duser.language=en -cp %p %m }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.UnsupportedOperationException:option不是受支持的字段类型 - java.lang.UnsupportedOperationException: option is not a supported field type “ java.lang.UnsupportedOperationException:尚不支持。” - “java.lang.UnsupportedOperationException: Not supported yet.” “java.lang.UnsupportedOperationException:尚不支持。” - “java.lang.UnsupportedOperationException: Not supported yet.” java.lang.UnsupportedOperationException:尚不支持 - java.lang.UnsupportedOperationException: Not supported yet Java Dropbox HttpServletRequest(java.lang.UnsupportedOperationException:尚不支持。) - Java Dropbox HttpServletRequest ( java.lang.UnsupportedOperationException: Not supported yet.) 由java.lang.UnsupportedOperationException引起:AdapterView不支持addView(View,layoutParams) - Caused by java.lang.UnsupportedOperationException: addView(View,layoutParams) is not supported in the AdapterView Duke Fast Deduplication:java.lang.UnsupportedOperationException:尚不支持操作? - Duke Fast Deduplication: java.lang.UnsupportedOperationException: Operation not yet supported? Tomcat连接池-java.lang.UnsupportedOperationException:BasicDataSource不支持 - Tomcat Connection Pooling - java.lang.UnsupportedOperationException: Not supported by BasicDataSource java.lang.UnsupportedOperationException: 'posix:permissions' 不支持作为 Windows 上的初始属性 - java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute on Windows java.lang.UnsupportedOperationException: DROP CONSTRAINT 仅支持 Hibernate - java.lang.UnsupportedOperationException: DROP CONSTRAINT is only supported for Hibernate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM