I've reviewed just about everything I can find and still getting the error code. This only happens on our win 7 boxes. The messed up part is that the tests were working and then stopped worked late last week. I cannot even get the MSWMI2 test to run. I have several boxes set up for testing. We use Active Directory and all of the non-win7 platforms don't have this problem.
For what its worth, here's the output of org.jinterop.dcom.test.MSWMI2 after adding a few lines.
--- lines added to ctor---
JISystem.setInBuiltLogHandler(true);
JISystem.getLogger().setLevel(Level.ALL);
JISystem.setAutoRegisteration(true);
-------------------
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
INFO: j-Interop Version = null
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JISession createSession
INFO: Created Session: 1406224776
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
INFO: Running ServerPingTimerTask !
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JISession$Release_References_TimerTask run
INFO: Release_References_TimerTask: Session: 1406224776 , listOfDeferencedIpids.size(): 0
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
INFO: Running ClientPingTimerTask !
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.common.JISystem internal_dumpMap
INFO: mapOfHostnamesVsIPs: {}
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending AUTH3
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending ALTER_CTX
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved ALTER_CTX_RESP
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComServer initialise
WARNING: Got the class not registered exception , will attempt setting entries based on status flags…
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
org.jinterop.dcom.common.JIException: Access is denied, please check whether the are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.
at org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:297)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:483)
at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:434)
at org.jinterop.dcom.test.MSWMI2.<init>(MSWMI2.java:43)
at org.jinterop.dcom.test.MSWMI2.main(MSWMI2.java:105)
Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied, please check whether the are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.
at org.jinterop.winreg.IJIWinReg$createKey.read(IJIWinReg.java:459)
at ndr.NdrObject.decode(NdrObject.java:36)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
at rpc.Stub.call(Stub.java:113)
at org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:291)
… 4 more
Jan 28, 2010 2:51:41 PM org.jinterop.dcom.core.JISession postDestroy
INFO: About to destroy links for Session: 1406224776 , size of which is 0
Jan 28, 2010 2:51:41 PM org.jinterop.dcom.core.JIComOxidRuntime destroySessionOIDs
INFO: destroySessionOIDs for session: 1406224776
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
This is an access denied while creating a registry key (when auto registration is set). Try using the CLSID of the COM server directly , this part should not execute then.
If this system was running before and if you have not changed anything on the Windows machine (related to permissions) or to the user , I am not sure why an exception should occur…
thanks,
best regards,
Vikram
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please forgive my ignorance. I am a complete newbie where COM/DCOM is concerned. We are a linux shop. What do you mean by, "using the CLSID of the COM server directly"? This is your MSWMI2 code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've reviewed just about everything I can find and still getting the error code. This only happens on our win 7 boxes. The messed up part is that the tests were working and then stopped worked late last week. I cannot even get the MSWMI2 test to run. I have several boxes set up for testing. We use Active Directory and all of the non-win7 platforms don't have this problem.
For what its worth, here's the output of org.jinterop.dcom.test.MSWMI2 after adding a few lines.
--- lines added to ctor---
JISystem.setInBuiltLogHandler(true);
JISystem.getLogger().setLevel(Level.ALL);
JISystem.setAutoRegisteration(true);
-------------------
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
INFO: j-Interop Version = null
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.common.JISystem logSystemPropertiesAndVersion
INFO: java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/i386
java.vm.version = 11.3-b02
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = :
java.vm.name = Java HotSpot(TM) Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/dmcreynolds/Workspaces/agents/j-interop
java.runtime.version = 1.6.0_13-b03
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/endorsed
os.arch = i386
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Sun Microsystems Inc.
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/i386/server:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/i386:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/../lib/i386:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 50.0
sun.management.compiler = HotSpot Tiered Compilers
os.version = 2.6.31-17-generic
user.home = /home/dmcreynolds
user.timezone = US/Eastern
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.6
java.class.path = /home/dmcreynolds/Workspaces/agents/j-interop/bin:/home/dmcreynolds/.ivy2/cache/net.secureworks.commons/swrx-commons-cmdline/1.0/jars/swrx-commons-cmdline-1.0.0-b33.jar:/home/dmcreynolds/.ivy2/cache/net.secureworks.commons/swrx-commons-util/1.0/jars/swrx-commons-util-1.0.0.jar:/home/dmcreynolds/.ivy2/cache/org.apache.commons/commons-codec/jars/commons-codec-1.3.jar:/home/dmcreynolds/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.5.6.jar:/home/dmcreynolds/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-0.9.15.jar:/home/dmcreynolds/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.15.jar:/home/dmcreynolds/.ivy2/cache/org.apache.commons/commons-configuration/jars/commons-configuration-1.6.jar:/home/dmcreynolds/.ivy2/cache/org.apache.commons/commons-logging/jars/commons-logging-1.1.1.jar:/home/dmcreynolds/.ivy2/cache/org.apache.commons/commons-collections/jars/commons-collections-3.2.jar:/home/dmcreynolds/.ivy2/cache/org.apache.commons/commons-lang/jars/commons-lang-2.4.jar:/home/dmcreynolds/.ivy2/cache/org.jinterop/j-interop/jars/j-interop-2.06.jar:/home/dmcreynolds/.ivy2/cache/org.jinterop/j-interopdeps/jars/j-interopdeps-2.06.jar:/home/dmcreynolds/.ivy2/cache/org.jinterop/jcifs/jars/jcifs-1.2.19.jar
user.name = dmcreynolds
java.vm.specification.version = 1.0
java.home = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
java.vm.info = mixed mode
java.version = 1.6.0_13
java.ext.dirs = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/resources.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/rt.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/sunrsasign.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/jsse.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/jce.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/lib/charsets.jar:/home/dmcreynolds/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/classes
java.vendor = Sun Microsystems Inc.
file.separator = /
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.desktop = gnome
sun.cpu.isalist =
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JISession createSession
INFO: Created Session: 1406224776
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComOxidRuntime$ServerPingTimerTask run
INFO: Running ServerPingTimerTask !
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JISession$Release_References_TimerTask run
INFO: Release_References_TimerTask: Session: 1406224776 , listOfDeferencedIpids.size(): 0
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComOxidRuntime$ClientPingTimerTask run
INFO: Running ClientPingTimerTask !
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.common.JISystem internal_dumpMap
INFO: mapOfHostnamesVsIPs: {}
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending AUTH3
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending ALTER_CTX
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved ALTER_CTX_RESP
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:40 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
Jan 28, 2010 2:51:40 PM org.jinterop.dcom.core.JIComServer initialise
WARNING: Got the class not registered exception , will attempt setting entries based on status flags…
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending BIND
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved BIND_ACK
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processOutgoing
INFO:
Sending REQUEST
Jan 28, 2010 2:51:41 PM rpc.DefaultConnection processIncoming
INFO:
Recieved RESPONSE
org.jinterop.dcom.common.JIException: Access is denied, please check whether the are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.
at org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:297)
at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:483)
at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:434)
at org.jinterop.dcom.test.MSWMI2.<init>(MSWMI2.java:43)
at org.jinterop.dcom.test.MSWMI2.main(MSWMI2.java:105)
Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied, please check whether the are correct. Also, if not already done please check the GETTING STARTED and FAQ sections in readme.htm. They provide information on how to correctly configure the Windows machine for DCOM access, so as to avoid such exceptions.
at org.jinterop.winreg.IJIWinReg$createKey.read(IJIWinReg.java:459)
at ndr.NdrObject.decode(NdrObject.java:36)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
at rpc.Stub.call(Stub.java:113)
at org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:291)
… 4 more
Jan 28, 2010 2:51:41 PM org.jinterop.dcom.core.JISession postDestroy
INFO: About to destroy links for Session: 1406224776 , size of which is 0
Jan 28, 2010 2:51:41 PM org.jinterop.dcom.core.JIComOxidRuntime destroySessionOIDs
INFO: destroySessionOIDs for session: 1406224776
Hi,
This is an access denied while creating a registry key (when auto registration is set). Try using the CLSID of the COM server directly , this part should not execute then.
If this system was running before and if you have not changed anything on the Windows machine (related to permissions) or to the user , I am not sure why an exception should occur…
thanks,
best regards,
Vikram
Please forgive my ignorance. I am a complete newbie where COM/DCOM is concerned. We are a linux shop. What do you mean by, "using the CLSID of the COM server directly"? This is your MSWMI2 code.