SlideShowExtractor NoSuchMethodError org.apache.poi.sl.usermodel.Sheet.getPlaceholderDetails












0















Trying to use POI 4.0.1 to extract text from powerpoints. Using all POI 4.0.1 jars and getting a method not found exception




Exception in thread "Thread-2" java.lang.NoSuchMethodError:
org.apache.poi.sl.usermodel.Sheet.getPlaceholderDetails(Lorg/apache/poi/sl/usermodel/Placeholder;)Lorg/apache/poi/sl/usermodel/PlaceholderDetails;
at org.apache.poi.sl.extractor.SlideShowExtractor.addSheetPlaceholderDatails(SlideShowExtractor.java:224)
at org.apache.poi.sl.extractor.SlideShowExtractor.printHeaderReturnFooter(SlideShowExtractor.java:183)
at org.apache.poi.sl.extractor.SlideShowExtractor.printShapeText(SlideShowExtractor.java:236)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:130)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:120)




Looked at my classpath and didn't find mismatched or duplicate poi jars. Poked around in the POI 4 distribution jars and could not find the missing method



FileInputStream fis = new FileInputStream( file.getPath() );
XMLSlideShow xmlA = new XMLSlideShow( fis );
SlideShowExtractor<XSLFShape, XSLFTextParagraph> ex = new SlideShowExtractor<>( xmlA );

String text = ex.getText();









share|improve this question




















  • 1





    Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

    – Axel Richter
    Jan 3 at 13:16











  • I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

    – user3825850
    Jan 3 at 13:54






  • 1





    Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

    – Axel Richter
    Jan 3 at 13:58
















0















Trying to use POI 4.0.1 to extract text from powerpoints. Using all POI 4.0.1 jars and getting a method not found exception




Exception in thread "Thread-2" java.lang.NoSuchMethodError:
org.apache.poi.sl.usermodel.Sheet.getPlaceholderDetails(Lorg/apache/poi/sl/usermodel/Placeholder;)Lorg/apache/poi/sl/usermodel/PlaceholderDetails;
at org.apache.poi.sl.extractor.SlideShowExtractor.addSheetPlaceholderDatails(SlideShowExtractor.java:224)
at org.apache.poi.sl.extractor.SlideShowExtractor.printHeaderReturnFooter(SlideShowExtractor.java:183)
at org.apache.poi.sl.extractor.SlideShowExtractor.printShapeText(SlideShowExtractor.java:236)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:130)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:120)




Looked at my classpath and didn't find mismatched or duplicate poi jars. Poked around in the POI 4 distribution jars and could not find the missing method



FileInputStream fis = new FileInputStream( file.getPath() );
XMLSlideShow xmlA = new XMLSlideShow( fis );
SlideShowExtractor<XSLFShape, XSLFTextParagraph> ex = new SlideShowExtractor<>( xmlA );

String text = ex.getText();









share|improve this question




















  • 1





    Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

    – Axel Richter
    Jan 3 at 13:16











  • I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

    – user3825850
    Jan 3 at 13:54






  • 1





    Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

    – Axel Richter
    Jan 3 at 13:58














0












0








0








Trying to use POI 4.0.1 to extract text from powerpoints. Using all POI 4.0.1 jars and getting a method not found exception




Exception in thread "Thread-2" java.lang.NoSuchMethodError:
org.apache.poi.sl.usermodel.Sheet.getPlaceholderDetails(Lorg/apache/poi/sl/usermodel/Placeholder;)Lorg/apache/poi/sl/usermodel/PlaceholderDetails;
at org.apache.poi.sl.extractor.SlideShowExtractor.addSheetPlaceholderDatails(SlideShowExtractor.java:224)
at org.apache.poi.sl.extractor.SlideShowExtractor.printHeaderReturnFooter(SlideShowExtractor.java:183)
at org.apache.poi.sl.extractor.SlideShowExtractor.printShapeText(SlideShowExtractor.java:236)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:130)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:120)




Looked at my classpath and didn't find mismatched or duplicate poi jars. Poked around in the POI 4 distribution jars and could not find the missing method



FileInputStream fis = new FileInputStream( file.getPath() );
XMLSlideShow xmlA = new XMLSlideShow( fis );
SlideShowExtractor<XSLFShape, XSLFTextParagraph> ex = new SlideShowExtractor<>( xmlA );

String text = ex.getText();









share|improve this question
















Trying to use POI 4.0.1 to extract text from powerpoints. Using all POI 4.0.1 jars and getting a method not found exception




Exception in thread "Thread-2" java.lang.NoSuchMethodError:
org.apache.poi.sl.usermodel.Sheet.getPlaceholderDetails(Lorg/apache/poi/sl/usermodel/Placeholder;)Lorg/apache/poi/sl/usermodel/PlaceholderDetails;
at org.apache.poi.sl.extractor.SlideShowExtractor.addSheetPlaceholderDatails(SlideShowExtractor.java:224)
at org.apache.poi.sl.extractor.SlideShowExtractor.printHeaderReturnFooter(SlideShowExtractor.java:183)
at org.apache.poi.sl.extractor.SlideShowExtractor.printShapeText(SlideShowExtractor.java:236)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:130)
at org.apache.poi.sl.extractor.SlideShowExtractor.getText(SlideShowExtractor.java:120)




Looked at my classpath and didn't find mismatched or duplicate poi jars. Poked around in the POI 4 distribution jars and could not find the missing method



FileInputStream fis = new FileInputStream( file.getPath() );
XMLSlideShow xmlA = new XMLSlideShow( fis );
SlideShowExtractor<XSLFShape, XSLFTextParagraph> ex = new SlideShowExtractor<>( xmlA );

String text = ex.getText();






apache-poi






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 12:32









Jens

53.5k135678




53.5k135678










asked Jan 3 at 12:31









user3825850user3825850

2315




2315








  • 1





    Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

    – Axel Richter
    Jan 3 at 13:16











  • I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

    – user3825850
    Jan 3 at 13:54






  • 1





    Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

    – Axel Richter
    Jan 3 at 13:58














  • 1





    Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

    – Axel Richter
    Jan 3 at 13:16











  • I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

    – user3825850
    Jan 3 at 13:54






  • 1





    Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

    – Axel Richter
    Jan 3 at 13:58








1




1





Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

– Axel Richter
Jan 3 at 13:16





Am I right that your code compiles without errors but throws java.lang.NoSuchMethodError on runtime? If so, you definitely must have apache poi jars lower than version 4.0.1 in class path while run time. Please check runtime class path again. The org.apache.poi.sl.usermodel.Sheet is contained in poi-4.0.1.jar. So please check you only have poi-*4.0.1.jars in class path while runtime and no other poi-*.jars from versions lower than 4.0.1.

– Axel Richter
Jan 3 at 13:16













I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

– user3825850
Jan 3 at 13:54





I thought that it was a classpath issue but couldn't figure out how since I had no other poi jars. Turned out that the tika-app jar embeds poi (or some subsets of it) and tika was on the classpath.

– user3825850
Jan 3 at 13:54




1




1





Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

– Axel Richter
Jan 3 at 13:58





Of course you should stay actual with all libraries. Apache Tika 1.20 - "Upgrade to Apache POI 4.0.1".

– Axel Richter
Jan 3 at 13:58












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54022350%2fslideshowextractor-nosuchmethoderror-org-apache-poi-sl-usermodel-sheet-getplaceh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54022350%2fslideshowextractor-nosuchmethoderror-org-apache-poi-sl-usermodel-sheet-getplaceh%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Angular Downloading a file using contenturl with Basic Authentication

Olmecas

Can't read property showImagePicker of undefined in react native iOS