You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

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
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

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)


  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

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
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

OlimilO

Intermediate

  • "OlimilO" is male

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

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

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

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

  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

6

Wednesday, June 24th 2009, 10:30pm

Hello Oliver and A1880,
look at the the screencast here (deleted).
Thanks and cheers
Stefan
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

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


  • "StefanSchnell" is male
  • "StefanSchnell" started this thread

Posts: 102

Date of registration: Mar 13th 2009

Location: Oberirsen - Germany

Occupation: Senior Software Engineer

Hobbies: Programming aund Photography

  • Send private message

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
Visit my personal or commercial site
If you have questions or suggestions, write me an eMail or
meet me here

htillmann

Beginner

  • "htillmann" is 57 years old today
  • "htillmann" is male

Posts: 30

Date of registration: Feb 25th 2009

Location: Beverungen / Weser

Occupation: Softwareentwicklung

  • Send private message

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

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

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