java.lang.UnsupportedOperationException

Atlassian JIRA | Bob Swift [Bob Swift Atlassian Add-ons] | 3 years ago
  1. 0

    An incompatibility has been introduced with this build. When running search when > 50 elements found. Limiting the count parameter to 50 or less works around this problem. However, existing automation will fail as it is not common to impose a result limit. Moreover, it is important to be able to find ALL elements matching the search criteria so that automation can act on each result. If you want to enforce paging support, then that should be done via REST APIs only or make the new SOAP limit much higher and some way to do the paging. Easily reproduced using the Atlassian CLI on an installation that finds more than 50 entries: *--action getContentList --search "home"* {noformat} java.lang.UnsupportedOperationException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1789) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2950) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:815) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.search(ConfluenceserviceV2SoapBindingStub.java:4984) at org.swift.confluence.cli.ConfluenceClient.addContentListFromSearch(ConfluenceClient.java:5455) at org.swift.confluence.cli.ConfluenceClient.getContentListFromSearch(ConfluenceClient.java:5402) at org.swift.confluence.cli.ConfluenceClient.getContentList(ConfluenceClient.java:5295) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:664) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:124) at org.swift.common.cli.CliClient.doWork(CliClient.java:393) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:150) {noformat}

    Atlassian JIRA | 3 years ago | Bob Swift [Bob Swift Atlassian Add-ons]
    java.lang.UnsupportedOperationException
  2. 0

    An incompatibility has been introduced with this build. When running search when > 50 elements found. Limiting the count parameter to 50 or less works around this problem. However, existing automation will fail as it is not common to impose a result limit. Moreover, it is important to be able to find ALL elements matching the search criteria so that automation can act on each result. If you want to enforce paging support, then that should be done via REST APIs only or make the new SOAP limit much higher and some way to do the paging. Easily reproduced using the Atlassian CLI on an installation that finds more than 50 entries: *--action getContentList --search "home"* {noformat} java.lang.UnsupportedOperationException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1789) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2950) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:815) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.search(ConfluenceserviceV2SoapBindingStub.java:4984) at org.swift.confluence.cli.ConfluenceClient.addContentListFromSearch(ConfluenceClient.java:5455) at org.swift.confluence.cli.ConfluenceClient.getContentListFromSearch(ConfluenceClient.java:5402) at org.swift.confluence.cli.ConfluenceClient.getContentList(ConfluenceClient.java:5295) at org.swift.confluence.cli.ConfluenceClient.handleRequest(ConfluenceClient.java:664) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:124) at org.swift.common.cli.CliClient.doWork(CliClient.java:393) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:150) {noformat}

    Atlassian JIRA | 3 years ago | Bob Swift [Bob Swift Atlassian Add-ons]
    java.lang.UnsupportedOperationException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JAXB Unmarshal List of Interfaces

    Stack Overflow | 11 months ago | billdoor
    java.lang.UnsupportedOperationException

    1 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.UnsupportedOperationException

      No message provided

      at org.apache.lucene.search.BooleanScorer.nextDoc()
    2. Lucene
      BooleanScorer.nextDoc
      1. org.apache.lucene.search.BooleanScorer.nextDoc(BooleanScorer.java:319)
      1 frame
    3. com.atlassian.confluence
      BoostingQuery$BoostingQueryScorer.nextDoc
      1. com.atlassian.confluence.search.v2.lucene.boosting.BoostingQuery$BoostingQueryScorer.nextDoc(BoostingQuery.java:192)
      1 frame
    4. Lucene
      IndexSearcher.searchAfter
      1. org.apache.lucene.search.Scorer.score(Scorer.java:64)
      2. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:624)
      3. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
      4. org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
      5. org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:258)
      5 frames
    5. com.atlassian.confluence
      SearcherWithTokenAction.perform
      1. com.atlassian.confluence.search.v2.lucene.ScoreDocIterator.next(ScoreDocIterator.java:63)
      2. com.atlassian.confluence.search.v2.lucene.SearcherWithTokenAction.internalPerformSearchWithPostFiltering(SearcherWithTokenAction.java:160)
      3. com.atlassian.confluence.search.v2.lucene.SearcherWithTokenAction.perform(SearcherWithTokenAction.java:67)
      4. com.atlassian.confluence.search.v2.lucene.SearcherWithTokenAction.perform(SearcherWithTokenAction.java:25)
      4 frames
    6. com.atlassian.bonnie
      LuceneConnection.withSearcher
      1. com.atlassian.bonnie.LuceneConnection.withSearcher(LuceneConnection.java:387)
      1 frame
    7. com.atlassian.confluence
      XhtmlSoapService.search
      1. com.atlassian.confluence.search.v2.lucene.LuceneSearchManager.search(LuceneSearchManager.java:125)
      2. com.atlassian.confluence.search.v2.lucene.LuceneSearchManager.search(LuceneSearchManager.java:118)
      3. com.atlassian.confluence.rpc.soap.services.PagesSoapService.search(PagesSoapService.java:374)
      4. com.atlassian.confluence.rpc.soap.services.PagesSoapService.search(PagesSoapService.java:403)
      5. com.atlassian.confluence.rpc.soap.XhtmlSoapService.search(XhtmlSoapService.java:529)
      5 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. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    10. com.atlassian.spring
      SpringProfilingInterceptor.invoke
      1. com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      1 frame
    11. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    12. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    13. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    14. com.sun.proxy
      $Proxy2087.search
      1. com.sun.proxy.$Proxy2087.search(Unknown Source)
      1 frame
    15. com.atlassian.confluence
      ConfluenceXmlRpcHandlerImpl.search
      1. com.atlassian.confluence.rpc.xmlrpc.ConfluenceXmlRpcHandlerImpl.search(ConfluenceXmlRpcHandlerImpl.java:479)
      1 frame
    16. 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