Problems with EventSource generating two different types of event

Hi everybody,
i was trying to connect an EventSource (capable of generating two different event types: a MapEventType and a TupleEventType) to two CQL processors through two separate channels, each one dedicated to its event type:
ASSEMBLY:
<?xml version="1.0" encoding="UTF-8"?>
<beans ....>
     <wlevs:event-type-repository>
          <wlevs:event-type type-name="testMapEvent">
               <wlevs:metadata>
                    <entry key="message" value="java.lang.String"/>
                    <entry key="date" value="java.util.Date" />
                    <entry key="list" value="java.util.List" />                    
               </wlevs:metadata>
          </wlevs:event-type>
          <wlevs:event-type type-name="testTupleEvent">
<wlevs:properties>
<wlevs:property name="t_message" type="char" length="4000" />
<wlevs:property name="t_date" type="timestamp"/>
<wlevs:property name="t_list" type="object"/>
</wlevs:properties>
          </wlevs:event-type>
     </wlevs:event-type-repository>
     <wlevs:adapter id="input" class="com.bea.wlevs.adapter.example.types.TestAdapter">
     <wlevs:instance-property name="eventTypeName" value="testMapEvent"/>
     </wlevs:adapter>
     <bean id="output" class="com.bea.wlevs.example.types.TestOutputBean" />
<wlevs:channel id="inputChannelTuple" event-type="testTupleEvent">
<wlevs:listener ref="testProcessorTuple" />
<wlevs:source ref="input" />
</wlevs:channel>
     <wlevs:channel id="inputChannelMap" event-type="testMapEvent">
          <wlevs:listener ref="testProcessorMap" />
          <wlevs:source ref="input" />
     </wlevs:channel>
     <wlevs:processor id="testProcessorMap" />
<wlevs:processor id="testProcessorTuple" />
     <wlevs:channel id="outputChannelMap" event-type="testMapEvent">
          <wlevs:listener ref="output" />
          <wlevs:source ref="testProcessorMap" />
     </wlevs:channel>
     <wlevs:channel id="outputChannelTuple" event-type="testTupleEvent">
          <wlevs:listener ref="output" />
          <wlevs:source ref="testProcessorTuple" />
     </wlevs:channel>
</beans>
JAVA:
The com.bea.wlevs.adapter.example.types.TestAdapter class is a simple RunnableBean generating "testMapEvent"s like this:
+public void run() {+
+... bla bla bla ...+
+while(true) {+
Object event = createEvent();
+if(event != null) {+
eventSender.sendInsertEvent(event);
+}+
+}+
+}+
+private Object createEvent() {+
Object obj = eventType.createEvent();
EventProperty p;
p = eventType.getProperty("message");
p.setValue(obj, "Evento #" seqNum); // seqNum is a int+
p = eventType.getProperty("date");
p.setValue(obj, new Date());
p = eventType.getProperty("list");
p.setValue(obj, nipotini); // nipotini is a List<String>
return obj;
+}+
CONFIG:
+<?xml version="1.0" encoding="UTF-8"?>+
+<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">+
+<processor>+
+<name>testProcessorMap</name>+
+<rules>+
+<query id="testRuleMap">+
+<![CDATA[ select message, date, list from inputChannelMap ]]>+
+</query>+
+</rules>+
+</processor>+
+<processor>+
+<name>testProcessorTuple</name>+
+<rules>+
+<query id="testRuleTuple">+
+<![CDATA[ select t_message, t_date, t_list from inputChannelTuple ]]>+
+</query>+
+</rules>+
+</processor>+
+</n1:config>+
Seems like the events cannot make it beyond the CQL processors:
+<15-dic-2010 20.11.34 CET> <Error> <CQLProcessor> <BEA-000000> <Failed to set property [t_message] of event type [testTu+
+pleEvent]. Cause = [t_message] is not a property of event type [testMapEvent]>+
+<15-dic-2010 20.11.34 CET> <Warning> <Ede> <BEA-000000> <Exception for 'testMapEvent{message=Evento #14, list=[QUI, QUO,+
+QUA], date=Wed Dec 15 20:11:34 CET 2010}' raised by listener = com.oracle.cep.processor.cql.impl.CQLEventReceiver@aa882+
+7+
+com.bea.wlevs.ede.api.EventProcessingException: Internal error processing event [testMapEvent{message=Evento #14, list=[+
+QUI, QUO, QUA], date=Wed Dec 15 20:11:34 CET 2010}] = Failed to set property [t_message] of event type [testTupleEvent].+
+Cause = [t_message] is not a property of event type [testMapEvent]+
at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:389)
at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:248)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
r.java:159)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
+79)+
at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:85)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
r.java:159)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
+79)+
at com.bea.wlevs.adapter.example.types.TestAdapter.run(TestAdapter.java:33)
at com.bea.wlevs.adapter.example.types.TestAdapter$$FastClassByCGLIB$$89b675c7.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:70
+0)+
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.bea.wlevs.adapter.example.types.TestAdapter$$EnhancerByCGLIB$$16190560.run(<generated>)
at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
+Caused By: com.bea.wlevs.ede.api.EventPropertyException: Failed to set property [t_message] of event type [testTupleEven+
+t]. Cause = [t_message] is not a property of event type [testMapEvent]+
at com.oracle.cep.processor.cql.impl.TupleValueUtils.raiseEventPropertyException(TupleValueUtils.java:153)
at com.oracle.cep.processor.cql.impl.TupleValueUtils.projectEvent(TupleValueUtils.java:90)
at com.oracle.cep.processor.cql.impl.TupleValueUtils.compareAndProjectEvent(TupleValueUtils.java:48)
at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:337)
at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:248)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
r.java:159)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
+79)+
at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:85)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
r.java:159)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
+79)+
at com.bea.wlevs.adapter.example.types.TestAdapter.run(TestAdapter.java:33)
at com.bea.wlevs.adapter.example.types.TestAdapter$$FastClassByCGLIB$$89b675c7.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:70
+0)+
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.bea.wlevs.adapter.example.types.TestAdapter$$EnhancerByCGLIB$$16190560.run(<generated>)
at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
+>+
Can anybody help me figuring out what's wrong?
Thank you in advance!

Hello Chris,
Wondering if you've found a solution for this.
I was thinking you could make a web app that used the jQuery dialog, then let the client just put an individual web app item on the home page when they want to have the pop up.
This way it is more like one type of modal window and the client can show whatever they want when they want, and turn it off by removing the module.
You can place the module inside a content holder so they do not mess up any template or page content.
Hope this helps,
Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

Similar Messages

  • Problems with FLV on two different servers

    Hello all,
    I am using an embedded FLV player on a site. On one site it is working fine, but they FLV's won't play on the other site. The files are identical. I set up a test file that points to the various player files (flvplayer.swf and swfobject.js) and then the FLV. I can switch between the two FLV files and the one will play and the other won't. It's not the FLV itself as I've done several tests with different files. It's not the player that I can tell as it works fine on both servers. It's something with the server settings and how it serves up FLV's.
    Is there a specific port that needs to be opened? I just took a look and suprise, suprise, the server on the faulty side is running IIS. The working server is Apache.
    Thanks for any help. This is a really frustrating problem.

    I've done some more research and it looks like it may be a MIME problem with IIS.I've contacted the hosting service and we'll see if that fixes it.
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00001040.html

  • [MV] generate two different image formats with one map-request

    hi
    im using MapViewer API.
    can i generate two different image formats (e.g.jpg and svg) with one map-request. is this possible ?
    best regards
    mathias °ö°

    Hi Mathias,
    this is not possible issuing just one request. You would need to repeat the request changing the format.
    Joao

  • How can I Generate two different reports from single execution of Test cases in NI teststand

    Hi,
    My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
    Solved!
    Go to Solution.

    Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
    The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property. 
    Also, be aware that step's post-expression is not executed in case of error in the step.
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    SequenceFilePostStepRuntimeError_Demo.seq ‏7 KB

  • Is it normal to have two different types of software on the Adobe CC?

    When I go to open the Adobe CC and download my apps, it shows two different types of software. For instance, when I look at Photoshop one version is CS6 and the other is CC. I can download both and I was wondering if there is a difference between the two? And is that a problem or a bug?

    cs6 is an older version of photoshop.  cc is the latest version.

  • Ipod nano 5 resets but won't sync with itunes on two different pc's

    ipod nano 5 resets but won't sync with itunes on two different pc's

    What happens when you try? Does the iPod even appear in iTunes?  Have you tried a different cable or different USB ports on each PC?
    Need a little more information.
    B-rock

  • Problems with reference field in material type

    Hi,
    I have problem with field reference in material type creation.
    When I define a self-defined field reference ZERS (copy of standard field reference HERS) for a own defined material type ZERS (copy of material type HERS), I get the following error message:
    Field reference ZERS has not been set up
    Message no. CZ127
    Diagnosis
    You have specified a field reference that has not been set up.
    Procedure
    Set up the new field reference or use an already existing field reference.
    I do not understand why because the entry ZERS is present in table T130A.
    Here is the IMG config I have made:
    1. Logistics general->Material Master->Field selection->Maintain field selection for Data Screens (here I made copy of field reference HERS and named it ZERS)
    2. Logistics general->Material Master->Basic Settings->Material types->Define attributes of Material types (here I made a copy of material type HERS and named it ZERS. I then tried to set the field T134-FLREF "Field reference" to ZERS, but then the error message appears)
    Does anyone know what config I am missing?
    Or any reason why the error message CZ127 is coming up?
    Thanks

    Must have been system error, I deleted all entries and did it all over again, it worked.

  • My phone is iphone 4 (GSM)-american type with IOS5.11 , i have problem with sim card failer (korek type)

    my phone is iphone 4 (GSM)-american type with IOS5.011 , i have problem with sim card failer (korek type)

    Sounds like your iPhone is locked to AT&T. Contact them to see
    if you qualify for unlocking.
    This link may provide some assistance:
    unlocking AT&T iPhones (thanks to wjosten for the link)
    http://www.att.com/esupport/article.jsp?sid=KB414532#fbid=Ont7guWFCdY

  • Assigning different colors to different types of events

    Is it possible to assign different colors to different types of events within the same calendar?
    If so, how can that be done?
    Thanks for your feedback.

    Greetings,
    The color choices in iCal are defined by calendar. So events in the same calendar will all be the same color. If you want them to be a different color, move them to a different calendar and assign the color of your choice to that calendar.
    Hope that helps.

  • Generate two different pulses or more continuous​ly with a PCI -6602

    I have a PCI-6602 and Labview 8.0. I need to create a complex wavefrom output  and I don't know how to create this waveform with the 6602, I know that I can create this pulse format by using the Agilent Pulse Generator  but I would like to use the National Instruments. If somebody has an idea about how many counters and the physical connections that I need, also about how can I use labview to generate a complex waveform output.
    I've attached the waveform that I need to generate continously and I hope that I can use the PCI-6602 for this purpose.
    Attachments:
    Pulse format.doc ‏24 KB

    This is a duplicate post, for the main post please see:
    NI Discussion Forums: How to generate two diferent pulses and re-trigger such pulses continously
    Regards,
    Dan King

  • How can I get the program to recognize two different types of thermocouples?

    I am using a PCI-4351 card with a TBX-68T terminal block. I was having trouble writing and finding a program that would give me more than one reading/sec. I found a program on the NI website called "435x_logger_triggering", and so far it is the only program that I have found that will actually collect data at 60 Hz. Unfortunately, this program only lets you specify one mode for your thermocouples. This is a problem because we are using two thermocouples, one is type K and the other is a type R, so we get bad readings from one of the thermocouples depending on which mode it is set on. I would like to know how I can program in a seperate mode for each channel in this program. Un
    fortunately, some of the sub VI's in this program are password protected, so I don't know if this is possible. Everything is entered correctly in the Measurement and Automation explorer, so that isn't the problem. I will attach a copy of the program that I am using. I have modified it slightly from the one I got off the NI website, so that the thermocouple readings have a time stamp and are saved to disk. Any assistance you could give me would be greatly appreciated.
    Thanks,
    Jordan
    Attachments:
    Forest_Fire_Thermocouple.vi ‏140 KB
    435xlogger_triggering.vi ‏110 KB

    Jordan,
    You should be able to sample two different thermocouples in the example that ships with the 435x driver called "Getting Started with multiple tranducers Continous". Simply put each type of thermocouple in a different index . Each index of the Transducer Group Array can have a different type and specify the channels that correspond to that type.
    One way that you can speed this VI up is to place a wait inside of the while loop. This will reduce the number of times the software polls the card if it has available data(increasing the overhead). I would suggest about 500 ms. The data that you receive will all have the same delta t because the sampling clock is hardware driven not software, so it does matter when the data is polled.
    You will not be
    able to get 60 samples per second when you are measuring multiple channels anyway. The sample rate for multiple channels is about 9/(# channels). This is explained in the 435x Users Manual.
    I looked at your code and noticed that you tried to change some of the enumeration controls. Unfortunately you will not be able to change these because they are password protected on the low level subVIs, which is where they are defined.
    The way you select if you want the notch filter is in the 435x Config you specify fast or slow. If it is slow then it will select 10Hz as the nitch filter. If you select fast the it will select either 50 or 60Hz You would then use the function "435x Set power line frequency"
    Good luck,
    Mike

  • Problem: Sharing session between two different Web browser & Web Appn'

    I�m facing a strange scenario here and would appreciate any inputs which could resolve this issue.
    I have two webapplications (EAR�s) on two different machine and different WebSphere application server. I have �WebAppA� [on machine A, WAS A] which opens in parent window and expects to pass some info in the FORM submission with request parameter to �WebAppB� [on machine B, WAS B] which opens in a child window browser on clicking submit button from �WebAppA�.
    Now the WebAppA is required to wait till the response come from WebAppB after certain functionality and once the function of retrieval is over by WebAppB, it sent back the response data back to WebAppA FORM, which finally submits this form after getting the response data from WebAppB. Now the response to WebAppA [which is in machine A, WAS A] from WebAppB is a pure POST request on complete URL and set of request parameters with values.
    Now what is happening is that, when a User A fills the form on WebAppA and submits the data to WebAppB, on response it gets the data of some other User request, for example day of UserB or UserC.
    Now when I do the test on my development environment, where its just me or some other 2-3 users accessing it I don�t face any problem. I get the response for the request I have submitted�.PERFECT. On production I have issue where users are getting data as response of other users.
    I suspect since the response is submitted to the form page of WebAppA its unable to synchronize to which user it belongs to. May be that�s the reason when I test it on development with single or 2-3 users its behaving fine. I hope I could put my question properly to you. I don�t know what can resolve this or what is the actual cause? Is there a proper way to implement this? Please any suggestion or inputs are appreciated.

    Thanks Amittev,
    That's the problem for me. Actually this is a part of integration with third party application (which is loaded in child window - WebAppB). So as per the functionality there is no reference or trace of the user in the parent window at first instance. Anyone can come to parent window and initiatate a process. Its only when the data comes back from child window (which is the WebAppB), that parent window application (WebAppA) take the response and proceed further. Now here is what I'm facing problem. the user who initiated the process by clicking on the submit buttom of Parent window is not getting his response, but of some other user. This is not happening with every user and at all time. But were sparingly and rarely, but enough to bring headache to our department now.
    Now I suspect that, since there is a parent/child browser functionality here the session which is started by parent is not synced with child where the WebAppB is loaded and responds the response to WebAppA. The WebAppB makes a POST request submission to the WebAppA thru the child window and the session here is missing synchronization, I believe. I will appreciate some inputs and resolution to this problem. Thanks.

  • Problems with java constructor: "inconsistent data types" in SQL query

    Hi,
    I tried to define a type "point3d" with some member functions, implemented in java, in my database. Therefor I implemented a class Point3dj.java as you can see it below and loaded it with "loadjava -user ... -resolve -verbose Point3dj.java" into the database.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    package spatial.objects;
    import java.sql.*;
    public class Point3dj implements java.sql.SQLData {
    public double x;
    public double y;
    public double z;
    public void readSQL(SQLInput in, String type)
    throws SQLException {
    x = in.readDouble();
    y = in.readDouble();
    z = in.readDouble();
    public void writeSQL(SQLOutput out)
    throws SQLException {
    out.writeDouble(x);
    out.writeDouble(y);
    out.writeDouble(z);
    public String getSQLTypeName() throws SQLException {
    return "Point3dj";
    public Point3dj(double x, double y, double z)
    this.x = x;
    this.y = y;
    this.z = z;
    public static Point3dj create(double x, double y, double z)
    return new Point3dj(x,y,z);
    public double getNumber()
         return Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);
    public static double getStaticNumber(double px, double py, double pz)
         return Math.sqrt(px*px+py*py+pz*pz);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Additionally, I created the corresponding type in SQL by
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    CREATE OR REPLACE TYPE point3dj AS OBJECT EXTERNAL NAME
    'spatial.objects.Point3dj' LANGUAGE JAVA USING SQLDATA (
    x FLOAT EXTERNAL NAME 'x',
    y FLOAT EXTERNAL NAME 'y',
    z FLOAT EXTERNAL NAME 'z',
    MEMBER FUNCTION getNumber RETURN FLOAT
    EXTERNAL NAME 'getNumber() return double',
    STATIC FUNCTION getStaticNumber(xp FLOAT, yp FLOAT, zp FLOAT) RETURN FLOAT
    EXTERNAL NAME 'getStaticNumber(double, double, double) return double')
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    After that I tried some SQL commands:
    create table pointsj of point3dj;
    insert into pointsj values (point3dj(2,1,1));
    SELECT x, a.getnumber() FROM pointsj a;Now, the problem:
    Everything works fine, if I delete the constructor
    public Point3dj(double x, double y, double z)
    this.x = x;
    this.y = y;
    this.z = z;
    in the java class, or if I replace it with a constructor that has no input arguments.
    But with this few code lines in the java file, I get an error when executing the SQL command
    SELECT x, a.getnumber() FROM pointsj a;The Error is:
    "ORA-00932: inconsistent data types: an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class expected, an Oracle type that could not be converted to a java class received"
    I think, there are some problems with the input argument of the constructor, but why? I don't need the constructor in SQL, but it is used by a routine of another java class, so I can't just delete it.
    Can anybody help me? I would be very glad about that since I already tried a lot and also search in forums and so on, but wasn't successful up to new.
    Thanks!

    Dear Avi,
    This makes sense when it is a short code sample (and i think i've done that across various posts), but sometime this is too long to copy/paste, in these cases, i refer to the freely available code samples, as i did above on this forum; here is the quote.
    Look at examples of VARRAY and Nested TABLES of scalar types in the code samples of my book (chapter 8) http://books.elsevier.com/us//digitalpress/us/subindex.asp?maintarget=companions/defaultindividual.asp&isbn=9781555583293&country=United+States&srccode=&ref=&subcode=&head=&pdf=&basiccode=&txtSearch=&SearchField=&operator=&order=&community=digitalpress
    As you can see, i was not even asking people to buy the book, just telling them where to grab the code samples.
    I appreciate your input on this and as always, your contribution to the forum, Kuassi

  • Problem with system settings for different project.

    Hello, I have something that pauses me a lot of problems. I work on different editing projects with deferent externe Hard Disc. I have 3 of those but on each one I have the video and sound and render...importation for one specific project. The thing is that I want that FC automatically changes the setting to where make the saves and import the new material (video cassettes...). It means if I open a project in disc 1 and import video it does not put it in disc 2 just, disc on witch I worked juste before on an other project. I'll have a lot of off media problems and risks of loosing things...
    What can I do ?
    Thanks for reading !
    Message was edited by: Napoléon23

    YOu have to manually reset the Scratch Disk for each project you open. There is no automated way to do this in FCP at this time.
    Shane

  • Problem with WSDL generated with wscompile JAX-RPC

    Ok well I have successfully built a Web Service (From an existing wsdl) and Static Stub Client they work perfectly. I then I tried to connect to it using a Delphi Web Service Client. The client cant change, the problem I am getting is it is requesting using the variable name I am using and the WSDL has String_1.
    Ie. it gives me:
    unexpected element name: expected=String_1, actual= {targetNameSpace} [Variable Name]
    I suspect this is a problem with how the WSDL is generated any suggestions?

    THanks for the response, I originally used axis WSDL2Java. And only used the interface class. I think this is where my whole thing fell down. Although this worked with a static stub client that I used.
    I have now generated the server side java files using wscompile and am l looking how to implement the server. It doesn't look like it has a implementation class there. And there isn't much information on how to do it.

Maybe you are looking for

  • Lost mail ????

    Some how i lost my mail  history also the "sent "e-mail will not execute  ...I can't send new mail , and I am not receiving any mail ???!!!! I have mail 4.5 version I have the Icon at bottom I click on it and the mail page comes up but i can write an

  • Styles (nested?) in Long Document with Color Coded Sections

    Hi, I am looking for a solid style set-up for a document with seven color coded sections. The character, paragraph, table styles, etc. will be used throughout the book, but several of them (chapter headers, bold color, table strokes) will shift color

  • I have songs on my computer that are located in media music folder, but they won't play in iTunes

    My iTunes will not play some songs that are in the play list, then helps me locate them in the media folder for songs, but will not import those songs or play them.

  • Acrobat Pro App: how to delete documents in DC

    I can't find where to delete documents in the Acrobat Por DC iphone App. Is there someone who find out?

  • IE7 Drill down issues

    Hi All, we are having problems in disco viewer regarding the drill down issues when uisng the IE7, and i installed Jinitiator 1.3.1.26 and 1.3.1.28 and followed the following procedure based on the research i have done but still no results. In IE7: T