JCA trouble - plizz help!!

JCA. Cannot change parallel port mode (always SPP)

An exception occured when

InputStream in = ourParallelPort.getInputStream();

java.io.IOException: Unsupported operation. Output only mode

The attempt to change LPT-port mode throws an exception

javax.comm.UnsupportedCommOperationException

What is my mistake?

[353 byte] By [SuG@ra] at [2007-10-1 1:50:18]
# 1
> What is my mistake?Using the word "plizz".
yawmarka at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...
# 2
> using the word "plizz"dont look at the words!! Look at the meaning!Could you help me? i do this not for fun!Sugar
SuG@ra at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...
# 3
Well, the error clearly says that you can only write to the port. You can't read from it./Kaj
kajbja at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...
# 4
> dont look at the words!! Look at the meaning!Out of curiosity, where should one derive your "meaning" if not from your words?
yawmarka at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...
# 5

> Well, the error clearly says that you can only write to the port. You can't read

> from it.

If everything was so simple i would not ask.

My question is - i cant read theoretically - or i just cant read in my particular case?

If i can - how to do this?

> of curiosity, where should one derive your "meaning" if not from your words?

I know you get the subject. Then why don't you just say what you think about the subject? :) I"m not against humor, but if you try to joke, joke, but write a piece of advice at the end!!

Thanks both of you guys :)) Any other ideas?

SuG@ra at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...
# 6

> If everything was so simple i would not ask.

> My question is - i cant read theoretically - or i

> just cant read in my particular case?

You haven't provided enough information.

Please be a little more explicit about what you're doing, what you expect to happen, and what you actually observe.

Please post a short, concise, executable example of what you're trying to do. This does not have to be the actual code you are using. Write a small example that demonstrates your intent, and only that. Wrap the code in a class and give it a main method that runs it - if we can just copy and paste the code into a text file, compile it and run it without any changes, then we can be sure that we haven't made incorrect assumptions about how you are using it.

Post your code between [code] and [/code] tags. Cut and paste the code, rather than re-typing it (re-typing often introduces subtle errors that make your problem difficult to troubleshoot). Please preview your post when posting code.[/url]

Please assume that we only have the core API. We have no idea what SomeCustomClass is, and neither does our collective compiler.

If you have an error message, post the exact, complete error along with a full stack trace, if possible. Make sure you're not swallowing any Exceptions.

> I know you get the subject. Then why don't you just

> say what you think about the subject? :) I"m not

> against humor, but if you try to joke, joke, but

> write a piece of advice at the end!!

Okay.

Advice: don't say "plizz".

yawmarka at 2007-7-8 8:12:00 > top of Java-index,Security,Event Handling...