QC Connection from Java using Com4 - java

I am trying to connect to QC using code below :
ITDConnection2 QCconn= ClassFactory.createTDConnection();
QCconn.initConnectionEx(Parameters.QC_URL);
QCconn.login(Parameters.QC_USERNAME, Parameters.QC_PASSWORD);
QCconn.connect(Parameters.QC_DOMAIN, Parameters.QC_PROJECT);
But i am getting exception at line
ITDConnection2 QCconn= ClassFactory.createTDConnection();
Exception:
com4j.ComException: 80004002 QueryInterface failed : No such interface supported : .\com4j.cpp:163
I have QC install on my PC. I am gettign same error on other PCs as well.

Which Version of Quality Center your are trying to connect ?
The otaclient.jar file should be compatible with OTACLIENT.dll.
You should also include com4j.jar in the build path.

We got the same problem, we got com4j.jar in the build path
We try to connect to QC 11 but our windows also has QC 10 installed.
So there was a problem in the version of the QC. We installed TDConnect from QC 11 to get the code running.
If you run QC 10 it rolls back OTAClient.dll 11 to 10 again.
You have also add otaclient.dll to java.library.path in the VM arguments.

We resolved this issue by reinstalling Quality center 11.52 and run the IE in admin mode and it added the TDConnect plugin to QC , then java program connected to the QC.

Related

JPackage getting ERROR: Unknown exception caught trying to find MSI installer

I'm getting the following error in JPackage using JDK-19 and JavaFX-19. Same configuration used to work using JDK-18 and JavaFX-16. It builds the install image, but is missing the msi installer.
Required environment variables:
PATH_TO_FX = C:\Java\javafx-19\sdk\lib
PATH_TO_FX_MODS = C:\Java\javafx-19\jmods
JPackage Version 19
[2022/11/12 10:46:54.801, jpackage.dll (PID: 5696, TID: 11192), jpackage.cpp:155 (Java_jdk_jpackage_internal_WinExeBundler_embedMSI)]
ERROR: Unknown exception caught
[10:45:03.636] Running candle.exe
[10:45:03.647] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe
[10:45:03.784] Running light.exe
[10:45:03.788] Running C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe
[10:45:03.989] Detected [candle.exe] version [3.11.2.4516].
[10:45:03.989] Detected [light.exe] version [3.11.2.4516].
[10:45:03.990] WiX 3.11.2.4516 detected. Enabling advanced cleanup action.
Any guidance or where I might get help is much appreciated.
Thank you
Unfortunately, I needed to replace my boot drive, which involved reinstalling Windows and WIX Toolkit and Java plus all the other stuff. The error no longer occurs. I have no idea what fixed it, the new SSD is built the same as the old with the same versions of all software. There is not a software migration history on the new SSD as there was on the old HD. I'm using the same procedures as before.
I hate when we fix things and not know why, but such is life.

How to resolve an issue with IntegratedWebLogicServer in JDeveloper?

the version of JDeveloper I am using is 12.2.1.4.0 and the JDK version I am using for the application is Java 1.8.0.202.
The issue I am currently having is whenever I am trying to run an application within JDeveloper I am getting this error code:
*** Using HTTP port 7101 ***
*** Using SSL port 7102 ***
C:\Users\Nathan\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\DefaultDomain\bin\startWebLogic.cmd
[Starting IntegratedWebLogicServer.]
[waiting for the server to complete its initialization...]
Files was unexpected at this time.
Process exited.
[IntegratedWebLogicServer terminated.]
Could someone please explain how I may resolve this?
Thank you.
One thing to try is to use JDK 1.8.0_101 as this older version is proven to work with JDev 12.2.1.4.
If you have access to support you should download the latest bundle patch for 12.2.1.4 and then use the current JDK 1.8.0_2xx.

RJDBC, Java connection to Oracle database crashing

I have a script that opens with some code to start a connection to an Oracle database, however the code is crashing RStudio as soon as it runs. The exact code was run successfully on another machine previously.
The script opens by loading the required RJDBC package:
library("RJDBC", lib.loc="C:/R/library")
After, this I run the code below:
drv = JDBC("oracle.jdbc.OracleDriver", classPath="C:/R/ojdbc7.jar", identifier.quote = " ")
however this crashes Rstudio - there is no error statement, the program simply crashes stating that "R encountered a fatal error . The session was terminated." When I attempt run this at the command line in regular R (not RStudio) it crashes also.
If this is being caused by some conflict between R and machine, is there a way to determine what is causing it?
Thanks
I had exactly the same problem, having just upgraded my Java distribution from v6 to v8 (both Java Runtime and Java Developer Kit, running on Windows 7). I don't what the reason is, but after reinstalling v6 (and keeping v8), the problem was resolved.
In also encountered this problem but in my case the issue was that I had previously set JAVA_HOME in ~/.Renviron that did not match the version in place when rJava was installed. Simply removing JAVA_HOME was the fix in my case.
I was also experiencing the same sort of crash trying to connect to SQL Server.
Setting the JAVA_HOME variable as described https://www.r-bloggers.com/connecting-r-to-an-oracle-database-with-rjdbc/ the crashes went away:
Sys.setenv(JAVA_HOME='C:/Program Files/Java/jdk1.8.0_172')
library(RJDBC)
drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver",
"c:/Microsoft JDBC Driver 6.4 for SQL Server/sqljdbc_6.4/enu/mssql-jdbc-6.4.0.jre8.jar")

exception while connecting SciDB via JDBC

I am using SciDB 12.04, Ubuntu 12.04 protobuf-java-2.6.1
I am traying to connect the Java code with SciDB .. So i installed JDBC14.12
I follow the instruction inside the manual , when i tried the sample code test (as descibed at the manual) I got this error :
java.sql.SQLException: java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses.
I found the solution... thank u for ur suggestions ..
I sloved the problem in 2 steps:
use java 1.6 rather than 1.7
use libprotobuf-java 2.4.1-1ubuntu2 rather than protobuf-java-2.6.1
So it was versions conflict problem

Unable to start Neo4j on Windows, no error messages

I'm using the following on Windows 7:
neo4j-community-1.9.2
Java 7 Update 25
I have Windows Firewall disabled.
When I start Neo4j.bat, both as Administrator and normally, I get the following message:
c:\Tools\neo4j\bin>Neo4j.bat
28/07/13 9:34:27 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup tim
eout to: 120000ms based on -1
A blank Java console window pops up, no messages, then the window disappears after a minute or so.
When I go to http://localhost:7474/, I just get a server not found error.
If I try to install it as a service, the service wouldn't start.
Any ideas what I need to do to start Neo4j? I see here that Neo4j 1.9 does support Java 7:
http://blog.neo4j.org/2013/03/neo4j-19m05-released-wrapping-up.html
base.bat correctly points to windows-service-wrapper-5.jar, so not the windows-service-wrapper-*.jar problem that some people have had in the past. It would be helpful if it outputted an error message.
I just tried it with neo4j 2.0 milestone, and it didn't make any difference. The Java window pops up with no messages, http://localhost:7474/ gets a server not found error, then the Java window closes after a minute or two.
I added JAVA_HOME and JRE_HOME system variables, made no difference. I think I would get an error if Neo4j was not able to locate Java anyway.
I've fixed it.
With help from Neo4j's Google Group, I looked at the logs in data/logs/*.log and data/graph.db/messages.log, and found the following exception:
Caused by: java.rmi.server.ExportException: Port already in use: 1337; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
Once I disabled my other service that uses that port, Neo4j's web admin at http://localhost:7474 worked. I then found out port 1337 is used by Neo4j's remote shell, I disabled it by adding enable_remote_shell = false to neo4j.properties, then I was able to have both Neo4j and my other service running.
I'm using the version 2.2.1 community edition of Neo4j on Windows 7, Java 1.8 update 45
In my case the log file messages.log was under default.graphdb directory. In there, you'll see the root cause of the problem.

Categories