Mis match in Types Conversion.
Hi All,
I'm stuck at this following logic implementation.
The fields For Action reason and Text, In Query Sheet it was mention to use the following Logic.
1) from table /BI0/SEMPLOYEE, input the employee number and output the SID
2) from table /BI0/D0PA_C011, input the SID( extracted above) and output the DIMID
3) from table /BI0/D0PA_C01T, input the DIMID(extracted above) and output the SID_0CALYEAR.
4) from table /BI0/F0PA_C01, input the KEY_0PA_C011 = /BI0/D0PA_C011-DIMID
and KEY_0PA_C01T = /BI0/D0PA_C01T-SID_0CALYEAR output all the rows for the field KEY_0PA_C012.
5) from table /BI0/D0PA_C012, input DIMID = /BI0/F0PA_C01-KEY_0PA_C012 output all the rows for the field SID_0ACTIONREAS SID_0ACTIONTYPE.
6) from table /BI0/TACTIONREAS, input ACTIONREAS and output all the rows of ACTIONTYPE and TXTMD into the output file
But there is mismatch happening when we come to Step 5 and 6.
SID_0ACTIONREAS , SID_0ACTIONTYPE of Table /BI0/F0PA_C01 and ACTIONREAS ,ACTIONTYPE of Table /BI0/TACTIONREAS are having different Type declarations.
So hence Im not able to validate the Action Type and TXTMD .
But I'm not able to handle this exception.
can any plz let me know how to handle this conversion.
Thank Q
Rohini.
Solved myself.
Similar Messages
-
LV 8.0.1 Bug, no error when unflattening mis-matched data type
When unflattening a string and wiring a "type" that does not match the original format of the data, sometimes I don't get an error and I get no data. I've attached a VI written in 8.0.1 that illustrates 2 examples of this. In LV 7.1 these cases did return an error, but not in 8.0.1. Can anyone offer some insight or global solution?
Thanks, Chip
Attachments:
LV 8 Bug, no error trapped on mismatched type when unflattening string.vi 23 KBGood afternoon,
Well, this certainly is an interesting situation. In the example “Unflatten string returns data
from previous iterations”, the second iteration of the for loop unflattens a
string as an array of strings type, this is obviously a type mismatch so if any
data is returned I wouldn’t expect it to be valid. What is even more interesting, is that if you
don’t use the auto indexing, but rather explicitly index the array there is no
error, but the data returned is like it was in 7.x. I tried to use the flatten function’s
“convert 7.x data function with no luck in either case. I filed a bug report on this issue (number
3X0CBC3A), but it seems to me the only workaround for now is going to be just
making sure the types match. I know this
is going to be inconvenient for you, and for that I apologize.
Incidentally, in many cases I wouldn’t necessarily expect an
error to be generated if the types don’t match.
This is because the flatten to string function takes your data and
converts it to a string which is nothing more than a byte[ ] of data with some
size information. When you “unflatten”
the function takes the string it is given, and attempts to reconstruct the data
in the format that is specified by the “type” input. If it can reconstruct the data from type,
regardless of the data returned I wouldn’t expect it to generate an error. Sometimes, however, an error can be detected
– if you flatten a double-precision number and unflatten to a single precision
number LabVIEW can detect that the incoming data represents something much
larger than a single precision number. I
suppose that LabVIEW 7 did a better job checking the size of the sting before
deciding whether or not to generate an error.
Again, I apologize for the problems this may cause. Please let me know if there is anything else
I can help with.
Travis M
LabVIEW R&D
National Instruments -
Hi folks,
Some time ago I had a 16GB 6+ and it crashed with the blue screen, so I returned it. I now have a brand new one that I got from Tmobile ($75 return fee) and although it has mostly worked just fine, I have gotten 2 blue screen crashes. Below are the details from the phone's log.
What strikes me is the message "Read, error type:Address map hole or size mis-match".
Does anyone know if this could be caused by a hardware defect?
I've gotten one of these crashes running iOS 8.1.2 and another in 8.1.3.
Thanks.
Incident Identifier: 20304759-E90B-453F-BDC5-176AF4E30041
CrashReporter Key: fcf18d230005749957728546dea3221a0c588330
Hardware Model: iPhone7,1
Date/Time: 2015-01-25 19:43:44.913 -0800
OS Version: iOS 8.1.2 (12B440)
panic(cpu 0 caller 0xffffff8008cd45d0): L2C PIO error (src:core0-AF snoop, address:0x1202030208, access:Read, error type:Address map hole or size mis-match, L2C_ERR_STS:100003fc00000202, L2C_ERR_ADR:0x1108e1202030208, L2C_ERR_INF:0x2107)
Debugger message: panic
OS version: 12B440
Kernel version: Darwin Kernel Version 14.0.0: Mon Nov 3 22:27:30 PST 2014; root:xnu-2783.3.22~1/RELEASE_ARM64_T7000
iBoot version: iBoot-2261.3.33
secure boot?: YES
Paniclog version: 3
Kernel slide: 0x0000000006000000
Kernel text base: 0xffffff8008002000
Epoch Time: sec usec
Boot : 0x54bc22ef 0x00000000
Sleep : 0x54c58398 0x0002abb4
Wake : 0x54c583ae 0x000f08df
Calendar: 0x54c5b7e3 0x00025045same with my iPhone 4s 16gb
{"os_version":"iOS 8.1.3 (12B466)","bug_type":"110"}
Incident Identifier: 582496DB-6999-468C-9504-3D1C191B9F4B
CrashReporter Key: 623a577555e51ed110b937358adfa66fba3ea447
Hardware Model: iPhone4,1
Date/Time: 2015-02-20 04:17:50.830 +0300
OS Version: iOS 8.1.3 (12B466)
panic(cpu 0 caller 0x83dc8347): "i2c1::_checkBusStatus Bus is still in a bad state; last write status 00010110 xfer 00000000 fifo 00000000 for device als"
Debugger message: panic
OS version: 12B466
Kernel version: Darwin Kernel Version 14.0.0: Mon Jan 12 21:30:11 PST 2015; root:xnu-2783.3.26~3/RELEASE_ARM_S5L8940X
Kernel slide: 0x0000000003400000
Kernel text base: 0x83401000
Boot : 0x54e68884 0x00000000
Sleep : 0x54e68a7e 0x000dd6ac
Wake : 0x54e68b19 0x00035c02
Calendar: 0x54e68b1d 0x00040927
Panicked task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
panicked thread: 0xc5066e80, backtrace: 0x81a33ca0
0x834ad94d
0x834adcb1
0x8341d5bd
0x83dc8347
0x83dc8059
0x83dc7e35
0x8389c601
0x8389c513
0x836f6f65
0x8389cc6d
0x8389ccc5
0x83a9f18d
0x83a9c27f
0x83a9c73f
0x83a9c90d
0x836f6f65
0x83a9c8e5
0x836e91e7
0x8343ed9b
0x834ab59c
Task 0x84a87c60: 13773 pages, 122 threads: pid 0: kernel_task
Task 0x84a87948: 771 pages, 3 threads: pid 1: launchd
Task 0x84a87000: 2016 pages, 13 threads: pid 17: UserEventAgent
Task 0x84a87630: 481 pages, 4 threads: pid 18: misd
Task 0x84a87318: 4114 pages, 22 threads: pid 19: CommCenter
Task 0x87a62948: 349 pages, 2 threads: pid 21: keybagd
Task 0x87a62318: 574 pages, 4 threads: pid 23: iaptransportd
Task 0x87a62000: 868 pages, 9 threads: pid 24: configd
Task 0x87a7ac60: 793 pages, 4 threads: pid 25: lockdownd
Task 0x87a7a948: 1218 pages, 6 threads: pid 26: imagent
Task 0x87a7a630: 2771 pages, 4 threads: pid 27: atc
Task 0x87a7a318: 792 pages, 2 threads: pid 28: fairplayd.H1
Task 0x87a7a000: 1571 pages, 14 threads: pid 29: aggregated
Task 0x87c4ac60: 1069 pages, 4 threads: pid 30: routined
Task 0x87c4a318: 707 pages, 5 threads: pid 33: timed
Task 0x87d23c60: 646 pages, 2 threads: pid 35: installd
Task 0x87d23948: 2383 pages, 11 threads: pid 36: mediaserverd
Task 0x87d23318: 1279 pages, 11 threads: pid 38: ubd
Task 0x87d23000: 249 pages, 7 threads: pid 39: syslogd
Task 0x87d6ac60: 410 pages, 2 threads: pid 40: softwareupdated
Task 0x87d6a948: 851 pages, 5 threads: pid 41: mediaremoted
Task 0x87d6a630: 1877 pages, 7 threads: pid 42: identityservices
Task 0x87d6a318: 9938 pages, 16 threads: pid 43: SpringBoard
Task 0x87d6a000: 453 pages, 2 threads: pid 44: fileproviderd
Task 0x87e25c60: 609 pages, 4 threads: p -
Mis match in attributes of item category B and Blanket PO item details
Hi
I could not able to create a Blanket PO with document type FO and item category B (limit).
Normally for a blanket PO, GR is not allowed and IR is mandatory. So, I could able to see these checkboxes for GR (not set and grayed) and IR (set and grayed) in the item details of the PO in delivery and invoice tabs. But I end with an error message that 'GR is not set is used is not allowed' (exactly i don't remember but some thing like that)
Before creating a blanket PO, I found that in 'attributes of item categories', that for the item category B, GR is set and IR is not set (in customizing-OMH4). Of course, one cannot change the attributes of item categories.
I suppose due to this mis-match in the attributes of item categories and that in the PO, I'm getting an error message while creating a blanket PO and could not able to save.
Also I have checked all the system messages for the message displayed. No where(i.e. in any message class or category and for that message number) I found any such message defined with error in 'attributes of system messages' for purchasing, material master, inventory, invoice verification etc.
I suppose this error message is coming somewhere from the application program for the PO.
So, what can be the solution
waiting for your reply.
thank youThank you for your answer. I haven't mention this point in my thread but I have already tried this.
I have tried matching the GR and IR controls of account assignment category with PO GR, IR controls and also with item category B, GR, IR controls. Still i am getting the same error and could not able to save the PO
Also I have checked the field settings for PO for all categories like transaction relevant, item category relevant, etc in customizing.
Main problem is both GR and IR controls are being grayed in PO. Other wise I could able to change them as per my wish and could able to avoid the error even though the GR and IR controls in PO are correct as per the process requirement.
If possible, please check the GR and IR controls for item category B (in my system it showing that GR is set with binding and IR is not set with binding). But it should be reverse as per the process requirements and in limit PO it is showing correctly. i.e. with GR is not set with binding and IR is set with binding.
thank you -
Mis match in attributes of item category B-limit and PO item details
Hi
I could not able to create a Blanket PO with document type FO and item category B (limit).
Normally for a blanket PO, GR is not allowed and IR is mandatory. So, I could able to see these checkboxes for GR (not set and grayed) and IR (set and grayed) in the item details of the PO in delivery and invoice tabs. But I end with an error message that 'GR is not set is used is not allowed' (exactly i don't remember but some thing like that)
Before creating a blanket PO, I found that in 'attributes of item categories', that for the item category B, GR is set and IR is not set (in customizing-OMH4). Of course, one cannot change the attributes of item categories.
I suppose due to this mis-match in the attributes of item categories and that in the PO, I'm getting an error message while creating a blanket PO and could not able to save.
Also I have checked all the system messages for the message displayed. No where(i.e. in any message class or category and for that message number) I found any such message defined with error in 'attributes of system messages' for purchasing, material master, inventory, invoice verification etc.
I suppose this error message is coming somewhere from the application program for the PO.
So, what can be the solution
waiting for your reply.
thank you
Message was edited by:
srinivas vandanaThank you for your answer. I haven't mention this point in my thread but I have already tried this.
I have tried matching the GR and IR controls of account assignment category with PO GR, IR controls and also with item category B, GR, IR controls. Still i am getting the same error and could not able to save the PO
Also I have checked the field settings for PO for all categories like transaction relevant, item category relevant, etc in customizing.
Main problem is both GR and IR controls are being grayed in PO. Other wise I could able to change them as per my wish and could able to avoid the error even though the GR and IR controls in PO are correct as per the process requirement.
If possible, please check the GR and IR controls for item category B (in my system it showing that GR is set with binding and IR is not set with binding). But it should be reverse as per the process requirements and in limit PO it is showing correctly. i.e. with GR is not set with binding and IR is set with binding.
thank you -
Passing regexp_replace backreference to a function; type conversion problem
I am trying to convert some text within my CLOB field to HTML links.
The format of the (part of the link I am having problems with) is:
<link 12>
which I wish to convert to
url_dest
I am trying to pass the backreference \1 (being the number 12 in this case) in regexp_replace to a simple function I have made and when I run it I receive the error:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
I have tested the function on its own with passing a string and it works fine.
I have passed the string from the backreference to the function and back out as the return value and it works fine.
However, when I try to pass the string back reference (a set of digits) to use as the NUMBER ID in my where clause, it always returns this error. I have tried CASTing / TO_NUMBER in every way possible I can think of, using temporary variables etc. and still the same error.
=====
CREATE OR REPLACE
FUNCTION GETLINK (linkid IN CLOB)
RETURN VARCHAR2 AS
linkstring VARCHAR2(4000);
linkchar VARCHAR(4000);
linkint NUMBER;
BEGIN
linkchar := TO_CHAR(linkid);
linkint := TO_NUMBER(linkchar);
SELECT url_dest INTO linkstring FROM TABLE WHERE ID = linkint;
RETURN linkstring;
END;
=====
Offending calling code:
tempcontent := regexp_replace(myClobField, '<link ([[:digit:]]*)>', GETLINK('\1'));
=====
I have tried implicit and explicit type conversions that vary the above function; in parameters as VARCHAR2; etc.; no joy.
Is this a bug within the database, is it by design, or is it just me making a hash of things? I really don't want to have to pull the XML into PHP then run the PHP regex functions with Oracle DB queries to do this!
Many thanks for your assistance.
IngramMany thanks for the reply, but I'm not sure how that would work. I wish to do a global regexp_replace on all instances of '<link> ([[:digit:]]*)>' within my XML document, with the return value from the GETLINK function.
So for instance.
The return value of GETLINK could be in format:
<a href="\1">
so an XML document of:
=====
<doc>
<link 12>Test Link</link>
some content
<link 783>A second Test Link</link>
</doc>
=====
would return as:
=====
<doc>
<a href="12">Test Link</link>
some content
<a href="783">A second Test Link</link>
</doc>
=====
Obviously I would then do the other replacements to fix broken XML with the non matching end tags etc.
TIA -
Hi,
i'm checking the /var/log/auth.log and I found out that there is this error message
Jun 9 20:19:56 localhost polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.23 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 9 20:19:57 localhost dbus[513]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.23" (uid=1000 pid=861 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=654 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Jun 9 20:19:57 localhost dbus[513]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.23" (uid=1000 pid=861 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=654 comm="/usr/sbin/console-kit-daemon --no-daemon ")
Jun 9 20:19:57 localhost dbus[513]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.23" (uid=1000 pid=861 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.1" (uid=0 pid=654 comm="/usr/sbin/console-kit-daemon --no-daemon ")
if think the problem is in /etc/dbus-1/system.conf
<deny send_type="method_call"/>
I'm tempted to change this to allow, but I won't as long as I don't understand why this deny-rule is implemented.
Last edited by miky76 (2012-06-09 20:41:06)That deny rule is the default. Things in /etc/dbus-1/system.d override it. There's a ConsoleKit.conf file in there that describes what interaction ConsoleKit actually allows.
That said, ConsoleKit.conf also denies this access:
<deny send_destination="org.freedesktop.ConsoleKit"
send_interface="org.freedesktop.DBus.Properties" />
I don't know why this is denied - most likely it's to prevent private data from being stolen from console-kit-daemon in this way. I don't see any such private data stored in properties on ConsoleKit, though:
$ dbus-send --print-reply --system --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Session1 org.freedesktop.DBus.Introspectable.Introspect
method return sender=:1.5 -> dest=:1.14 reply_serial=2
string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg name="data" direction="out" type="s"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
<arg name="interface" direction="in" type="s"/>
<arg name="propname" direction="in" type="s"/>
<arg name="value" direction="out" type="v"/>
</method>
<method name="Set">
<arg name="interface" direction="in" type="s"/>
<arg name="propname" direction="in" type="s"/>
<arg name="value" direction="in" type="v"/>
</method>
<method name="GetAll">
<arg name="interface" direction="in" type="s"/>
<arg name="props" direction="out" type="a{sv}"/>
</method>
</interface>
<interface name="org.freedesktop.ConsoleKit.Session">
<method name="SetIdleHint">
<arg name="idle_hint" type="b" direction="in"/>
</method>
<method name="GetIdleSinceHint">
<arg name="iso8601_datetime" type="s" direction="out"/>
</method>
<method name="GetIdleHint">
<arg name="idle_hint" type="b" direction="out"/>
</method>
<method name="Unlock">
</method>
<method name="Lock">
</method>
<method name="Activate">
</method>
<method name="GetCreationTime">
<arg name="iso8601_datetime" type="s" direction="out"/>
</method>
<method name="IsLocal">
<arg name="local" type="b" direction="out"/>
</method>
<method name="IsActive">
<arg name="active" type="b" direction="out"/>
</method>
<method name="GetLoginSessionId">
<arg name="login_session_id" type="s" direction="out"/>
</method>
<method name="GetRemoteHostName">
<arg name="remote_host_name" type="s" direction="out"/>
</method>
<method name="GetDisplayDevice">
<arg name="display_device" type="s" direction="out"/>
</method>
<method name="GetX11DisplayDevice">
<arg name="x11_display_device" type="s" direction="out"/>
</method>
<method name="GetX11Display">
<arg name="display" type="s" direction="out"/>
</method>
<method name="GetUnixUser">
<arg name="uid" type="u" direction="out"/>
</method>
<method name="GetUser">
<arg name="uid" type="u" direction="out"/>
</method>
<method name="GetSessionType">
<arg name="type" type="s" direction="out"/>
</method>
<method name="GetSeatId">
<arg name="sid" type="o" direction="out"/>
</method>
<method name="GetId">
<arg name="ssid" type="o" direction="out"/>
</method>
<signal name="Unlock">
</signal>
<signal name="Lock">
</signal>
<signal name="IdleHintChanged">
<arg type="b"/>
</signal>
<signal name="ActiveChanged">
<arg type="b"/>
</signal>
<property name="idle-hint" type="b" access="readwrite"/>
<property name="is-local" type="b" access="readwrite"/>
<property name="active" type="b" access="readwrite"/>
<property name="x11-display-device" type="s" access="readwrite"/>
<property name="x11-display" type="s" access="readwrite"/>
<property name="display-device" type="s" access="readwrite"/>
<property name="remote-host-name" type="s" access="readwrite"/>
<property name="session-type" type="s" access="readwrite"/>
<property name="user" type="u" access="readwrite"/>
<property name="unix-user" type="u" access="readwrite"/>
</interface>
</node>
Note those properties at the end of that list, which are the same things you can learn by running ck-list-session.
If you want to change the deny to allow, you may as well do it in the ConsoleKit.conf line, so it's specific to this usage, rather than allowing any method call in the world called through dbus.
FWIW, I can reproduce this same error, trying to do it "by hand", though I don't use GNOME, as you do:
$ dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Session1 org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.ConsoleKit.Session
Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.17" (uid=1000 pid=13892 comm="dbus-send --print-reply --system --type=method_cal") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=751 comm="/usr/sbin/console-kit-daemon --no-daemon ") -
Implicit and explicit Type conversion using Type object in heap
Hi,
I am surprised how Implicit and explicit Type conversion works using Type object in heap. for example when implicit type conversion occur what pointer it returns to object and similarly with explicit type conversion.Hello,
>> I am surprised how Implicit and explicit Type conversion works using Type object in heap.
For Implicit conversions: Typical examples are conversions from smaller to larger integral types, and conversions from derived classes to base classes. For the first one, the reference would be different which means it would return a different pointer to
a new object. For the reference type, it actually points to the same memory location, you could use the object.ReferenceEquals() to check it.
For Explicit conversions (casts):Typical examples include numeric conversion to a type that has less precision or a smaller range, and conversion of a base-class instance to a derived class. For first one, it would perform the same with implicit conversions.
While for the conversion of conversion of a base-class instance to a derived class, actually, there's no built-in way to do this conversion.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
The priority of different data type conversion
Hi All,
I want to know the priority of data type conversion rule. if in an expression, I have several kind of data type( I, P, F,N..).
Then finaly, all the data object will convert to which data type?
I don't know the priority of data conversion.
E.g. data a type i. data b type p. data c type f.
a = b + c.
or data d type p, data e type f.
if ( d > f ).
Then who will convert to who's type?
Thanks and Regards.
AaronFor expressions, the right term in SAP is "calculation type", it's explained here : [abap help - determining the calculation type|http://help.sap.com/abapdocu_70/en/ABENARITH_TYPE.htm]. SAP takes the "biggest" type of all variables in the expression. It can be I, P or F (smallest is I, biggest is F).
Conditions are handled differently, just using data type conversion (see link given above by Abhishek), SAP converts from smallest to biggest type (in your case, it converts P to F and compares the two F variables). -
Need Help with data type conversion
Hello People,
I am new to java, i need some help with data type conversion:
I have variable(string) storing IP Address
IPAddr="10.10.103.10"
I have to call a library function which passes IP Address and does something and returns me a value.
The problem I have is that external function call in this library excepts IP Address in form of a byte array.
Here is the syntax for the function I am calling through my program
int createDevice (byte[] ipAddress).
now my problem is I don't know how to convert the string IPAddr variable into a byte[] ipAddress to pass it through method.Class InetAddress has a method
byte[] getAddress() You can create an instance using the static method getByName() providing the IP address string as argument. -
Object does not match target type when raising an event from c# to VB6
I have a c# .net DLL that I use from a VB6 app. It exposes an event,
and the VB6 app is sinking it.
The VB6 app is receiving the event, as long as it is raised from the
main thread of the .net DLL.
I have an aync task being handled inside the DLL (delegate BeginInvoke). Any
attempt to raise the event from within that thread casuses the reported
error, even from within the AsyncCallback function, when the thread is ending.
I noticed that the delegate for the event is not declared inside the
interface. It's in that module, but above the interface definition:
[ComVisible(false)]
public delegate void LoggingEventHandler( string logData );
The event is declared in the class itself as:
public class Processor : _Processor
public event LoggingEventHandler LogNotification;
Finally, to raise the event:
if ( this.Completed != null )
this.Completed( true );
If I open the tlb with OLEVIEW, I can see the public event just fine. Of course, I expected to, as it's working up until the helper thread kicks in.
Now for the REAL WIERD PART! This DOES work on several servers that have
been in production for months. It's just this one server that it won't work
on. Same code. Resinstalled/registered it 1,000 times. It took me a while to
find that an error was even occuring, since it was being raised in the
seperate thread. In other words, I'm receiving the event just fine on a series of servers. This is a new machine we're trying to bring online. I suspect it's environmental, but I can't figure it out.
I don't understand why the publisher would be expecting a certain type of
subscriber in the first place... unless the error is really triggered by the client when the event reaches it. I've put logging into the client, though, and the first line of code inside the event is not being executed.
For the VB6 app, I reference the tlb file that is automatically created when
I compile (Interop is checked). I unregistered and re-registered the tlb on
the server. I regasm'd the dll itself. All dlls are in the same folder - not
in the GAC.
The stack trace is as follows:
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at HPFS.Queue.IProcessorEvents.LogNotification(String logData))This is driving me nuts!
I sure would appreciate any suggestions.
I got this working on one of the two machines. The other machine had some other issues, so I had it re-imaged. It's been so long since I fixed the first one, that I can't remember exactly how I did it. Plus, I did so many things to it over two weeks, that I never really felt confident, anyway. But ... I could *swear* that the last thing I did back then to get this event to flow was to re-register the DLL's TLB.
So ... This is win 2k with FW 1.1 + SP1.
Completed is the delagate I'm trying to invoke.
this.Completed.Target.GetType().Name = "__comobject"
I've tried everything. Unregistered the .tlb. Unregistered the .net DLL. Verified that the app completely failed while unregistered. Created the TLB using RegAsm /tlb syntax.
I tried using CLR SPY. It registers nothing. It only lets me pick an EXE. This is a DLL tring to raise to an EXE.
I've looked at the TLB in OLE VIEW and I just don't know what I'm looking at.
Is there any other tool or technique I can use to audit/monitor/trap this? .net is giving me *** for details about what's failing. I wish I could somehow debug into exactly what it's trying to do and get more details on the failure.
Here's the error I'm getting:
(Code -1) Object does not match target type.<Source:mscorlib>(Stack: at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at HPFS.Queue.IProcessorEvents.Completed(Boolean success)
at HPFS.Queue.Processor.RequestDone())
Processor = the DLL I'm trying to raise the event from.
IProcessor = the event interface that's exposed through COM. -
Does data type nvarchar in SQL 7.0 have matched DATA TYPE in JAVA
does data type nvarchar in SQL 7.0 have matched DATA TYPE in JAVA
I use odbc-jdbc bridge to connect to SQL 7.0
thanks in advance!try String.
java.sql.Types.VARCHAR would be the sql type. -
what are the invalid data type conversions in ABAP ???
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Mar 10, 2012 6:01 PMNo Amanda,
The values that I see in message monitor are also those that comes to XSLT programs as input.
I investigated our problem a little further myself:
1) XI always converts messages into XML format - this everybody knows.
2) In XI documentation it is declared that XI uses ISO 8601 for DATE type formatting. That's why you see dates in format YYYY-MM-DD in XML data in message monitoring.
3) The appearance of those decimal values are not that obvious for me. If XI uses ABAP transformation for message content then applies the rules for converting ABAP data types into XML. For this there is a SAP document 'ABAP - XML mapping' from TechEd2004. This document seems to describe how ABAP data types are handled by XML transformation.
Anyway, we currently need to play with decimal values in XSLT mapping programs inside XI:
a) add leading 0 integer if source value < 1
RFC returns 0.123 -> XI converts to XML '.123' -> XSLT mapper should return '0.123' ->SOAP response returns '0.123'
b) add decimal point and trailing zeros
RFC returns 0.000 -> XI converts to XML '0' -> XSLT mapper should return '0.000' ->SOAP response return '0.000'
With dates, the problem is actually on documenting mapping rules when writing interface specifications. If you would write an EAI-solution-independent conversion rule (RFC/date->SOAP/char) for date field it could sound like: YYYYMMDD -> dd.mm.yyyy. This works semantically between these systems but would not work for XI-developer, because he get YYYY-MM-DD from the RFC.
Additionally the decimal type conversion requirements in XSLT mapping programs probably only applies XI and are therefore not reusable in other EAI environments.
I would be glad if somebody would still have further comments for this data type conversion issue.
br: Kimmo -
WebDynpro call Returns an exception: Type conversion error
Hi,
I'm trying to start some of the standard SAP web dynpro .
most of then work fine.
some don't and i get the following error message.
Root Cause
The initial exception that caused the request to fail, was:
+com.sap.aii.proxy.framework.core.DataAccessException: Type conversion error, field TAX_PER_DIEMTAX, complex type class com.sap.xss.tra.tre.model.expenses.Ptrv_Web_General_Data_Int+
+at com.sap.aii.proxy.framework.core.JcoBaseTypeData.propagateJcoException(JcoBaseTypeData.java:130)+
+at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:751)+
+at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValue(DynamicRFCModelClass.java:482)+
+at com.sap.tc.webdynpro.progmodel.context.GenericModelClassCopyHelper.setAttributeValue(GenericModelClassCopyHelper.java:69)+
+at com.sap.tc.webdynpro.progmodel.context.CopyService.copyCorresponding(CopyService.java:55)+
+... 66 more+
See full exception chain for details.
could anyone give me an hint.
jco connetion are made and testet for:
sap_r3_humanresources
sap_r3_finacials
sap_r3_selfservicegenerics
sap_r3_travel
analog the *_MetaData
Thank in advance
MaximilianHello
did you solve this problem? I have the same error
Regards -
Received unexpected message type does not match expected type
1.Two Biztalk Applications A,B one for sending the request(A) and other application will send the response to A.
2.I have two schema Request and Response in Aplication A which i have exposed as webservice.
3. Application B share the same response schema .
I am using WSBasicHTTP sysnchronous ports to send and receive the message.
WHen Application B send the response , i get the error "unexpected message type does not match expected type "
but i dont know why i get such error when the schemas are share by both application. Please advice
Regards
SureshHi Suresh,
Whenever you are doing request-response like calling web service etc, i would suggest to use Passthrough pipeline while sending and use XML receive for receiving the message.
Because when you are sending the message out it doesn't needs any promoted properties so you can use Passthrough this will avoid extra Assembling/Validation etc tasks performed by XMLSend pipeline.
But when you are receiving response that time it expects MessageType property to be promoted because normally you will have receive shape configured to some Typed Schema. So you will have to use XML Receive pipeline.
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.
Maybe you are looking for
-
How can i move a single keynote cell to desktop?
Hello - Am using my keynote presentation as a basis for an imovie11 clip and want to modify a few cells in keynote. Have found it much easier to just drag the individual cells to desktop then import them into imovie11. However forgot how to drag them
-
Ras_admin tool does not discover my 6130
I have recently acquired several 6130 units. I am having problems discovering these units after I installed "SUNWstade". I connected the 6130 directly to the management host using crossover ethernet cables as defined in the documentation. Even though
-
Wireless adapter turned off, wont enable
Hi, I got this Lenovo x201 AC4 yesterday. I installed Ubuntu 11.04, used the wireless till today morning. But then suddenly the wireless icon with LED turned off and wont turn on again and I cannot access any network right now. Tried restarting, but
-
Infinite Scroll is not working since updating to ver. 35.0.1
Since the latest update to version 35.0.1, the infinite scroll (on Yahoo Answers in particular) has not been working. This appears to be an issue with Firefox, because it still works if I use the IE browser. Since some of my other preferred settings
-
Recommended new hard drive for MacBook Pro
Hi, my mate has a MacBook Pro 2.16 GHz. He wants to upgrade the hard drive to something bigger than the current 5400rpm 120GB. Can anyone recommend some of the best drives (or the best) to go with at this point in time? I think probably it's worth go