|
|
|
robparrott
|
Hi Folks,
I pulled down and built the OMS from SVN, and tried to run the 0.2 release of photon against it. However I encountered an error, apparently related to the version of ActiveMQ used (4.1 in svn version of oms, 4.0 in photon 0.2). Does the development version of the oms require a development version of photon, or can I add the newer activemq jar into th classpath successfully. thanks, rob ---------------------------- Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" java.lang.IllegalArgumentException: Invalid version: 2, could not load org.apache.activemq.openwire.v2.MarshallerFactory at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329) at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:108) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:127) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.ClassNotFoundException: org.apache.activemq.openwire.v2.MarshallerFactory at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327) ... 6 more _______________________________________________ m-etc-dev mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev |
||||||||||||||||
|
toli
|
Robert,
We just updated both the OMS and Photon in SVN to use the newer version of ActiveMQ, so i'm afraid you are right - you need to use the SVN version of Photon to contact the OMS. It may be possible to add the newer activemq plugin to 0.2 Photon, but i'd probably be more complicated than building it from scratch. We are planning on releasing the next 0.2.1 updated of both OMS and Photon some time in the next couple weeks, if that helps. toli On 1/30/07, Robert Parrott <[hidden email]> wrote: > Hi Folks, > > I pulled down and built the OMS from SVN, and tried to run the 0.2 > release of photon against it. > > However I encountered an error, apparently related to the version of > ActiveMQ used (4.1 in svn version of oms, 4.0 in photon 0.2). > > Does the development version of the oms require a development version > of photon, or can I add the newer activemq jar into th classpath > successfully. > > thanks, > rob > > > ---------------------------- > > Exception in thread "ActiveMQ Transport: > tcp://localhost/127.0.0.1:61616" java.lang.IllegalArgumentException: > Invalid version: 2, could not load > org.apache.activemq.openwire.v2.MarshallerFactory > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329) > at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569) > at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:108) > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:127) > at java.lang.Thread.run(Thread.java:613) > Caused by: java.lang.ClassNotFoundException: > org.apache.activemq.openwire.v2.MarshallerFactory > at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327) > ... 6 more > _______________________________________________ > m-etc-dev mailing list > [hidden email] > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ m-etc-dev mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev |
|
robparrott
|
Toli, thanks for the reply, I'll just try to build photon from SVN.
As a follow up, is there somewhere obvious in the photon code where to start with adding a new perspective besides the equity one ( i.e. a slightly hacked version of the equity one)? I understand from a previous email that it would involve changing the features files, but as far as source, where should I look to copy over the equity perspective and tart hacking a new one. Or alternatively to create/use a perspective that allows the creation and emission of more generic JMS messages, in order to test the generation and relaying back of FIX messages that are custom to our counterparties. Basically, in order to properly evaluate marketcetera, we'll need to see if it can handle messages from some frontend, through the OMS and to our specific counterparties, and then handle messages back to a frontend. This will need to be possible for the standard message workflow of a typical order process, but with our specific counterparties. As such we need some kind of frontend (be it photon, or something like Hermes, or just a script) to send and receive messages specific to our counterparty. Perhaps I'm barking up the wrong tree with photon for this immediate purpose, but if all it takes is duplicating the equities class and hacking a bit to get it working, that would be a useful approach. Thanks again, rob On 1/31/07, Toli Kuznets <[hidden email]> wrote: > Robert, > > We just updated both the OMS and Photon in SVN to use the newer > version of ActiveMQ, so i'm afraid you are right - you need to use the > SVN version of Photon to contact the OMS. > It may be possible to add the newer activemq plugin to 0.2 Photon, but > i'd probably be more complicated than building it from scratch. > > We are planning on releasing the next 0.2.1 updated of both OMS and > Photon some time in the next couple weeks, if that helps. > > toli > > On 1/30/07, Robert Parrott <[hidden email]> wrote: > > Hi Folks, > > > > I pulled down and built the OMS from SVN, and tried to run the 0.2 > > release of photon against it. > > > > However I encountered an error, apparently related to the version of > > ActiveMQ used (4.1 in svn version of oms, 4.0 in photon 0.2). > > > > Does the development version of the oms require a development version > > of photon, or can I add the newer activemq jar into th classpath > > successfully. > > > > thanks, > > rob > > > > > > ---------------------------- > > > > Exception in thread "ActiveMQ Transport: > > tcp://localhost/127.0.0.1:61616" java.lang.IllegalArgumentException: > > Invalid version: 2, could not load > > org.apache.activemq.openwire.v2.MarshallerFactory > > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329) > > at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569) > > at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:108) > > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:127) > > at java.lang.Thread.run(Thread.java:613) > > Caused by: java.lang.ClassNotFoundException: > > org.apache.activemq.openwire.v2.MarshallerFactory > > at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) > > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327) > > ... 6 more > > _______________________________________________ > > m-etc-dev mailing list > > [hidden email] > > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev > > > > > -- > Toli Kuznets > http://www.marketcetera.com: Open-Source Trading Platform > download.run.trade. > m-etc-dev mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev |
||||||||||||||||
|
toli
|
Robert,
I'll let Graham answer your questions on how to add perspectives to Photon in a separate email. However, it seems to me that if all you need to do is generate some custom JMS messages that go to the OMS, get translated to FIX, go to your counterparty, come back and show up as JMS messages somewhere, you may not need to modify Photon too much. Take a look at the OrderLoader - it may be easier and simpler to modify that to send your custom messages. The OrderLoader is setup to read data from a config file, create a FIX buy order from it, and send that as a JMS message to the OMS (see http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/orderloader/src/main/java/org/marketcetera/orderloader/OrderLoader.java) You can setup your own custom fields (which is probably what you are looking to do), and potentially modify other code to suit your needs: http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OrderLoaderGuide One thing to keep in mind is that OrderLoader is one-directional - it sends messages, but it doesn't listen for confirmations from OMS. The OMS is setup to broadcast outgoing JMS messages on a particular topic (oms-messages), so if you have Photon configured to listen to that, you should be able to see all the messages coming back from the OMS in Photon. Let me know if you need further clarifications, or if you have any additional questions. Just thinking that modifying the OrderLoader may be an easier way for you to get started, so that you don't have to spend effort on learning RCP and playing with GUI On 1/31/07, Robert Parrott <[hidden email]> wrote: > Toli, thanks for the reply, I'll just try to build photon from SVN. > > As a follow up, is there somewhere obvious in the photon code where to > start with adding a new perspective besides the equity one ( i.e. a > slightly hacked version of the equity one)? I understand from a > previous email that it would involve changing the features files, but > as far as source, where should I look to copy over the equity > perspective and tart hacking a new one. > > Or alternatively to create/use a perspective that allows the creation > and emission of more generic JMS messages, in order to test the > generation and relaying back of FIX messages that are custom to our > counterparties. > > Basically, in order to properly evaluate marketcetera, we'll need to > see if it can handle messages from some frontend, through the OMS and > to our specific counterparties, and then handle messages back to a > frontend. This will need to be possible for the standard message > workflow of a typical order process, but with our specific > counterparties. As such we need some kind of frontend (be it photon, > or something like Hermes, or just a script) to send and receive > messages specific to our counterparty. > > Perhaps I'm barking up the wrong tree with photon for this immediate > purpose, but if all it takes is duplicating the equities class and > hacking a bit to get it working, that would be a useful approach. > > Thanks again, > rob > > > > > > > > On 1/31/07, Toli Kuznets <[hidden email]> wrote: > > Robert, > > > > We just updated both the OMS and Photon in SVN to use the newer > > version of ActiveMQ, so i'm afraid you are right - you need to use the > > SVN version of Photon to contact the OMS. > > It may be possible to add the newer activemq plugin to 0.2 Photon, but > > i'd probably be more complicated than building it from scratch. > > > > We are planning on releasing the next 0.2.1 updated of both OMS and > > Photon some time in the next couple weeks, if that helps. > > > > toli > > > > On 1/30/07, Robert Parrott <[hidden email]> wrote: > > > Hi Folks, > > > > > > I pulled down and built the OMS from SVN, and tried to run the 0.2 > > > release of photon against it. > > > > > > However I encountered an error, apparently related to the version of > > > ActiveMQ used (4.1 in svn version of oms, 4.0 in photon 0.2). > > > > > > Does the development version of the oms require a development version > > > of photon, or can I add the newer activemq jar into th classpath > > > successfully. > > > > > > thanks, > > > rob > > > > > > > > > ---------------------------- > > > > > > Exception in thread "ActiveMQ Transport: > > > tcp://localhost/127.0.0.1:61616" java.lang.IllegalArgumentException: > > > Invalid version: 2, could not load > > > org.apache.activemq.openwire.v2.MarshallerFactory > > > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:329) > > > at org.apache.activemq.openwire.OpenWireFormat.renegociatWireFormat(OpenWireFormat.java:569) > > > at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:108) > > > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > > > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87) > > > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:127) > > > at java.lang.Thread.run(Thread.java:613) > > > Caused by: java.lang.ClassNotFoundException: > > > org.apache.activemq.openwire.v2.MarshallerFactory > > > at org.apache.activemq.util.ClassLoading.loadClass(ClassLoading.java:104) > > > at org.apache.activemq.openwire.OpenWireFormat.setVersion(OpenWireFormat.java:327) > > > ... 6 more > > > _______________________________________________ > > > m-etc-dev mailing list > > > [hidden email] > > > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev > > > > > > > > > -- > > Toli Kuznets > > http://www.marketcetera.com: Open-Source Trading Platform > > download.run.trade. > > > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ m-etc-dev mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev |
||||||||||||||||
|
gm-mrktc
|
In reply to this post
by robparrott
Some javascript/style in this post has been disabled (why?)
Hey Robert,So for what it's worth, we put up a "nightly" build of photon here, if you're interested: http://repo.marketcetera.org/builds/ We'll put a link to it on trac as soon as we get the kinks worked out of copying it automatically after a successful build on our Continuum server... Anyway, on to the more interesting stuff. I just went through adding a new perspective, and here's how I got it to work: * I copied org.marketcetera.photon.ui.EquityPerspectiveFactory to org.marketcetera.photon.ui.FuturesPerspectiveFactory . * I modified FuturesPerspectiveFactory a little bit (make sure you change the value of the ID field to be "org.marketcetera.photon.FuturesPerspective" * I added the following entry into the perspectives "extension point" in the plugin.xml for org.marketcetera.photon (look for the equity perspective and add it just below) <perspective class="org.marketcetera.photon.ui.FuturesPerspectiveFactory" icon="icons/silk/medal_silver_2.png" id="org.marketcetera.photon.ui.FuturesPerspective" name="Futures"> </perspective> You should then be able to start photon and choose Window->Open Perspective->Other... , and then double click on the Futures perspective. I hope this helps. Let us know if you get stuck. graham On 1/31/07, Robert Parrott
<[hidden email]> wrote: Toli, thanks for the reply, I'll just try to build photon from SVN. Marketcetera Trading Platform download.run.trade. www.marketcetera.org -- Marketcetera Trading Platform download.run.trade. www.marketcetera.org _______________________________________________ m-etc-dev mailing list [hidden email] http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |