Peter Hammar

Ranch Hand
+ Follow
since Mar 01, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Peter Hammar

Hi!

This is the method in the Kolli class:



Maybe it should take an int as an argument?

13 years ago


setUtensilie( int) cannot invoke setUtensilie() in Kolli is the error I get.

Any one with a good answer, please?
13 years ago

Mark Waes wrote:Assuming the code:

Is calling:

What do you notice about the signature of the method called in the if condition, and the signature of the method itself? (Summarised below)




Well, the method is of an boolean type with a string as an IN parameter. The if has nothing of that.


ARGUS_KOLLI_PKG.get_kolli_brytningnr is a string, not an INT and so is kolliId

Regards
Peter
Hi, all!

Im getting "callStoredProcedure2(String,String) cannot invoke callStoredProcedure2(int,int) in DataCommon" from my int svar = callStoredProcedure2. So, I guess there are a problem related to string and int. But the below call dont use string, or does it?
Im quite new to this...



Thanks for making things clearer!



But when I try:


I get an error. "getKolli can not invoke getKoll. java.lang.string in datacommon." If you look on the above code, what does getKolli return? Is it not an boolean value? The IN parameter is a string. Im confused....
So how do I write



correclty?

Regards
Peter
Hi all!

Really don't know if I should post it here...but I am a beginner, but my boss seems to think that I am good in java...

So, here is my problem.

I use a package to fetch a value from the database (Oracle). It returns Y(true) or N(false). If it returns Y/TRUE I would like to create a SELECT statement that fetches the quantity and updates a field (later task).

How do I get the (DataCommon.getKolli() == true) to work? It throws me: getKolli can not invoke getKoll. java.lang.string in datacommon.

The application runs fine if I run it in offline mode; no database connection. The errors are thrown when trying to connect to the database.

Line of code that it don't like when in online mode:



= at pall.PaLLmeny.<init>(PaLLmeny.java:80)

Thoughts?
I get this from printstacktrace:



The connection?

Its a java application that tries to connect to an database when started. I run it from JDeveloper.
13 years ago
Hi!

I am trying an connection to an database. It fails and I want to see why...



But how can I see what printStackTrace includes?

Regards
13 years ago
This is in my properties file:







I only get my Something is wrong message. Do I need anything more then the above?

Regards
H