Marketcetera Community Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Cant Start marketcetera Server Components.  XML
Forum Index » Installation and Configuration Help
Author Message
vishak.nathan@gmail.com


Joined: 09/04/2009 16:57:23
Messages: 5
Offline

I am running the latest release 1.1.0 on Windows Vista 32 bit. The installation was successful. However, when I try starting the ORS server components using "Start Marketcetera Server Component ", I get a message saying ORS is starting and then get errors saying java.utils.perfs.WindowsPreferences , could not open windows regist node Software\JavaSoft\Perfs ..
T
mpark


Joined: 12/02/2009 00:34:16
Messages: 68
Offline

Would you run the log_collector script and send the zip file to help@marketcetera.com? You can refer to our KB "How to send logs to Support?" about running the log_collector script.

Best regards,
miyoung
compuroad


Joined: 19/04/2009 19:19:26
Messages: 3
Offline

I am getting exactly the same problem. I'm also trying to Start Marketcetera Server Components on Vista 32 and I am getting this:

Apr 19, 2009 3:26:08 PM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x80000002.
Windows RegOpenKey(...) returned error code 2.

Thanks,

Wilson
mpark


Joined: 12/02/2009 00:34:16
Messages: 68
Offline

Did you install & run MTS as a user with the administrative privilege? If not, would you try as a admin user?

Best regards,
miyoung
compuroad


Joined: 19/04/2009 19:19:26
Messages: 3
Offline

Yes, I did install MTS using “Chiara” username, and yes it has Admin privileges.
vishak.nathan@gmail.com


Joined: 09/04/2009 16:57:23
Messages: 5
Offline

I think I have the problem licked. The problem I think is this. I installed Marketcetera in Vista , just like I did in XP , with a user id which had admin privileges. While running from XP with the same user as that I used to installed it works fine. However in Vista, because of enhanced security measures, this doesnt work. The owner of the directory and files where Marketcetera gets installed is different (I think TrustedIntaller is the owner) and when the ORS tries to start after setEnv is started, I guess it tries to overwrite some registry entries and cant with the user with admin priliveges.

So what I did was created an ordinary user and installed Marketcetera using the ordinary user. Vista throws up a gksudo equivalent of Linux message, asks for the admin password and installs it. Now when running Marketcetera as ordinary user, there is no problem and everything works fine. I guess, it is now able to set the environment variables and write the registry entries for the ordinary user without any problems.

compuroad, sugget, installing as a normal user without the admin privileges and try again.
compuroad


Joined: 19/04/2009 19:19:26
Messages: 3
Offline

I did installed Marketecera under an ordinary user (Guest) and it did not work. When I Start the Server components I got this:

Access is denied.
Access is denied.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: C:\metc\ors\logs\ors.log (Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java
:165)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:2
56)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
ava:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
ava:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigura
tor.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigura
tor.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyC
onfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
r.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
r.java:316)
at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.jav
a:682)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.
java:8
at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:57)
at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator.java:67
4)
at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfi
gurator.java:382)
at org.marketcetera.ors.OrderRoutingSystem.main(OrderRoutingSystem.java:
249)
24 Apr 2009 10:38:08,063 INFO [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:256) - Copyright (c) 2006-2009 Marketcetera, Inc.
24 Apr 2009 10:38:08,066 INFO [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:257) - ORS is starting
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:08 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences WindowsRegOpenKey1
WARNING: Trying to recreate Windows registry node Software\JavaSoft\Prefs at roo
t 0x80000002.
Apr 24, 2009 10:38:09 AM java.util.prefs.WindowsPreferences openKey
WARNING: Could not open windows registry node Software\JavaSoft\Prefs at root 0x
80000002. Windows RegOpenKey(...) returned error code 2.
24 Apr 2009 10:38:21,348 ERROR [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:274) - ORS is terminating due to an error
quickfix.ConfigError: error during session initialization
at quickfix.mina.initiator.AbstractSocketInitiator.createSessions(Abstra
ctSocketInitiator.java:136)
at quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocket
Initiator.java:77)
at quickfix.mina.initiator.AbstractSocketInitiator.<init>(AbstractSocket
Initiator.java:67)
at quickfix.SocketInitiator.<init>(SocketInitiator.java:47)
at org.marketcetera.ors.OrderRoutingSystem.<init>(OrderRoutingSystem.jav
a:184)
at org.marketcetera.ors.OrderRoutingSystem.main(OrderRoutingSystem.java:
271)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\metc\or
s\qf_store\FIX.4.2-110w-wilson.ferreira.jr@gmail.com-MRKTC-EXCH.body (The system
cannot find the path specified)
at quickfix.FileStoreFactory.create(FileStoreFactory.java:80)
at quickfix.Session.<init>(Session.java:300)
at quickfix.DefaultSessionFactory.create(DefaultSessionFactory.java:162)

at quickfix.mina.SessionConnector.createSession(SessionConnector.java:11
4)
at quickfix.mina.initiator.AbstractSocketInitiator.createSessions(Abstra
ctSocketInitiator.java:130)
... 5 more
Caused by: java.io.FileNotFoundException: C:\metc\ors\qf_store\FIX.4.2-110w-wils
on.ferreira.jr@gmail.com-MRKTC-EXCH.body (The system cannot find the path specif
ied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at java.io.RandomAccessFile.<init>(Unknown Source)
at quickfix.FileStore.initialize(FileStore.java:110)
at quickfix.FileStore.<init>(FileStore.java:100)
at quickfix.FileStoreFactory.create(FileStoreFactory.java:7
... 9 more




mpark


Joined: 12/02/2009 00:34:16
Messages: 68
Offline

To run ORS on Windows Vista, you need to have the admin privilege as well as UAC(User Account Control) turned off. I have added a KB article "Windows RegOpenKey(...) returned error code 2 error on Windows Vista" on this issue.
http://www.marketcetera.org/confluence/pages/viewpage.action?pageId=5767812

Best regards,
miyoung
robert stanley


Joined: 01/08/2009 15:56:37
Messages: 1
Offline

Very simple solution - right click on application Run Marketcetera Server Component and check off run as administrator
pyrole


Joined: 30/08/2009 10:40:44
Messages: 42
Offline

Did it work?
mpark


Joined: 12/02/2009 00:34:16
Messages: 68
Offline

Once you run ORS as administrator, HKEY_CURRENT_USER\Software\JavaSoft\Prefs and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs keys will be created and you can run ORS without any problem.

No need to turn off UAC.

Best regards,
miyoung
saif_faruqui


Joined: 19/09/2009 12:15:13
Messages: 1
Offline

I was getting the above error so I right clicked on "Start Marketcetera Server Components" and checked "Run As Administrator". This gives me the following three log messages and then nothing. Being a hardware accelerated C++ feedhandler developer, I decided to be patient with Java and left it in this state overnight...still nothing. No new processes in Task Manager...how should I go about making sure everything starts properly...on Windows Vista?

25 Dec 2009 06:53:13,299 INFO [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:253) - Copyright (c) 2006-2009 Marketcetera, Inc.
25 Dec 2009 06:53:13,307 INFO [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:254) - ORS version '1.5.0' (build '1505')
25 Dec 2009 06:53:13,308 INFO [main] marketcetera.ors.OrderRoutingSystem (Order
RoutingSystem.java:257) - ORS is starting
toli


Joined: 17/02/2009 17:41:07
Messages: 74
Offline

Saif,

This is by design. The ORS is running - you can verify that t's listening on ports 7001 and 9000.

All the logs are going to the ors/logs/ors.log file - you can control that with the log4j.properties file.
 
Forum Index » Installation and Configuration Help
Go to:   
Powered by JForum 2.1.8 © JForum Team