Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Fondamenti di architettura e programmazione > [Java] Maledette Eccezioni...
Pages (3): « 1 [2] 3 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

in quale classe va importato?

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

02-02-2006 18:08
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Vikyg13
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 290 (0.04 al dì)
Location:
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 3 Days, 1:12:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho risolto, sbagliavo io nell'importazione!

02-02-2006 18:16
Click Here to See the Profile for Vikyg13 Click here to Send Vikyg13 a Private Message Find more posts by Vikyg13 Add Vikyg13 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa, ma executionexception è la "superclasse" delle altre eccezioni che può lanciare il prog?

03-02-2006 22:07
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sandrino83
maschio latino

User info:
Registered: Oct 2004
Posts: 376 (0.05 al dì)
Location:
Corso: Com Dig
Anno: finito
Time Online: 8 Days, 7:53:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

esattamente......infatti se ci fai caso executionexception è un errore generico che non viene mai lanciato in modo specifico nel codice mentre le altre eccezzioni sonosottoclassi della stessa..............

__________________
we are just two lost souls swimming in a fish bowl year after year....running over the same old ground....what have we found.......

04-02-2006 09:49
Click Here to See the Profile for sandrino83 Click here to Send sandrino83 a Private Message Find more posts by sandrino83 Add sandrino83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bella! almeno le eccezione sono giuste,,,ora parte l'operazione clone!

04-02-2006 10:56
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Crashman
.simpatizzante.

User info:
Registered: Jun 2005
Posts: 19 (0.00 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Primo
Time Online: 13:46:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Voi come le avete fatte, controllate o non controllate?

__________________
"Overcome the devils with a thing called love"
Msn: crashman86@hotmail.com
Futuro programmatore grafico :)

05-02-2006 16:46
Click Here to See the Profile for Crashman Click here to Send Crashman a Private Message Find more posts by Crashman Add Crashman to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
spenk.85
.illuminato.

User info:
Registered: Nov 2005
Posts: 196 (0.03 al dì)
Location: Muggiò
Corso: Comunicazione Digitale
Anno: x
Time Online: 1 Day, 12:55:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non controllate, non è richiesto nessuno controllo se non sbaglio

05-02-2006 18:42
Click Here to See the Profile for spenk.85 Click here to Send spenk.85 a Private Message Find more posts by spenk.85 Add spenk.85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ragazzi, sapete cosa sia questo errore??? Non l'avevo mai visto prima:

Exception in thread "main" java.lang.NumberFormatException: For input string: "arg1"

at java.lang.NumberFormatException.forInputString<Unknown Source>
at java.lang.Integer.parseInt<Unknown source>
at java.lang.Integer.parseInt<Unknown source>
at Selezione.esegui<Selezione.java:38>
at Sequenza.esegui<Sequenza.java: 13>
at Programma.main<Programma.java: 50>

- Dove alla riga 38 della Selezione ho:
if(Integer.parseInt(variabile) <= valore)

- Dove alla riga 13 di Sequenza ho:
elenco[i].esegui();

-Dove alla riga 50 del programma ho:
s3.esegui();

Premetto che in dos scrivo ....> java Programma 1 2



Ho modificato stamane la classe Sequenza in cui, non avendo capito cosa deve fare il metodo esegui di questa classe, ho provato a scrivere:

for(int i=0;i<elenco.length;i++)
elenco[i].esegui();


e dopodichè ho "aggiustato" qua e la le altre classi come mi pareva di ritenere giusto, ma da quel momento è cominciato ad uscire questo errore!!! HELP

__________________
- - {[( KEVIN HIGHT FLY)]} - -

06-02-2006 10:42
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Skioda86
Ragazzi, sapete cosa sia questo errore??? Non l'avevo mai visto prima:

Exception in thread "main" java.lang.NumberFormatException: For input string: "arg1"

at java.lang.NumberFormatException.forInputString<Unknown Source>
at java.lang.Integer.parseInt<Unknown source>
at java.lang.Integer.parseInt<Unknown source>
at Selezione.esegui<Selezione.java:38>
at Sequenza.esegui<Sequenza.java: 13>
at Programma.main<Programma.java: 50>

- Dove alla riga 38 della Selezione ho:
if(Integer.parseInt(variabile) <= valore)

- Dove alla riga 13 di Sequenza ho:
elenco[i].esegui();

-Dove alla riga 50 del programma ho:
s3.esegui();

Premetto che in dos scrivo ....> java Programma 1 2



Ho modificato stamane la classe Sequenza in cui, non avendo capito cosa deve fare il metodo esegui di questa classe, ho provato a scrivere:

for(int i=0;i<elenco.length;i++)
elenco[i].esegui();


e dopodichè ho "aggiustato" qua e la le altre classi come mi pareva di ritenere giusto, ma da quel momento è cominciato ad uscire questo errore!!! HELP


Così sembra che non riesca a convertire il valore passato a parseInt, comunque c'e' sempre il vecchio metodo della nonna lo step-by-step per trovare gli errori :)

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

06-02-2006 10:47
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Joda

Così sembra che non riesca a convertire il valore passato a parseInt, comunque c'e' sempre il vecchio metodo della nonna lo step-by-step per trovare gli errori


Esatto!! Sembra che richiamado nell'esegui del metodo Sequenza (in cui faccio eseguire tutte le istruzioni all'interno dell'array elenco) in questo modo elenco[i].esegui() non riesca più a trasformare in numero la stringa che dovrei avergli dato in input, ma no stroverà neanche la stringa perchè gia utilizzata in precedenza....NO??!!!

Cmq è tutta mattina che provo. Se tolgo elenco[i].esegui() funziona tutto alla perfezione (O QUASI....DICIAMO PERFEZIONE FIN DOVE SONO RIUSCITO AD ARRIVARE)...Se invece lo lascio...nn va più niente....ed esce quel bel errore di prima....ke palle!!!

__________________
- - {[( KEVIN HIGHT FLY)]} - -

Last edited by Skioda86 on 06-02-2006 at 11:11

06-02-2006 11:04
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Skioda86
Esatto!! Sembra che richiamado nell'esegui del metodo Sequenza (in cui faccio eseguire tutte le istruzioni all'interno dell'array elenco) in questo modo elenco[i].esegui() non riesca più a trasformare in numero la stringa che dovrei avergli dato in input, ma no stroverà neanche la stringa perchè gia utilizzata in precedenza....NO??!!!

Cmq è tutta mattina che provo. Se tolgo elenco[i].esegui() funziona tutto alla perfezione (O QUASI....DICIAMO PERFEZIONE FIN DOVE SONO RIUSCITO AD ARRIVARE)...Se invece lo lascio...nn va più niente....ed esce quel bel errore di prima....ke palle!!!


usi un editor tipo eclipse ? se si puoi fare il debug passo passo ... in modo da capire esattamente quale sia la riga.

togliendo esegui va tutto (+ o -) allora può darsi che sia esegui strutturata male.

Però ripeto senga un debug step by step ci capisci poco e nulla ( a mano penso sia da suicidio).

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

06-02-2006 11:19
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma scusate il proble non è forse che il metodo parse int applicato a una stringa funziona solo se la stringa contiene un valore(sotto forma di stringa tipo variabile="1").. in questo caso variabile contiene dei caratteri che formano la stringa tipo variabile="arg1", quindi il metodo parseInt non può (credo) convertire la scritta in un valore intero.
Forse dovresti riferirti al valore contenuto in variabile richiamandolo dall'hashtable tipo hashtable.get(variabile) <- questa istruzione fa riferimento al valore della variabile variabile in hastable che credo sia ciò chhe ti serve..

07-02-2006 14:37
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joda
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 1126 (0.13 al dì)
Location: Milano
Corso: Dottore in Informatica
Anno: Primo TICOM
Time Online: 9 Days, 23:17:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by sbrandu
Ma scusate il proble non è forse che il metodo parse int applicato a una stringa funziona solo se la stringa contiene un valore(sotto forma di stringa tipo variabile="1").. in questo caso variabile contiene dei caratteri che formano la stringa tipo variabile="arg1", quindi il metodo parseInt non può (credo) convertire la scritta in un valore intero.
Forse dovresti riferirti al valore contenuto in variabile richiamandolo dall'hashtable tipo hashtable.get(variabile) <- questa istruzione fa riferimento al valore della variabile variabile in hastable che credo sia ciò chhe ti serve..


certamente se a parseInt passi una stringa di caratteri, non converte nulla e viene generata un'eccezione.

__________________
Homepage personale (English version)
c/o segreteria didattica via comelico

07-02-2006 14:40
Click Here to See the Profile for Joda Click Here to See the Blog of Joda Click here to Send Joda a Private Message Visit Joda's homepage! Find more posts by Joda Add Joda to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sbrandu
.consigliere.

User info:
Registered: May 2004
Posts: 148 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 3 Days, 21:31:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh allora skioda86 non ti resta che correggere..:D

07-02-2006 14:47
Click Here to See the Profile for sbrandu Click here to Send sbrandu a Private Message Find more posts by sbrandu Add sbrandu to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skioda86
.precettore.

User info:
Registered: Jun 2005
Posts: 90 (0.01 al dì)
Location: Borno (BS)
Corso: Comunicazione Digitale
Anno: 1
Time Online: 21:00:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sbrandu

Ma scusate il proble non è forse che il metodo parse int applicato a una stringa funziona solo se la stringa contiene un valore(sotto forma di stringa tipo variabile="1").. in questo caso variabile contiene dei caratteri che formano la stringa tipo variabile="arg1", quindi il metodo parseInt non può (credo) convertire la scritta in un valore intero.
Forse dovresti riferirti al valore contenuto in variabile richiamandolo dall'hashtable tipo hashtable.get(variabile) <- questa istruzione fa riferimento al valore della variabile variabile in hastable che credo sia ciò chhe ti serve..

Joda

Certamente se a parseInt passi una stringa di caratteri, non converte nulla e viene generata un'eccezione.


sbrandu

Beh allora skioda86 non ti resta che correggere..:D


Grazie ragazzi....Sì è vero, sono 1 PIRLA!!!:wall:
Ma sapete...stando davanti al PC ore ed ore :pc:per poi vederti sparare fuori ste cagate, anche gli errori più semplici NON SI RIESCONO PIU' A SCOVARE!!!!

Cmq ora il mio dilemma è un altro...è un'altra piccola eccezione che mi esce....ma sinceramente non l'ho mai vista. Appena trovo il modo di sviarla la posto con la relativa soluzione...!!!
Intanto non ci resta che SOFFRIRE...!!!!

Pensate che ora ho appena provato il programma dopo delle modifiche alla hashtable e INDOVINATE 1 PO'!!!???

Mi dice che c'è un errore in questo SEMPLICISSIMO
if (decremento < 0){
decremento= ((int)memoria.get(variabile)) - decremento;
memoria.remove(variabile);
memoria.put(variabile,((Integer) decremento);}

C'è proprio da impazzire!!! Mi stà a tirà per il :sedere:!!!

Boh ads...vado a sistemare un pò!! Un'altra cosa...
qualcuno è capace di usare
Map.Entry ???? POSTATE...POSTATE!!!

BYEEEEEEEEEEEEEEEEEEEE E BUON LAVORO A TUTTI!!!

__________________
- - {[( KEVIN HIGHT FLY)]} - -

07-02-2006 18:49
Click Here to See the Profile for Skioda86 Click here to Send Skioda86 a Private Message Visit Skioda86's homepage! Find more posts by Skioda86 Add Skioda86 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:35.    Post New Thread    Post A Reply
Pages (3): « 1 [2] 3 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.068 seconds (66.01% PHP - 33.99% MySQL) con 23 query.