lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From noor <noo...@opentechindia.com>
Subject Re: Debug Solr in Netbeans..
Date Mon, 15 Jun 2009 14:20:25 GMT
No.
In netbeans, debugger-console output shows,

Attaching to localhost:8983
handshake failed - connection prematurally closed

i dont know where the problem is ?

Mark Miller wrote:
> Do you see the following printed to std out when you start solr (using 
> 'run-example')?
>
> Listening for transport dt_socket at address: 5005
>
> noor wrote:
>> Addition to the previous reply:
>> I built my custom project and put into solr webapps lib folder.
>> And starts running solr.
>> In netbeans, i made the changes as i said before.
>> But it shows connection refused error.
>>
>> anybody please give me the solution...
>>
>> noor wrote:
>>> Solr starts running in the port 8983,
>>> i created build.properties in the project folder, where the 
>>> build.xml is.
>>> And in that empty build.properties file,
>>> i added,
>>> example.debug=true
>>> only.
>>> And in Netbeans, Debug -> Attach Debugger,
>>> - Debugger is JavaDebugger(JPDA);
>>> - Connector is SocketAttach(Attaches by socket to other VMs)
>>> - HOST is localhost;
>>> - Port as 5005;
>>> and Timeout is empty.
>>>
>>> During solr running, i set this, but in the output screen shows 
>>> "Connection is refused."
>>>
>>> Is my changes are correct ??? or i need to change anything else...
>>>
>>>
>>> thanks and regards,
>>> Noor
>>>
>>>
>>> Mark Miller wrote:
>>>> noor wrote:
>>>>> hi, i am new to apache solr.
>>>>> i got the solr source code, and i created my own (custom) classes.
>>>>> Also, i make the request reference to that newly created classes 
>>>>> in solr-config.xml.
>>>>>
>>>>> now i need to debug my code, when the solr search calls my class..
>>>>> So, for this, i dont know how to debug my code....?
>>>>>
>>>>> Please anybody help me to achieve this.
>>>>>
>>>>> thanks and regards,
>>>>> Noor
>>>>>
>>>>>
>>>> Make a file next to build.xml called build.properties.
>>>>
>>>> Add to the empty file: example.debug=true
>>>>
>>>> Run the ant target 'run-example' in build.xml.
>>>>
>>>> Solr will run with the ability to connect with a remote debugger on 
>>>> port 5005.
>>>>
>>>> In Netbeans, from the main menu, select Debug > Attach Debugger... 
>>>> (In NetBeans 6.1 and older select Run > Attach Debugger...).
>>>>
>>>> Follow the dialogue box prompts to connect to the running Solr 
>>>> example.
>>>>
>>>
>>>
>>
>
>


Mime
View raw message