Re: Issue with JxtaSocket example

Bruce Rosenthal <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Yes, that can sometimes happen, though it shouldn't. It would be nice to 
figure out why the current coding approach is not working though, even 
though the focus is on the socket mechanism and not InputStreamReaders 
working as they should.

FYI I have added a watch for the resource variable and a break on 

    ClassLoader cl = JxtaSocketExample.class.getClassLoader();

in the getResourceInputStream(String resource) {} method

resource gets value = "PlatformConfig.master" //so that is likely the 
problem because there is no path.

Mohamed Abdelaziz wrote:

> I suggest you specify the full canonical path of the file instead.  
> IDE's usually alter the $CWD, which would result in the behavior 
> you're seeing.
>
> Mohamed
>
> Bruce Rosenthal wrote:
>
>> Unfortuneatly, I have it in $CWD, $CWD/.jxta, $CWD/client (just to 
>> cover my bases).
>>
>> I also tried forcing the issue by invoking InputStream is as follows:
>>
>>    InputStream is = 
>> getResourceInputStream(System.getProperty("user.dir") + "\\" + fname);
>>
>> and that also doesn't work.
>>
>> I can show you vai a WebEx if you want.
>>
>> Mohamed Abdelaziz wrote:
>>
>>> sounds like "PlatformConfig.master"  does not exist in $CWD
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.