Bob Denaar

Greenhorn
+ Follow
since Mar 21, 2011
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 Bob Denaar

I work as a developer for an university, and a lab has got funds to develop a CRUDS application about greek epigraphy (specifically ritual instructions). Their data (about 1000 inscriptions) is already encoded in complex TEI-XML files. I proposed to (transparently) handle this XML using tools i'm familiar with (.NET and MS SQL, which i know are well suited to the task), but was told that the granting of the money came with the explicit requirement to use a native XML database (for the meaning of "native", see:http://en.wikipedia.org/wiki/XML_database#Native_XML_databases). I'm also under the impression that XML DBs are not commonly used, but i have really no say in the matter, i have to bite the bullet and try to make this as painless as possible; therefore my question.

Thanks for the interest
Hello,

I'm a web application developer, and i've been doing it for ten years using c#, the .NET framework, visual studio express and MS SQL Express on an IIS server.

Now, i've been asked to program a complex CRUDS web application using a XML native database and only free tools.

As i understand it, there is very little possibility to use the .NET framework or even IIS to build web apps with that kind of database, so i looked for other technologies.

The most well known and well documented free XML native database seems to be eXist-db, which apparently comes bundled with a web app development tool called BetterForm (based on the XForms technology if i'm not mistaken).

It also seems that, apart from XForms, the most widely used technology to build web apps with a XML native database, is java with servlets.

I have zero experience in XForms; i know some java (i'm probably a bis rusty since i've not written any java code for the last 8 years, but it's quite similar to c#), but have no experience or skill with servlets and java web apps (i just know it has to use some kind of web server with a servlet container like Tomcat - says volumes about the extent of my ignorance). I also know some php, but am not aware of the possibilities it offers to work with an XML native db.

Given that i very much like the easiness and quickness of use of the GUI and data tools of the .NET Framework and their integration in Visual Studio Express, that i like to easily debug my code, and that i want to write as few HTML as possible, which technology and tools (emphasis on IDE - wysiwyg à la Visual Studio would be ideal) would you suggest i use.

Thanks in advance
I did not unpack the jar, i just copied it from the old server to the new one, that's it. The applet is not signed (doesn't ask for a certificate) but works perfectly well on the old server.
9 years ago
In fact, i did not recompile the applet. I copied the .class files from the old to the new server, so i guess if it was signed on the old server it's still signed now, and if it wasn't, well it worked without.

Anyways, thanks for your time and your answers, i'll try to figure it out and if i don't, well i'll rewrite the Applet (at least parts of it)
9 years ago
Thanks for the answer, but i think i have to expand the context a little bit. There is a (working) existing old application which runs on an old dying server and is mainly composed of a big applet and some jsp under a Tomcat 5.0 server. This applet connects to an old huge database(750 MB) which runs on a MySQL 4.0 server. I didn't write the application, i didn't even get the sources; i had to decompile them from the .class files. The guy who did write the thing is long gone and i have to migrate the whole stuff on a virtual server, equipped with a MySQL 5.5 and a Tomcat 5.5 (which i cannot change). I first migrated the database with a dump, i had to erase all the "Type = MyIsam" in the dump file, but otherwise it did get well, i can access and request it from MySQL Workbench without any problem. I then tried to install the app on the Tomcat, the web page and applet are working up to the point where the applet tries to connect to the database and i get the aforementioned error message on the console.

If possible, i want to avoid meddling with the decompiled java code (i don't have a proper project , just a bunch of decompiled java files). As the applet is working on the old server, i reckon it should be working on the new one without changing anything in the code, i use the decompiled files only to check how the applet connects to the database and it seems to get connection information from the web.xml file in the tomcat app directory. I updated these informations for the new server, but it didn't work, i also changed the jdbc connector and put a newer one and i get the previously evoked error message.

So, i don't know if signing the applet would change that, after all it worked as such on the old server. But i really would like to read the error lines the console deprives me of. Mabe it won't help me, but at least i would know

9 years ago
I don't know what will be there, that's kind of my point. I would really like to know what's there and i'm not as sure as you are that it will not help me. If you consider the first message, the lines locating the error in my app are the last 2 lines, so it may be not that irrelevant.
9 years ago
I'm testing a web page with an applet in it which should connect to a MySQL database.
There is an error and I get this in the Java console :



What annoys me very much, is the last line of this error message :"5 more". I would really like to see what these 5 more lines are. Maybe the solution to my problem is there. So, my question is : is there any way to configure or manipulate the java console to actually see the whole error message ?

TIA
9 years ago
I'm sorry, i don't understand your question very well, it seems to me (maybe i'm wrong) that i access the Dialog Box within the EDT (dialog.setVisible is called from an event handler method). What i was asking was a theoretical question concerning modality : what happens exactly with the EDT when i make a modal dialog box visible, and if i try for curiosity and understanding's sake to call setVisible from the second thread, the code that follows the call is not executed, I don't exactly understand why.

Thanks for spending time for me, apologies if these questions are too dumb.
9 years ago
Thank you both very much for your answers

After reading them (and the links you provided) and fiddling my code, i was able to devise a solution (by the way, you were right, a JProgressBar is what i needed), but there's still something i'm confused about.
Here is my modified code :




It works, but there's something i don't quite completely understand, namely the influence of modality. What happens exactly with the EventDispatchThread when i display (via setVisible) a modal dialog box ? My code works as it is, but if i remove the line from the main window and replace it with in the run() method of the dialog box, as soon as the dialog box is made visible, the rest of the code in the run() method is not executed, why ?

It's not crucial, but i like to understand what i do.


TIA
9 years ago
Hi,

This is probably a stupid question, but after all, it's a beginner's forum
So, i' programming an application which allows to choose a text file (with a specific content) and transforms it into a XML File. I also want to display, after the file has been selected, a modal dialog box which shows the advancement of the process.
Here are parts of the relevant code of the main window:



So, when a file is chosen, i want to display an instance of my custom dialog box, here are parts of the code of this box :



When I run this code, i can choose a file, and when i click on the "open" button of the JFileChooser, my custom modal dialog box is displayed, but the JTextField remains empty, despite the line : dialog.setProgress("Beginning XML transformation process") that comes after dialog.setVisible(true) in the code of the main window. The code that follows is not executed either
If however, i modify my dialog box code slightly by removing the line setModal(true), it works perfectly.

So, i suppose that when a modal dialog box is created, the execution of code in the parent window is blocked until the modal dialog is closed and that it's not the case when the dialog box is not modal (is it so ?)
But i'd like to keep my dialog box modal, so my question is simple : Is there any way to do what i want and keep the dialog box modal (i've heard about threads, but i don't know if it's the right thing to use, and frankly, it seems a bit overwhelming)

TIA
9 years ago