com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output

Atlassian JIRA | Rafael Sperafico [Atlassian] | 2 years ago
  1. 0

    The table "{{AUTH_ATTEMPT_INFO}}" holds information about what login user was tried, how many times and when was last attempt. Bamboo's backup tries to dump every table including the above one. Eventually, username(s) with invalid characters could cause problems when we creating the backup. {noformat} ... 2014-10-01 22:01:39,584 INFO [QuartzScheduler_Worker-8] [XmlMigrator] Ensuring the the file has been unmounted 2014-10-01 22:01:39,584 INFO [QuartzScheduler_Worker-8] [XmlMigrator] Unmounted /path/to/backup/bamboo_backup_2014_10_01.zip 2014-10-01 22:01:39,637 INFO [QuartzScheduler_Worker-8] [ServerLifecycleManagerImpl] Server state changed to 'RUNNING' from 'PAUSED' 2014-10-01 22:01:39,637 ERROR [QuartzScheduler_Worker-8] [ScheduledBackupJob] com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:464) at org.codehaus.staxmate.out.SMOutputContext.writeCharacters(SMOutputContext.java:479) at org.codehaus.staxmate.out.SMOutputContainer.addCharacters(SMOutputContainer.java:171) at com.atlassian.bamboo.migration.SMOutputElementAppender.append(SMOutputElementAppender.java:39) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:70) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:22) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.exportXml(BambooStAXMappingHelperAbstractImpl.java:108) at com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:169) at com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:147) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportData(LoginInformationMapper.java:125) at com.atlassian.bamboo.migration.XmlMigrator.exportToStream(XmlMigrator.java:498) at com.atlassian.bamboo.migration.XmlMigrator.exportXml(XmlMigrator.java:428) at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629) at com.atlassian.bamboo.migration.XmlMigrator$$EnhancerByCGLIB$$7f976207.exportXml(<generated>) at com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooExport(ImportExportManagerImpl.java:95) at com.atlassian.bamboo.configuration.ScheduledBackupJob.execute(ScheduledBackupJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: java.io.IOException: Invalid null character in text to output at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:51) at com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:623) at com.ctc.wstx.sw.RestrictedCharsAwareBufferingXmlWriter.writeCharacters(RestrictedCharsAwareBufferingXmlWriter.java:557) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:462) ... 27 more ... {noformat} h5. Workaround Clean data from that table as per following. It's only used for CAPTCHA so it's not that important. {code:sql} DELETE * FROM AUTH_ATTEMPT_INFO; {code} _This should solve error message during backup._

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output
  2. 0

    The table "{{AUTH_ATTEMPT_INFO}}" holds information about what login user was tried, how many times and when was last attempt. Bamboo's backup tries to dump every table including the above one. Eventually, username(s) with invalid characters could cause problems when we creating the backup. {noformat} ... 2014-10-01 22:01:39,584 INFO [QuartzScheduler_Worker-8] [XmlMigrator] Ensuring the the file has been unmounted 2014-10-01 22:01:39,584 INFO [QuartzScheduler_Worker-8] [XmlMigrator] Unmounted /path/to/backup/bamboo_backup_2014_10_01.zip 2014-10-01 22:01:39,637 INFO [QuartzScheduler_Worker-8] [ServerLifecycleManagerImpl] Server state changed to 'RUNNING' from 'PAUSED' 2014-10-01 22:01:39,637 ERROR [QuartzScheduler_Worker-8] [ScheduledBackupJob] com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:464) at org.codehaus.staxmate.out.SMOutputContext.writeCharacters(SMOutputContext.java:479) at org.codehaus.staxmate.out.SMOutputContainer.addCharacters(SMOutputContainer.java:171) at com.atlassian.bamboo.migration.SMOutputElementAppender.append(SMOutputElementAppender.java:39) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:70) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:22) at com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.exportXml(BambooStAXMappingHelperAbstractImpl.java:108) at com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:169) at com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:147) at com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportData(LoginInformationMapper.java:125) at com.atlassian.bamboo.migration.XmlMigrator.exportToStream(XmlMigrator.java:498) at com.atlassian.bamboo.migration.XmlMigrator.exportXml(XmlMigrator.java:428) at com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629) at com.atlassian.bamboo.migration.XmlMigrator$$EnhancerByCGLIB$$7f976207.exportXml(<generated>) at com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooExport(ImportExportManagerImpl.java:95) at com.atlassian.bamboo.configuration.ScheduledBackupJob.execute(ScheduledBackupJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: java.io.IOException: Invalid null character in text to output at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:51) at com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:623) at com.ctc.wstx.sw.RestrictedCharsAwareBufferingXmlWriter.writeCharacters(RestrictedCharsAwareBufferingXmlWriter.java:557) at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:462) ... 27 more ... {noformat} h5. Workaround Clean data from that table as per following. It's only used for CAPTCHA so it's not that important. {code:sql} DELETE * FROM AUTH_ATTEMPT_INFO; {code} _This should solve error message during backup._

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output
  3. 0

    Invalid null character in text exception while receiving text from jms

    Stack Overflow | 4 years ago | Tanrikut
    java.lang.RuntimeException: Can not serialize OM Element Envelope
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JavaFX CheckBoxCell in TableView - Serializing with XStream Exception: Invalid null character in text to output

    Stack Overflow | 1 year ago | Kevin
    com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output
  6. 0

    [BAM-1701] Crowd integration issue. Directory does not allow principal modifications - Atlassian JIRA

    atlassian.com | 1 year ago
    com.ctc.wstx.exc.WstxIOException: Invalid null character in text to output

    4 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.io.IOException

      Invalid null character in text to output

      at com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar()
    2. Woodstox
      BaseStreamWriter.writeCharacters
      1. com.ctc.wstx.api.InvalidCharHandler$FailingHandler.convertInvalidChar(InvalidCharHandler.java:51)
      2. com.ctc.wstx.sw.XmlWriter.handleInvalidChar(XmlWriter.java:623)
      3. com.ctc.wstx.sw.RestrictedCharsAwareBufferingXmlWriter.writeCharacters(RestrictedCharsAwareBufferingXmlWriter.java:557)
      4. com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:462)
      4 frames
    3. StaxMate
      SMOutputContainer.addCharacters
      1. org.codehaus.staxmate.out.SMOutputContext.writeCharacters(SMOutputContext.java:479)
      2. org.codehaus.staxmate.out.SMOutputContainer.addCharacters(SMOutputContainer.java:171)
      2 frames
    4. com.atlassian.bamboo
      XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke
      1. com.atlassian.bamboo.migration.SMOutputElementAppender.append(SMOutputElementAppender.java:39)
      2. com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:70)
      3. com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportProperties(LoginInformationMapper.java:22)
      4. com.atlassian.bamboo.migration.BambooStAXMappingHelperAbstractImpl.exportXml(BambooStAXMappingHelperAbstractImpl.java:108)
      5. com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:169)
      6. com.atlassian.bamboo.migration.BambooStAXMappingListHelperAbstractImpl.exportListXml(BambooStAXMappingListHelperAbstractImpl.java:147)
      7. com.atlassian.bamboo.migration.stream.LoginInformationMapper.exportData(LoginInformationMapper.java:125)
      8. com.atlassian.bamboo.migration.XmlMigrator.exportToStream(XmlMigrator.java:498)
      9. com.atlassian.bamboo.migration.XmlMigrator.exportXml(XmlMigrator.java:428)
      10. com.atlassian.bamboo.migration.XmlMigrator$$FastClassByCGLIB$$b6578fc7.invoke(<generated>)
      10 frames
    5. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:694)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      2 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    8. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629)
      2 frames
    9. com.atlassian.bamboo
      ScheduledBackupJob.execute
      1. com.atlassian.bamboo.migration.XmlMigrator$$EnhancerByCGLIB$$7f976207.exportXml(<generated>)
      2. com.atlassian.bamboo.migration.ImportExportManagerImpl.bambooExport(ImportExportManagerImpl.java:95)
      3. com.atlassian.bamboo.configuration.ScheduledBackupJob.execute(ScheduledBackupJob.java:75)
      3 frames
    10. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      1 frame
    11. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      2. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      3. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      4. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      4 frames
    12. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      1 frame