org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping #{__frch_item_0,type}. Check syntax #{property|(expression), var1=value1, var2=value2, ...}

Stack Overflow | Frank | 3 months ago
  1. 0

    MyBatis Batch Insert Error

    Stack Overflow | 3 months ago | Frank
    org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping #{__frch_item_0,type}. Check syntax #{property|(expression), var1=value1, var2=value2, ...}
  2. 0

    Exception string index out of bounds

    Stack Overflow | 3 years ago | user3019158
    java.lang.StringIndexOutOfBoundsException: String index out of range: 19
  3. 0

    Problem with ISO8601Utils

    GitHub | 3 years ago | HellKeeper62
    java.lang.StringIndexOutOfBoundsException: String index out of range: 19
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IOOBE

    GitHub | 3 years ago | meysholdt
    java.lang.StringIndexOutOfBoundsException: String index out of range: 156

  1. harshg 2 times, last 2 months ago
  2. balintn 4 times, last 3 months ago
  3. poroszd 1 times, last 3 months ago
  4. Stefan Braune 1 times, last 5 months ago
  5. mauritius 1 times, last 5 months ago
6 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: 19

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:658)
    1 frame
  3. MyBatis
    CachingExecutor.update
    1. org.apache.ibatis.builder.ParameterExpression.trimmedStr(ParameterExpression.java:132)
    2. org.apache.ibatis.builder.ParameterExpression.option(ParameterExpression.java:125)
    3. org.apache.ibatis.builder.ParameterExpression.jdbcTypeOpt(ParameterExpression.java:100)
    4. org.apache.ibatis.builder.ParameterExpression.property(ParameterExpression.java:71)
    5. org.apache.ibatis.builder.ParameterExpression.parse(ParameterExpression.java:48)
    6. org.apache.ibatis.builder.ParameterExpression.<init>(ParameterExpression.java:40)
    7. org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.parseParameterMapping(SqlSourceBuilder.java:127)
    8. org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.buildParameterMapping(SqlSourceBuilder.java:71)
    9. org.apache.ibatis.builder.SqlSourceBuilder$ParameterMappingTokenHandler.handleToken(SqlSourceBuilder.java:66)
    10. org.apache.ibatis.parsing.GenericTokenParser.parse(GenericTokenParser.java:53)
    11. org.apache.ibatis.builder.SqlSourceBuilder.parse(SqlSourceBuilder.java:45)
    12. org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:43)
    13. org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:278)
    14. org.apache.ibatis.executor.statement.BaseStatementHandler.<init>(BaseStatementHandler.java:64)
    15. org.apache.ibatis.executor.statement.PreparedStatementHandler.<init>(PreparedStatementHandler.java:39)
    16. org.apache.ibatis.executor.statement.RoutingStatementHandler.<init>(RoutingStatementHandler.java:45)
    17. org.apache.ibatis.session.Configuration.newStatementHandler(Configuration.java:468)
    18. org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:46)
    19. org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:105)
    20. org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:71)
    20 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. MyBatis
    Plugin.invoke
    1. org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
    1 frame
  6. com.sun.proxy
    $Proxy43.update
    1. com.sun.proxy.$Proxy43.update(Unknown Source)
    1 frame
  7. MyBatis
    DefaultSqlSession.insert
    1. org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:152)
    2. org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:141)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  9. MyBatis-Spring
    SqlSessionTemplate$SqlSessionInterceptor.invoke
    1. org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:358)
    1 frame
  10. com.sun.proxy
    $Proxy29.insert
    1. com.sun.proxy.$Proxy29.insert(Unknown Source)
    1 frame
  11. MyBatis-Spring
    SqlSessionTemplate.insert
    1. org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:240)
    1 frame
  12. MyBatis
    MapperProxy.invoke
    1. org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:51)
    2. org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:52)
    2 frames
  13. com.sun.proxy
    $Proxy33.createConditionProducts
    1. com.sun.proxy.$Proxy33.createConditionProducts(Unknown Source)
    1 frame
  14. com.lemall.srd
    PromotionConditionProductServiceTest.addPromotionConditionProducts
    1. com.lemall.srd.promotion.web.data.service.impl.PromotionConditionProductServiceImpl.addPromotionConditionProducts(PromotionConditionProductServiceImpl.java:64)
    2. com.lemall.srd.promotion.web.data.service.PromotionConditionProductServiceTest.addPromotionConditionProducts(PromotionConditionProductServiceTest.java:55)
    2 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  16. JUnit
    InvokeMethod.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    4 frames
  17. Spring TestContext
    SpringRepeat.evaluate
    1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
    2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
    3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
    3 frames
  18. JUnit
    ParentRunner.runLeaf
    1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    1 frame
  19. Spring TestContext
    SpringJUnit4ClassRunner.runChild
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:224)
    2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
    2 frames
  20. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    5 frames
  21. Spring TestContext
    RunAfterTestClassCallbacks.evaluate
    1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
    2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:68)
    2 frames
  22. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    1 frame
  23. Spring TestContext
    SpringJUnit4ClassRunner.run
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
    1 frame
  24. JUnit
    JUnitCore.run
    1. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    1 frame
  25. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  26. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
    2 frames
  27. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  28. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame