Unable to get search results from FileConnector

454 views
Skip to first unread message

rohit.k...@gmail.com

unread,
May 18, 2013, 7:13:54 AM5/18/13
to const...@googlegroups.com
Hi,

I am using FileConnector on my local folder having a number of files. I am using Constellio 2.0 M2 on Windows 7 OS and having Java version 1.6.
I am able to index the files, but when I try to do any search, it doesn't give any results.

Could anyone please let me know what is going wrong?


Thanks,
Rohit

Anshul Tiwari

unread,
May 24, 2013, 1:47:24 AM5/24/13
to const...@googlegroups.com
Please uncheck the security option in connector settings.

rohit.k...@gmail.com

unread,
May 26, 2013, 1:24:11 AM5/26/13
to const...@googlegroups.com
I am not which Security Option are you referring to. I do not see that in the connector settings.

Anshul Tiwari

unread,
May 27, 2013, 2:50:34 AM5/27/13
to const...@googlegroups.com
have a look to the screenshot attached
Untitled.jpg

rohit.k...@gmail.com

unread,
May 27, 2013, 11:30:37 AM5/27/13
to const...@googlegroups.com
Hi,

I do not see this option in Constellio 2.0. Please see the attached screenshot.

However, I was able to get the search results after following the document security video, that requires creating credential group for the connector.

Now, the problem is that when I try to open the files in the search results, it throws "Logon Failure" exception in the browser as:

WicketMessage: Can't instantiate page using constructor public com.doculibre.constellio.wicket.pages.smb.SmbServletPage(org.apache.wicket.PageParameters) and argument recordID = "[13695883716648796]" collection = "[Test_Folder]"

Root cause:

jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:524)
at jcifs.smb.SmbTransport.send(SmbTransport.java:641)
at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:395)
at jcifs.smb.SmbSession.send(SmbSession.java:224)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:906)
at jcifs.smb.SmbFile.connect(SmbFile.java:949)
at jcifs.smb.SmbFile.connect0(SmbFile.java:875)
at jcifs.smb.SmbFile.open0(SmbFile.java:965)
at jcifs.smb.SmbFile.open(SmbFile.java:999)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73)
at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65)
at com.doculibre.constellio.wicket.pages.smb.SMBUtils.copySmbFileToDirectory(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SMBUtils.copySmbFileToConnectorInstanceDirectory(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SmbServletPage.getSmbFile(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SmbServletPage.<init>(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:182)
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:278)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:293)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)
at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.doculibre.constellio.filters.SetCharacterEncodingFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.doculibre.constellio.filters.LocalRequestFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Complete stack:

org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public com.doculibre.constellio.wicket.pages.smb.SmbServletPage(org.apache.wicket.PageParameters) and argument recordID = "[13695883716648796]" collection = "[Test_Folder]"
at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:206)
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:278)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:293)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:182)
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:278)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:293)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

java.lang.RuntimeException: jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
at com.doculibre.constellio.wicket.pages.smb.SMBUtils.copySmbFileToDirectory(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SMBUtils.copySmbFileToConnectorInstanceDirectory(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SmbServletPage.getSmbFile(Unknown Source)
at com.doculibre.constellio.wicket.pages.smb.SmbServletPage.<init>(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:182)
at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:278)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:293)
at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210)
at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1239)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:532)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:356)

Do you have any clue on how to resolve this?

Thanks,
Rohit
Connector_Settings.png

Nicolas Bélisle

unread,
May 29, 2013, 12:37:41 AM5/29/13
to const...@googlegroups.com
Hi, 

I see that the option is not there. We'll fix this in the next revision. 

I am not able to reproduce your exception however : jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password.
Are you using a local share (same server) or another server ?
We do a double checkup (on the results page and when you access the document) with the same credentials. Are able to reproduce the problem each time (clicking a search result) ?

Regards, 

Nicolas


--------------------------------------------------
Nicolas Belisle, MBA
DocuLibre Inc.
http://www.doculibre.com
http://www.constellio.com
Tel: (514) 655-5185
Tel : (877) 655-0321 #655
Skype: nicolas.belisle
Fax: (877) 665-2844


--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Constellio.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse constellio+...@googlegroups.com.
Pour envoyer un message à ce groupe, adressez un e-mail à const...@googlegroups.com.
Visitez ce groupe à l'adresse http://groups.google.com/group/constellio?hl=fr .
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

rohit.k...@gmail.com

unread,
May 29, 2013, 12:45:02 AM5/29/13
to const...@googlegroups.com
Hi Nicolas,

Thanks for your response; I have been really struggling to get it work.

I am using a local share (on the same machine) and I am giving the same credentials - the credentials in the connector settings is same as the one given in the credential group.
Moreover, I get the error every time I click on the search result. I now tried Constellio 1.3 and having the same issues.

Could you please help me on this?


Thanks,
Rohit

Nguyen Tung

unread,
Aug 10, 2013, 11:31:51 AM8/10/13
to const...@googlegroups.com
Hi Rohit, I have faced the same problem as you when getting a file. I have downloaded the source code and re-build my own system. So i find something interesting. It can help but you have to know java programming.
You can take a look at SmbServletPage.java in method getSmbFile (line 79).
There's authentication for user to download file. But it actually missing the domain for user, 
smbUser = cred.getUsername();
and then exception occur. I try to fix like :  
smbUser  = cred.getDomain() + "\\" + cred.getUsername();

Now issues has resolved.

@Nicolas, can you look at these code and give some advises? 

Vào 11:45:02 UTC+7 Thứ tư, ngày 29 tháng năm năm 2013, rohit.k...@gmail.com đã viết:

Arag24

unread,
Nov 4, 2013, 5:02:12 AM11/4/13
to const...@googlegroups.com
Hi guys,

I'm facing the same trouble, I got "unknown username or bad password" on clicking on file... even if user & password are identical to credential groups.
According to the last answer, it seems issues can be solved recompiling source cods changing smbUser definition...

My questions are:
 * Can we have a binary fixing this issue? Or could we have a link to download 1.3 source code?
 * If this bug is planned for a new revision? Do you have roadmap for new revision?

Sorry for these questions, but this is really frustrating to get huge amount indexed documents and obtaining trobule when displaying. This project/software seems absolutely fantastic, and I really want to evaluate if it can bring benefit (and quantify it).

Thanks for reply...

fabrice

unread,
Dec 4, 2013, 9:15:53 AM12/4/13
to const...@googlegroups.com
Hi all,
 
I'm facinf the same issue "unknown username or bad password" any idea?
 
Thanks in advance
 
Fabrice

Eduardo Sanjurjo

unread,
Apr 11, 2014, 9:09:52 AM4/11/14
to const...@googlegroups.com
Hi,
 
I have the same problem on Windows 7, the documents are indexed but the seach shows 0 results.
Recompile the SmbServletPage.java  solves the problem? Any idea?
 
Thanks

Geoff Nordli

unread,
Apr 11, 2014, 8:33:59 PM4/11/14
to const...@googlegroups.com
On 14-04-11 06:09 AM, Eduardo Sanjurjo wrote:
> Hi,
> I have the same problem on Windows 7, the documents are indexed but
> the seach shows 0 results.
> Recompile the SmbServletPage.java solves the problem? Any idea?
> Thanks
>

I seem to have the same issue as well.

The documents are all indexed, but I can't get it to return any results.

thanks,

Geoff

Reply all
Reply to author
Forward
0 new messages