Friday, February 10th 2012, 2:18am UTC+1

You are not logged in.

  • Login
  • Register

Posts: 95

Location: Oberirsen - Germany

Occupation: Software Engineer

1

Wednesday, June 24th 2009, 9:42am

Is there an error in the automatic class name completion

Hello community, hello Manuel,
I want to try the method java#sql#jdbc#odbc#ee.DataSource, but the automatic class name completion of the method name stops after odbc. Jabaco cannot find the class. I try this code:

Jabaco Source

1
2
Dim ds As sun#jdbc#odbc#ee.DataSource 
Set ds = New sun#jdbc#odbc#ee.DataSource()


What is wrong?

Thanks for tips.

Cheers
Stefan
StefanSchnell has attached the following image:
  • F1.JPG

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

2

Wednesday, June 24th 2009, 12:47pm

Hi Stefan,
the error does not occur in my environment (Jabaco 1.4.2 + JDK 6_14).

Are sure about the "."? I'm still confused between namespaces and method/property path conventions.

I compiled and debugged the line of code with "." and "#".
Both compiled OK. But only the "#" version could be executed without error.

Source code

1
2
3
4
Dim ds As sun#jdbc#odbc#ee#DataSource 
   
ds = New sun#jdbc#odbc#ee.DataSource()
ds = New sun#jdbc#odbc#ee#DataSource()


Regards

A1880

This post has been edited 1 times, last edit by "A1880" (Jun 24th 2009, 12:53pm)


Posts: 95

Location: Oberirsen - Germany

Occupation: Software Engineer

3

Wednesday, June 24th 2009, 2:53pm

Hello A1880,
thanks for your reply.
My problem is not the code, my problem is the following:
Type sun#, now Jabaco opens code completion, type jdbc#, now Jabaco opens code completion again, type odbc#, now Jabaco opens nothing. The code works well, but the code completion of the class names and methods not.

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Dim ds As sun#jdbc#odbc#ee#DataSource
Set ds = New sun#jdbc#odbc#ee#DataSource()
ds.setDatabaseName("Test")
   
Dim sta As java#sql#Statement
Set sta = ds.getConnection().createStatement()
   
Dim res As java#sql#ResultSet
Set res = sta.executeQuery("SELECT * FROM Test")
   
Do Until Not res.next()
  Debug.Print res.getString("Test1")
  Debug.Print res.getInt("Test2")
Loop
   
ds.getConnection().close()


Thanks for tips.

Cheers
Stefan

OlimilO

Intermediate

Posts: 277

Location: Germany

Occupation: software engineer

4

Wednesday, June 24th 2009, 5:56pm

Hi Stefan



On my computer it's also not possible to reproduce your problem.

maybe you misspelled that ?)

odbc is similar to oddc or obdc or obbc



But to be honest, sometimes I encountered that Jabaco does not do what I except, but most of the time it's because of a mistake elsewhere in my code. Four eyes .. you could send me a email with your code attached and zipped.



greetings

OlimilO

A1880

Intermediate

Posts: 500

Location: Hanover, Germany

Occupation: Software Engineer

5

Wednesday, June 24th 2009, 7:03pm

Hello again,
the autocompletion does work correctly on my system.
Please let us know the exact sequence of key hits you have been using.

Cheers

A1880

Posts: 95

Location: Oberirsen - Germany

Occupation: Software Engineer

6

Wednesday, June 24th 2009, 10:30pm

Hello Oliver and A1880,
look at the the screencast here (deleted).
Thanks and cheers
Stefan

This post has been edited 1 times, last edit by "StefanSchnell" (Aug 2nd 2009, 7:06pm)


Posts: 95

Location: Oberirsen - Germany

Occupation: Software Engineer

7

Thursday, June 25th 2009, 10:31pm

Hello community, hello Manuel,
I check it again. I install Jabaco in a VM with a clean XP and I get the same error. Exactly the same with a Vista VM. At first I install Java6u14 and then Jabaco. I do not know what is wrong.
Any ideas?
Cheers
Stefan

Hello Manuel,
is there any registry entry, an ActiveX module or anything else which can create this effect?
Thanks.
Cheers
Stefan

htillmann

Beginner

Posts: 27

Location: Beverungen / Weser

Occupation: Softwareentwicklung

8

Thursday, June 25th 2009, 10:54pm

Hi Stefan,

got the same problem on my PC.
Let's find what's similar.

Hubertus

Manuel

Administrator

Posts: 254

Location: Erlangen, Germany

Occupation: Software Developer

9

Monday, June 29th 2009, 6:47pm

@Stefan: Thank you for your efforts!
@Community: Next version will fix this problem.

Rate this thread
WoltLab Burning Board