Database Manager can't connect to hsqldb [closed] - java

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
After inserting the data into HSQLDB, I tried using database manager to connect to it but it failed to connect.
i launched the hsqldb in standalone mode. here is the error message:
Connection to HSQLDB (Local) - target failed Database lock acquisition failure:
lockFile: org.hsqldb.persist.LockFile#a9e38b36[file =C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\bin\target\misc.lck, exists=false, locked=false, valid=false, ]
method: openRAF
reason: java.io.FileNotFoundException: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\bin\target\misc.lck (The system cannot find the path specified)

If you are launch the hsqldb in standalone mode. It will happen like you said.
In this mode. DB engine will share the same jvm as application, the process will be faster than server mode. but the bad thing is you can't access it from outside. including database manager.
If you want view the data by tools. Please launching the db in server mode

Related

Not able to start SonarQube server after running StartSonar.bat file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I tried running StartSonar.bat file, but it would stop or close abruptly.
Below is the snapshot of sonarqube server error:
We need to have the java 11 version installed for static tool analysis on sonarqube. For download and set up follow this link:
https://java.tutorials24x7.com/blog/how-to-install-java-11-on-windows
Even after this if you face an issue opening the StartSonar.bat file then, check task manager and kill all process/tasks related to java jdk. Because If you had already started Sonar and killed the process on command prompt, your JVM would still be running in the background.
If the issue is not solved then go to conf folder in sonarqube and open sonar properties file and search for the 9000 port number and change sonar.web.port value to some other port number Eg.9050 and uncomment it.
Similarly, search for port number 9001 and follow the same process.
The error suggest that you port 9001 is already use. Probable reasons:
Another program using it. Check Task Manager -> Performance -> Open Resource Monitor ->Network ->Listening Ports
Another instance of SonarCube is running and using it.
Previous instance of SomarCube was not ended properly.
Solutions:
If 1, then change the port of SonarCube server to something else. Read this.
If 2, then you can wait till it ends.
If 3, restart your system.
Sonar is trying to connect on port 9001 which is already in use. Take a look at what's running on port 9001 by navigating to Resource Monitor -->Network -->Listening Ports
In sonar.properties file, Change sonar port 9001 to any other available port. For example- 9003. Save the file and run the script StartSonar.bat to start sonar

Uncaught ReferenceError: Define is not defined in Ember/Springboot [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I know topic sounds duplicate but the problem that I am facing is different than other forums.
I am integrating my ember app with spring web app. I copied the index.html from the dist folder of ember to the src/main/webapp folder of spring app.
I am getting following error:
app.js:1 Uncaught ReferenceError: define is not defined(…)(anonymous function) # app.js:1
I followed some instructions I found to integrate the ember app:
You would have already noticed that ember.js runs on its on server and uses a different port to your spring boot application. The good thing is that, you don’t have to start ember server for using ember.js in your application. There is workaround. The below steps would explain how.
Copy your index.html from “src/main/webapp/dist” folder to “src/main/webapp” folder.
Open index.html in your editor and update path all css and js files from “assets/xxx.xx” to “dist/assets/xxx.xx”. This is because all your framework related files are bundled in this folders and these are the only files you need.
Now run you Spring Boot application and access localhost:8080 and you would see your ember home page!
Note: When I run the ember app separately using ember server, the site is loading properly.
Finally, I have created an ember app without running ember server with the spring server running only.
Resources:
http://ygrails.com/spring-boot/spring-boot-emberjs/#comment-102
How to configure emberjs routes in SpringMVC?
My Git repo(It's a hello world app with ember app in spring server):
https://github.com/apurvagupta/spring_app
Hope this will help some people.

How can I download a file using SFTP protocol from another server if the other server is not an SFTP server? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
want to download the file using java code from the server which is not SFTP server,how can i do this?
i dont have an SFPT server , i use an apache tomcat server ,and copy files to that server. my another application working on different server want to access the file from the first server. how can i do this using java
(S)FTP downloads are only possible from (S)FTP servers. You cannot perfom a FTP download from a server that does not provide that protocol.
But you can use http(s) to download files from your tomcat.
Here is a good explanation: https://stackoverflow.com/a/7632191/4296831
Usually, if it is Linux/unix server then you will have scp demon up and running. May be you can then try downloading file using scp instead of SFTP. Also, there is very good support from JSch library for doing this. Here is an example:
http://www.jcraft.com/jsch/examples/ScpFrom.java.html
You can't. Either install an SFTP server (easy to set up, free software) or use a different protocol. You can't request data that isn't being served up, unless you're asking how to hack in which this isn't really the place for.

Apache Tomcat server isn't working when running Dynamic Web Application in Eclipse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I want to add server to Eclipse which is Apache Tomcat 7.0 for running my web application but every time it is giving Error 404. I have tried all the solutions given on stack overflows other posts I will tell you what procedure I have followed:
I have downloaded windows installer for Apache tomcat and installed it.
I Placed a JAVA_HOME environment variable whose path is to the installed JDK.
Then in Eclipse: Window -> Preferences -> Server -> Add, I have added that server by giving the path up-to Apache bin folder.
Then I checked the build path of my project.
Firstly, it's giving the error that port no. is already in use, so I changed the port no. Secondly, it is giving Apache tomcat is already started. So I stopped it manually and started from Eclipse.
The URL is proper, I have checked it. And I have also given the URL manually. I have also created index.jsp
Now when I am running that project it is giving Error 404 . Requested file not found.
Have you look at your "web.xml" file? Look if the page you use as a welcome file exists, is there a index.jsp or index.html in your WebContent folder? ensure all the resources you´re pointing to, exist. As well, I strongly recommend you to use tomcat as a jar and not install it as a service on Windows, it is better. Also check the console of tomcat, there should be some red lines pointing to the issue that could be happening this behavior. Best regards.
error 404 implies that the tomcat server is up and running. your problem is with whatever you are trying to 'serve'
Ensure that your app is deployed properly.
Check if there is any error in any of logs.
Check if you typed in the right URL
Page not found or error 404 tells that there's no page at address url you trying to enter the browser. You need to check that server has configured properly to serve your application.
just double click on -- 1>Tomcat v7.0 Server at localhost.server .....
..
then at --------------- 2> Server Location ......
..
select second option -- 3> Use Tomcat Installation ....
..
and start the server again ... :)

Bundle installation of java desktop app with SQLite (or any DB for example's sake) [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Java Installer - help needed
Hi and thanks for taking the time to answer my question.
I intend to use Launch4J or SmoothJ as installers for my desktop app developed in Swing. However along with the app I need to install a DB locally at the client. My question would be, how to bundle the installation of the app along with the installation of DB at the client?
Thanks
With SQLite, there is no installation of the DB. The data is stored in a file, and your application makes calls to the SQLite API which access that file.
From http://www.sqlite.org/zeroconf.html:
SQLite does not need to be "installed" before it is used. There is no "setup" procedure. There is no server process that needs to be started, stopped, or configured. There is no need for an administrator to create a new database instance or assign access permissions to users. SQLite uses no configuration files. Nothing needs to be done to tell the system that SQLite is running. No actions are required to recover after a system crash or power failure. There is nothing to troubleshoot.
SQLite just works.

Categories