org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

ZK-Tracker | dennis | 3 years ago
  1. 0

    get exception when evaluating hyperlink after export & clear cell {code} @Test public void testZSS4xxx(){ Book book = Util.loadBook(Issue400Test.class, "book/blank.xlsx"); Sheet sheet = book.getSheetAt(0); Ranges.range(sheet, "A1").setCellEditText("http://www.google.com"); Ranges.range(sheet, "A2").setCellEditText("http://www.zkoss.org"); Hyperlink link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.google.com"); Assert.assertEquals(link.getLabel(), "http://www.google.com"); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); book = Util.swap(book); sheet = book.getSheetAt(0); link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.google.com"); Assert.assertEquals(link.getLabel(), "http://www.google.com"); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); Ranges.range(sheet, "A1").clearContents(); Util.export(book, Setup.getTempFile());//get error if has this line link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNull(link); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); } {code} {code} org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213) at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTHyperlinkImpl.getRef(Unknown Source) at org.zkoss.poi.xssf.usermodel.XSSFHyperlink.getCellRef(XSSFHyperlink.java:138) at org.zkoss.poi.xssf.usermodel.XSSFSheet.getHyperlink(XSSFSheet.java:621) at org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:910) at org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:1) at org.zkoss.zss.model.sys.impl.BookHelper.getHyperlink(BookHelper.java:1016) at org.zkoss.zss.model.sys.impl.XRangeImpl.getHyperlink(XRangeImpl.java:161) at org.zkoss.zss.api.impl.RangeImpl.getCellHyperlink(RangeImpl.java:635) at org.zkoss.zss.api.impl.Issue400Test.testZSS4xxx(Issue400Test.java:1056) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {code}

    ZK-Tracker | 3 years ago | dennis
    org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
  2. 0

    get exception when evaluating hyperlink after export & clear cell {code} @Test public void testZSS4xxx(){ Book book = Util.loadBook(Issue400Test.class, "book/blank.xlsx"); Sheet sheet = book.getSheetAt(0); Ranges.range(sheet, "A1").setCellEditText("http://www.google.com"); Ranges.range(sheet, "A2").setCellEditText("http://www.zkoss.org"); Hyperlink link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.google.com"); Assert.assertEquals(link.getLabel(), "http://www.google.com"); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); book = Util.swap(book); sheet = book.getSheetAt(0); link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.google.com"); Assert.assertEquals(link.getLabel(), "http://www.google.com"); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); Ranges.range(sheet, "A1").clearContents(); Util.export(book, Setup.getTempFile());//get error if has this line link = Ranges.range(sheet, "A1").getCellHyperlink(); Assert.assertNull(link); link = Ranges.range(sheet, "A2").getCellHyperlink(); Assert.assertNotNull(link); Assert.assertEquals(Hyperlink.HyperlinkType.URL,link.getType()); Assert.assertEquals(link.getAddress(), "http://www.zkoss.org"); Assert.assertEquals(link.getLabel(), "http://www.zkoss.org"); } {code} {code} org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213) at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTHyperlinkImpl.getRef(Unknown Source) at org.zkoss.poi.xssf.usermodel.XSSFHyperlink.getCellRef(XSSFHyperlink.java:138) at org.zkoss.poi.xssf.usermodel.XSSFSheet.getHyperlink(XSSFSheet.java:621) at org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:910) at org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:1) at org.zkoss.zss.model.sys.impl.BookHelper.getHyperlink(BookHelper.java:1016) at org.zkoss.zss.model.sys.impl.XRangeImpl.getHyperlink(XRangeImpl.java:161) at org.zkoss.zss.api.impl.RangeImpl.getCellHyperlink(RangeImpl.java:635) at org.zkoss.zss.api.impl.Issue400Test.testZSS4xxx(Issue400Test.java:1056) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {code}

    ZK-Tracker | 3 years ago | dennis
    org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
  3. 0

    Upgraded eclipse and testng on eclipse and now my project is not running

    Stack Overflow | 5 years ago | twsel
    org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Facing the .XmlValueDisconnectedException issue when trying to insert the values from Excel sheet

    Google Groups | 3 years ago | NaveenKumar Reddy R
    org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

    3 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. org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

      No message provided

      at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned()
    2. XmlBeans
      XmlObjectBase.check_orphaned
      1. org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213)
      1 frame
    3. Apache POI
      CTHyperlinkImpl.getRef
      1. org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTHyperlinkImpl.getRef(Unknown Source)
      1 frame
    4. org.zkoss.poi
      XSSFCell.getHyperlink
      1. org.zkoss.poi.xssf.usermodel.XSSFHyperlink.getCellRef(XSSFHyperlink.java:138)
      2. org.zkoss.poi.xssf.usermodel.XSSFSheet.getHyperlink(XSSFSheet.java:621)
      3. org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:910)
      4. org.zkoss.poi.xssf.usermodel.XSSFCell.getHyperlink(XSSFCell.java:1)
      4 frames
    5. org.zkoss.zss
      Issue400Test.testZSS4xxx
      1. org.zkoss.zss.model.sys.impl.BookHelper.getHyperlink(BookHelper.java:1016)
      2. org.zkoss.zss.model.sys.impl.XRangeImpl.getHyperlink(XRangeImpl.java:161)
      3. org.zkoss.zss.api.impl.RangeImpl.getCellHyperlink(RangeImpl.java:635)
      4. org.zkoss.zss.api.impl.Issue400Test.testZSS4xxx(Issue400Test.java:1056)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. JUnit
      ParentRunner.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      16. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      16 frames
    8. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    9. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames