[ 
https://issues.apache.org/jira/browse/TIKA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426142#comment-13426142
 ] 

Gary Karasiuk commented on TIKA-966:
------------------------------------

Using the 1.2 version of Tika, here is the stack trace of creating a new Tika() 
object.


Thread [main] (Suspended (breakpoint at line 50 in DefaultParser))      
        DefaultParser.getDefaultParsers(ServiceLoader) line: 50 
        DefaultParser.<init>(MediaTypeRegistry, ServiceLoader) line: 73 
        TikaConfig.getDefaultParser(MimeTypes, ServiceLoader) line: 70  
        TikaConfig.<init>() line: 170   
        TikaConfig.getDefaultConfig() line: 268 
        Tika.<init>() line: 93  
        Indexer.run(ParametersResolved) line: 80        
        Launcher.start(IApplicationContext) line: 45    
        EclipseAppHandle.run(Object) line: 196  
        EclipseAppLauncher.runApplication(Object) line: 110     
        EclipseAppLauncher.start(Object) line: 79       
        EclipseStarter.run(Object) line: 344    
        EclipseStarter.run(String[], Runnable) line: 179        
        NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not 
available [native method]  
        NativeMethodAccessorImpl.invoke(Object, Object[]) line: 57      
        DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43  
        Method.invoke(Object, Object...) line: 601      
        Main.invokeFramework(String[], URL[]) line: 622 
        Main.basicRun(String[]) line: 577       
        Main.run(String[]) line: 1410   
        Main.main(String[]) line: 1386  

The list of parsers that comes back is an empty list. No where in this code 
path are the dynamically added parsers referenced.

                
> org.apache.tika.Tika missing from tika-bundle-1.2.jar
> -----------------------------------------------------
>
>                 Key: TIKA-966
>                 URL: https://issues.apache.org/jira/browse/TIKA-966
>             Project: Tika
>          Issue Type: Bug
>          Components: packaging
>    Affects Versions: 1.2
>            Reporter: Gary Karasiuk
>
> In version 0.9 I was able to use the org.apache.tika.Tika class in my OSGi 
> application simply by including the tika-bundle.
> I am now trying to move to version 1.2 and this class is missing from the 
> tika-bundle-1.2.jar
> The top level documentation says "Tika bundle. An OSGi bundle that includes 
> everything you need to use all Tika functionality in an OSGi environment." so 
> I think that this should be continued to included.
> I tried including the tika-core-1.2.jar into my application, but even after 
> fiddling with various start levels I can't get the Tika class to find the 
> parsers in the tika-bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to