ClassLoader "argument type mismatch" problem

I've got a problem I was hoping someone would be able to help me out with, or at least explain why I'm getting the problem.
Here's the scenario:
*I've got an abstract class, BETI public abstract class BETI*I've got another class, TMPC, which extends BETI and implements others.
public class TMPC extends BETI implements .....*I've got a third class ABT, which has a method that looks like:
public void addListener(BETI _listener);*In a fourth class, I've been able to successfully load ABT, but I'm having problems invoking the addListener method.
Here's the segment:
Class customLoggerClass = classLoader.loadClass("blah.ABT");
Object customLogger = customLoggerClass.newInstance();
TMPC gui = new TMPC();
Object[] oneArgument = new Object[1];
Class beti = classLoader.loadClass("blah.BETI");
Class[] addBuildListenerParameters = {beti};
Method addBuildListenerMethod = customLoggerClass.getMethod("addBuildListener",addBuildListenerParameters);
oneArgument[0] = gui;
addBuildListenerMethod.invoke(customLogger,oneArgument); //here is where the argument type mismatch happensAny idea on why I'm getting this? Obviously I'm overlooking something simple, but....
Thanks in advance-

Presuming I did it right...
Using
c0 = default loader
c1 = your loader
>
Object customLogger =
customLoggerClass.newInstance();
TMPC gui = new TMPC();This loads c0.BETI and c0.TMPC
Object[] oneArgument = new Object[1];
Class beti = classLoader.loadClass("blah.BETI");I bet this loads c1.BETI
Class[] addBuildListenerParameters = {beti};
Method addBuildListenerMethod =
customLoggerClass.getMethod("addBuildListener",addBuild
istenerParameters);
oneArgument[0] = gui;
addBuildListenerMethod.invoke(customLogger,oneArgument)
//here is where the argument type mismatch happensSo here the signature is
addBuildListener(c1.BETI)
and you are calling it with
addBuildListener(c0.TPMC)
And that can only resolve to c0.BETI which doesn't match.

Similar Messages

  • RisPort problems - argument type mismatch

    Hi!
    I'm trying to get a list of devices via RisPort. I copied example from http://www.cisco.com/univercd/cc/td/doc/product/voice/vpdd/cdd/5_0/ccmdev/ccmdvch2.htm chapter Real-Time Information (RisPort)
    Selecting Cisco Unified CallManager Real-Time Information , but service returning following xml:
    <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.IllegalArgumentException: argument type mismatch</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">CUCM6</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
    And my question is: How can I recognize, which argument? There are no any notes or details :-(
    Many thanks for your ideas!!
    ps. or is it posible to get that list any other way? (CUM6)

    check your gmail~i sent my code to your email!
    here is the xml String:
    String strSoapMsg="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
    "http://schemas.xmlsoap.org/soap/envelope/\" "+
    "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "+
    "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\">"+
    ""+
    ""+
    ""+
    "http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xsi:type=\"ns1:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" "+
    "xmlns:ns1=\"tns:CmSelectionCriteria\">"+
    "2000"+
    ""+
    "Name"+
    ""+
    ""+
    ""+
    ""+

  • Flex 4.5 - java.lang.IllegalArgumentException: argument type mismatch

    0 down vote favorite
    I am having a problem when sending a soap request from a flex  4.5 application to a coldfusion 9 web service created using a CFC.
    The  most annoying thing it is only an intermittent problem but I can't work  out what is wrong.
    There a many methods within the web service of which Flex has no  issue, but these are mainly ones that read data.  The one I am having a  problem with is one that is writing back to the web service.
    The issue only arises when I have to restart the Coldfusion service  for some reason, which is quite often as the development machine is my  laptop.  It has now also happened when I have moved the Flex app to a  development server for testing and as it's hosted I can't restart the  services easily.
    I get the response below every time.  I have tried tracing the call  through the Flash Builder Network monitor and building a dummy call  using the same data, all to no avail.
    I have tried stripping out all of the code and then rebuilding it,  which takes a long time as I am using custom types in ColdFusion.
    Also , if I cfinvoke the method through a CFM page, it works fine. It  is only when trying to call it through a SOAP request through Flex 4.5.
    It will then suddenly start working again however and then it is fine  until I restart the CF services again.
    I can't tell what I triggers it  to start working again.
    Does something initialise it in ColdFusion and then it's fine ???.  I am  really struggling with this and any help would be appreciated.
    I have a  sample SOAP request that I trapped in the Network Monitor and also the  WSDL if needed.
    java.lang.IllegalArgumentException: argument type mismatch
        <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/"
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:142)
    at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:75)
    at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
    at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
    at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
    at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
    at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at coldfusion.xml.rpc.CFCProvider.invoke(CFCProvider.java:54)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at coldfusion.xml.rpc.CFCServlet.doAxisPost(CFCServlet.java:270)
    at coldfusion.filter.AxisFilter.invoke(AxisFilter.java:43)
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356)
    at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
    at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
    at coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:289)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)</ns1:stackTrace>
    <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/" xmlns:soapenv
    ="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org2001/XMLSchema-instance">Darren-LT</ns2:hostname>

    Someone suggested it could be a serialisation issue but I I'm not sure how to go about checking that.
    Any suggestions ?

  • Getting validation error "argument type mismatch"

    I have 2 dropdowns and submit button in jspx page. jspx page has corresponding backing bean with respective properties. When I select values in dropdowns and hit submit I am getting redirected to same page with validation error "argument type mismatch" beneath the dropdowns.

    Kate, I bet there is more to the error than you have given here. If I were a betting man I would say it has something to do with the difference between a jbo Number type and the java Number type. I have run into this particular problem twice before. Basically the oracle jbo Number type is not compatible or automatically caste-able into a java type Number. So, perhaps in your backing bean, you have some thing that is defined as a Number in one of jdeveloper's declaritive fields (jbo Number) and in a java program somewhere you have probably declared a variable as just plain-old Number which is a different class...coming from Java's built-in types classes.
    Hope that's your problem, and I hope this helps.
    Michael F.

  • ByRef Argument Type Mismatch" Error VB6

    I am new to VB6 and spread.My VB project is making using of spread .In forms wherever the spread initialization is done,VB 6 is throwing a compile error as "By Ref Argument Type Mismatch" Error" .Is it because of the spread issue? I am removing
    some functionality from a already existing vb project So is it because i might have commented out some functionality. Kindly.Kindly provide your valuable suggestion.Thanks in advance.I am running the application in windows 7

    Hi ponnudoll,
    This forum is actually for questions about Access development, your question is kind of off-topic.
    Where to post your VB 6 questions
    Anyway, I did some research about this error message, and found this KB article talking about how to avoid this error.
    How to Avoid the "ByRef Argument Type Mismatch" Error
    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.

  • UDT Type Mismatch Problem

    Hi;
    We have a project which has two modules which uses same UDTs. We have generated UDT's shown in example code. When our project calls B's SP which should return UDT from B.DbObjects namespace, the returned type is A.DbObjects namespace. This occurs because Oracle Data Access gets type name from OracleCustomTypeMappingAttribute and creates instance with that value. Since the namespaces are different, we cannot bind data to our return type. Is there a solution for this?
    Code:
    ///Module A - Output A.dll
    namespace A.DbObjects
    [OracleCustomTypeMapping("SCHEMA.UDTNAME")]
    public partial class UDTNAME : OracleCustomType
    [OracleObjectMappingAttribute("X")]
    public string X { get; set; }
    [OracleObjectMappingAttribute("Y")]
    public decimal Y { get; set; }
    [OracleObjectMappingAttribute("Z")]
    public decimal Z { get; set; }
    ///Module B - Output B.dll
    namespace B.DbObjects
    [OracleCustomTypeMapping("SCHEMA.UDTNAME")]
    public partial class UDTNAME : OracleCustomType
    [OracleObjectMappingAttribute("X")]
    public string X { get; set; }
    [OracleObjectMappingAttribute("Y")]
    public decimal Y { get; set; }
    [OracleObjectMappingAttribute("Z")]
    public decimal Z { get; set; }
    }

    CD Tom wrote:
    > [Microsoft][ODBC Microsoft Access Driver] Data type
    mismatch in criteria
    > expression.
    Hi, Your clue is in the error message.
    This a data type mismatch, it would seem you are trying to
    pass a data
    type to the database that is not consistent with the data
    type set in
    the database design for that column.
    Cheers jojo
    Adobe Community Expert for Dreamweaver 8
    http://www.webade.co.uk
    http://www.ukcsstraining.co.uk/
    Extending Knowledge, Daily.
    http://www.communityMX.com/
    Free 10 day trial
    http://www.communitymx.com/joincmx.cfm

  • Data type mismatch problem

    Hello:
    I have an sql query that works just fine when I run it
    directly in Access but when I run it on a web site, it gives me an
    error "Data type mismatch in criteria expression".
    I am working with transactions and this is an update of a
    table within a transaction.
    Here is the code:
    con.execute "UPDATE tblWells SET API_Number='" &
    Request.Form("API_Number") & "', Well_Name='" &
    Request.Form("Well_Name") & "', Drill='" &
    Request.Form("Drill") & "', Reenter='" &
    Request.Form("Reenter") & "', horizontal='" &
    Request.Form("horizontal")& "', Duration='" &
    Request.Form("Duration") & "', OilWell='" &
    Request.Form("OilWell") & "', GasWell='" &
    Request.Form("GasWell") & "', Other='" &
    Request.Form("Other") & "', SingleZone='" &
    Request.Form("SingleZone") & "', MultipleZone='" &
    Request.Form("MultipleZone")& "', NumAcresLease='" &
    Request.Form("NumAcresLease") & "', LeaseSerialNumber='" &
    Request.Form("LeaseSerialNumber") & "', LeaseName='" &
    Request.Form("LeaseName") & "', WellNumber='" &
    Request.Form("WellNumber") & "', state='" &
    Request.Form("state") & "', county='" &
    Request.Form("county") & "', wellheadElevation='" &
    Request.Form("wellheadElevation") & "', groundElevation='"
    & Request.Form("groundElevation") & "', ProposedDepth='"
    & Request.Form("ProposedDepth") & "',
    DistanceTownPostOffice='" &
    Request.Form("DistanceTownPostOffice") & "',
    DirectionTownPostOffice='" &
    Request.Form("DirectionTownPostOffice") & "',
    Distance_Nearest_Property_Line='" &
    Request.Form("Distance_Nearest_Property_Line") & "',
    DistanceNearestWell='" & Request.Form("DistanceNearestWell")
    & "', UnitSpacing='" & Request.Form("UnitSpacing") & "'
    WHERE WellID=1"
    I can't figure why the query would work fine in Access and
    not on the webpage.
    Thanks.

    A Checkbox does not exist as a form value if it empty which
    is why your SQL
    script is failing. What you need to do is create a variable
    and then assign
    it with the value. Assuming you are using ASP then taking one
    element on
    your SQL statement
    SingleZone='" & Request.Form("SingleZone")
    you would change it to
    SingleZone = strSingleZone
    Above the actual start of your SQL statement you would define
    your variables
    and set their empty values, and then assign them to the form
    values
    Dim strSingleZone = 0
    if Request.Form("SingleZone") <> "" then
    strSingleZone = Request.Form("SingleZone")
    End if
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "zavidp" <[email protected]> wrote in
    message
    news:eo9554$dd0$[email protected]..
    > Okay, I have worked further. I have isolated the fields
    that are causing
    > trouble and they are checkbox fields.
    >
    > I have been pulling my hair out all day trying to figure
    out how to set
    > access
    > and asp so that the on/off, true/false or whatever is
    passed correctly.
    >
    > Can anyone help?
    >
    > Dave
    >

  • Problem Uploading Mapping to FDM in 11.1.2.1, Receiving Type Mismatch Error

    Has the mapping format changed in system 11 changed from system 9?
    One of my users who is responsible for uploading maps is trying to upload his Excel mapping document (which he used in version 9) into FDM 11.1.2.1 and is receiving a Type mismatch error.
    Error Log
    ERROR
    Code: 13
    Description: Type mismatch Row=3 SrcDec=(000-General Cash) TargKey=(10000) ChangeSign=(False) WhereClauseType=(Error 2029)
    Procedure: clsUtility.mRecordsetFromExcel
    Component: upsWDataWindowDM
    Version: 1112
    Thread: 185652
    Any assistance would be appreciated.

    Well, as you can see I am having a bit of trouble with this user. I finally got him to send me the files he was attempting to load and not the test file. I received the error.
    Here is the only log entry for this error:
    ** Begin FDM Runtime Error Log Entry [2011-08-12 16:44:41] **
    ERROR:
    Code............................................. 13
    Description...................................... Type mismatch
    Row=3 SrcDesc=(000-General Cash) TargKey=(10000) ChangeSign=(False) WhereClauseType=(Error 2029)
    Procedure........................................ clsUtility.mRecordsetFromExcel
    Component........................................ upsWDataWindowDM
    Version.......................................... 1112
    Thread........................................... 13988
    IDENTIFICATION:
    User............................................. <withheld>
    Computer Name.................................... <withheld>
    App Name......................................... <withheld>
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... <withheld>
    Database Name.................................... <withheld>
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... <withheld>
    Location ID...................................... 873
    Location Seg..................................... 19
    Category......................................... WLActual
    Category ID...................................... 14
    Period........................................... Jul - 2011
    Period ID........................................ 7/31/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False

  • Problems with "import from catalog" & "collection type mismatch"

    I'm attempting to keep 2 catalogs on 2 different computers sunchronized.  I'm exporting photos
    and collections (actually a web gallery) from one computer to another, and
    I'm getting a "collection type mismatch" error, that prevents the photos from being a
    dded to the collection.  I've exported and imported the flash gallery template
    from one system to the other to make sure the templates were identical.  A
    ll the photos, keywords, and attributes seem to be imported properly, but the photos aren't added
    to the collection. Anyone having success exporting/importing collections between computers?
    I'm using LR 2.7 on Win 7 & Vista.
    Thanks,
    Mark

    Thanks Dorin.  I tested it with a "regular" collection, and it works.
    I hope they fix this in v. 3 too!

  • Unbounded wildcard type: type mismatch error

    I have a problem with Generics which to me seems to be caused by type erasure and necessary reification, but I can't find a solution.
    In order to keep the problem simple I've removed all unnecessary functions from the code and just made sure it still compiles - the only method that does not compile (and kept its whole code) is the method processContents() that causes my problem.
    I hope that the code is self-explanatory enough without comments.
    public interface Iterator<T> {
         public T next();
         public boolean hasNext();
    public interface FunctionInterface<T> {
         T apply(T argument);
    public class DataStructure<T> {
         private T content;
         public DataStructure(T content) {
              this.content = content;
         public T get() {
              return content;
         public Iterator<DataStructure<T>> contents() {
              return new Iterator<DataStructure<T>>() {
                   @Override
                   public boolean hasNext() {
                        return false;
                   @Override
                   public DataStructure<T> next() {
                        return null;
    }The problem is caused in the methode processContents() of the methode SubDataStructure, a sub-class of DataStructure.
    public class SubDataStructure<T extends FunctionInterface<? super T>> extends
              DataStructure<T> implements FunctionInterface<SubDataStructure<T>> {
         public SubDataStructure(T content) {
              super(content);
         public T processContents() {
              Iterator<DataStructure<T>> iter = contents();
              T value = get();
              while (iter.hasNext()) {
                   T otherValue = iter.next().get();
                   // following line causes ERROR: Type mismatch: cannot convert from
                   // capture#1-of ? super T to T ReducedDataStructure.java
                   value = value.apply(otherValue);
              return this.get();
         @Override
         public SubDataStructure<T> apply(SubDataStructure<T> argument) {
              // arbitrary action
              return argument;
    }As you see the commented line causes an error saying "Type mismatch: cannot convert from capture#1-of ? super T to T ReducedDataStructure.java" - from my understanding the type should be correct but got lost at compile-time, but would have to be restored at run-time. If so, a type-cast should solve the problem, but I'd prefer to find a clean solution without unchecked casts.
    I've tried to find an answer in various books and the linked FAQ, but haven't found it yet - I admit that after a few hours of trying I got a bit frustrated, so I hope that this is a more common problem to developers and that somebody might be able to help. Any suggestions how do solve this problem? I'd be grateful for your answers.
    Bob
    Edited by: RobertSingleton on Nov 23, 2009 2:17 PM
    Edited by: RobertSingleton on Nov 23, 2009 2:21 PM

    RobertSingleton wrote:
    jtahlborn wrote:
    you have defined T to have a lower bound of "FunctionInterface<? super T>", value is of the type T, therefore the return type of value.apply (which comes from FunctionInterface) is "? super T". a value of "? super T" returned from the "apply" method cannot be re-assigned to "value", which has type T.Thanks, but I understood it so far. The question to me is, whether it is possible to solve the problem as shown here.
    are you sure you don't want the class typedef to be "T extends FunctionInterface<? extends T>"?Yes, but would you have other suggestions? DataStructure manages Objects, SubDataStructure adds a few new methods, FunctionInterface is an Interface like Comparable. Maybe that's a bit too general to see whether the current solution is appropriate or not. But no matter how the a better solution would look like, I'd be very curious how to solve the problem in its current settings, since I'm positive I could apply the solution in the future to different problems with the same cause.the problem is that you have defined FunctionInterface in this case to return anything up to Object (? super T). "super" is good for saying "give me an object which can handle this type or any of its parent types". it's generally not so good for a return type, as you are essentially saying "i can return anything here". you want to repeatedly apply FunctionInterface, but your definition allows you to return something which may not implement FunctionInterface. so, you code cannot work with your current definitions. without having a better understanding of what you are trying to do, i can't really put forward any meaningful suggestions for fixing the code.

  • Type mismatch - apex_interactive_reports_4_0.js

    Hi,
    I have a page with an interactive report region, that is shown conditionally.
    Initially, the IR functions like Select columns, or filtering work fine.
    After a popup reoprt is invoked, the IR functions do not work any longer.
    The error in IE is:
    Message: Type mismatch.
    Line: 1
    Char: 23299
    Code: 0
    URI: http://10.60.4.220:7001/i/javascript/apex_interactive_reports_4_0.js
    The error in firebug is:
    uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.replaceChild]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://10.60.4.220:7001/i/javascript/apex_interactive_reports_4_0.js :: anonymous :: line 1" data: no]
    If I make the IR region unconditional, there is no problem.
    Any suggestions?
    Regards, Wouter Rijke
    Edited by: Wouter Rijke on 15-aug-2011 6:24

    I'm having the same problem here. Any ideas how to solve it?
    Apex version 4.1

  • Type Mismatch error while calling a Java Function from Visual Basic 6.0...

    Hi,
    I'm having a problem in calling the Java Applet's Function from Visual Basic. First, I'm getting the handle of the Java Applet and components of it using "Document.Applets(n)" which is a HTML function. I'm calling this function from Visual Basic. My code is something like this...
    ' // Web1 is IE Browser in my Form.
    Dim Ap,Comp
    Dim Bol as Boolean
    Bol = true
    Ap = Web1.Document.Applets(0).getWindow() ' \\ Gets the Parent Window.
    Ap.setTitle("My Java Applet") ' \\ Sets the Title of the window.
    msgbox Ap.getVisibility() ' \\ This will return a Java boolean ( true or false )
    Ap.setVisibility(Bol) ' \\ Function Syntax is : void setVisibility(boolean b)
    Here in my code , i'm able to call any function that which accepts Integer or String but not boolean. So, i m facing problem with Ap.setVisibility() function. It gives me a "Type mismatch error" while executing it. Can you please tell me a way to do this from Visual Basic !
    I'm using Visual Basic 6.0, Windows 2000 , J2SDK 1.4.2_05.
    Please help me Friends.
    Thanks and Regards,
    Srinivas Annam.

    Hi
    I am not sure about this solution. try this
    Declare a variable as variant and store the boolean value in that variable and then use in ur method.
    Post ur reply in this forum.
    bye for now
    sat

  • Type mismatch on SOAP Web Service method invocation

    When I run the generated client for a web service, I get the following error, which I can get rid of by using a primitive type (e.g. String) as the parameter to doSomething instead of wstest.test2.APIClass3, i.e. the SOAP server seems happy handling wstest.test2.APIClass1 as a return type, but not a similar class as a parameter type:
    [SOAPException: faultCode=SOAP-ENV:Server; msg=type mismatch [java.lang.IllegalArgumentException]]
         wstest.test2.APIClass1 wstest.test2.EmbeddedStatelessTest2Stub.doSomething(wstest.test2.APIClass3)
              EmbeddedStatelessTest2Stub.java:89
         void wstest.test2.EmbeddedStatelessTest2Stub.main(java.lang.String[])
              EmbeddedStatelessTest2Stub.java:48
    I am using JDeveloper9i 9.0.3 Preview and the standalone OC4J 9.0.3 that came with it. I followed the Oracle9i JDeveloper 9.0.3 Web Services Quickstart Install (http://otn.oracle.com/tech/webservices/htdocs/quickstart/quickstart903.html) to get OC4J running standalone. I had to register the stateless EJB provider, and the WEB services wizard didn't manage to include APIClass2 (an instance of which is contained in APIClass1) in the .dd so I added it manually which works fine with APIClass1 as the method return type.
    Sorry for the length of this posting, but I wasn't sure which bits would be relevant.
    WSDL
    ====
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services WSDL Generator-->
    <!--Date Created: Wed Sep 11 15:54:08 BST 2002-->
    <definitions
    name="StatelessTest2"
    targetNamespace="http://wstest/test2/StatelessTest2.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://wstest/test2/StatelessTest2.wsdl"
    xmlns:ns1="http://wstest.test2/IStatelessTest2.xsd">
    <types>
    <schema
    targetNamespace="http://wstest.test2/IStatelessTest2.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="wstest_test2_APIClass3" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="Name" type="string"/>
    <element name="Value" type="double"/>
    </all>
    </complexType>
    <complexType name="wstest_test2_APIClass1" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="Name" type="string"/>
    <element name="Value" type="double"/>
    <element name="APIClass2" type="ns1:wstest_test2_APIClass2"/>
    </all>
    </complexType>
    <complexType name="wstest_test2_APIClass2" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="IntegerValue" type="int"/>
    <element name="DoubleValue" type="double"/>
    <element name="Name" type="string"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="doSomething0Request">
    <part name="p0" type="ns1:wstest_test2_APIClass3"/>
    </message>
    <message name="doSomething0Response">
    <part name="return" type="ns1:wstest_test2_APIClass1"/>
    </message>
    <portType name="StatelessTest2PortType">
    <operation name="doSomething">
    <input name="doSomething0Request" message="tns:doSomething0Request"/>
    <output name="doSomething0Response" message="tns:doSomething0Response"/>
    </operation>
    </portType>
    <binding name="StatelessTest2Binding" type="tns:StatelessTest2PortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="doSomething">
    <soap:operation soapAction="" style="rpc"/>
    <input name="doSomething0Request">
    <soap:body use="encoded" namespace="wstest.test2.StatelessTest2" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="doSomething0Response">
    <soap:body use="encoded" namespace="wstest.test2.StatelessTest2" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="StatelessTest2">
    <port name="StatelessTest2Port" binding="tns:StatelessTest2Binding">
    <soap:address location="http://localhost:8888/soap/servlet/soaprouter"/>
    </port>
    </service>
    </definitions>
    Deployment Decriptor
    ====================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!--Generated by the Oracle9i JDeveloper Web Services Deployment Descriptor Generator-->
    <!--This Deployment Descriptor file is for use with the Oracle9iAS Release 2 / Apache 2.2 SOAP Server SOAP Server-->
    <!--Date Created: Wed Sep 11 15:54:09 BST 2002-->
    <isd:service
    id="wstest.test2.StatelessTest2"
    type="rpc"
    xmlns:isd="http://xmlns.oracle.com/soap/2001/04/deploy/service">
    <isd:provider
    id="stateless-ejb-provider"
    methods="doSomething"
    scope="Request">
    <isd:option key="JNDILocation" value="StatelessTest2"/>
    <isd:option key="DeploymentName" value="StatelessTest2"/>
    </isd:provider>
    <isd:faultListener
    class="org.apache.soap.server.DOMFaultListener"/>
    <isd:mappings>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass1"
    javaType="wstest.test2.APIClass1"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass2"
    javaType="wstest.test2.APIClass2"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    <isd:map
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:x="http://wstest.test2/IStatelessTest2.xsd"
    qname="x:wstest_test2_APIClass3"
    javaType="wstest.test2.APIClass3"
    java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
    xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
    </isd:mappings>
    </isd:service>
    StatelesTest2.java
    ==================
    package wstest.test2;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface StatelessTest2 extends EJBObject {
    * @webmethod
    APIClass1 doSomething(APIClass3 p0) throws RemoteException;
    StatelessTest2Bean.java
    =======================
    package wstest.test2.impl;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import wstest.test2.APIClass1;
    import wstest.test2.APIClass2;
    import wstest.test2.APIClass3;
    public class StatelessTest2Bean implements SessionBean {
    public void ejbCreate() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    public void setSessionContext(SessionContext ctx) {
    public APIClass1 doSomething(APIClass3 p0) {
    APIClass1 ac1 = new APIClass1();
    ac1.setName(p0.getName() + "1");
    ac1.setValue(p0.getValue());
    APIClass2 ac2 = ac1.getAPIClass2();
    ac2.setName(p0.getName() + "2");
    ac2.setIntegerValue(new Integer(ac1.getValue().intValue()));
    ac2.setDoubleValue(new Double(ac1.getValue().doubleValue() * 2.0));
    return ac1;
    EmbeddedStatelessTest2Stub.java
    ===============================
    I change the http port from 8988 to 8888 to get this working. Also, the generated referenced a new class APIClass31, also generated, but as it didn't make any difference to the problem I replaced it with APIClass3, which has essentially the same characteristics.
    package wstest.test2;
    import oracle.soap.transport.http.OracleSOAPHTTPConnection;
    import org.apache.soap.encoding.soapenc.BeanSerializer;
    import org.apache.soap.encoding.SOAPMappingRegistry;
    import org.apache.soap.util.xml.QName;
    import java.net.URL;
    import org.apache.soap.Constants;
    import org.apache.soap.Fault;
    import org.apache.soap.SOAPException;
    import org.apache.soap.rpc.Call;
    import org.apache.soap.rpc.Parameter;
    import org.apache.soap.rpc.Response;
    import wstest.test2.*;
    import java.util.Vector;
    import java.util.Properties;
    import wstest.test2.APIClass1;
    import wstest.test2.APIClass2;
    import wstest.test2.APIClass3;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Wed Sep 11 15:41:19 BST 2002
    * WSDL URL: file:/C:/Projects/WSTest/Test2/src/wstest/test2/StatelessTest2.wsdl
    public class EmbeddedStatelessTest2Stub
    public EmbeddedStatelessTest2Stub()
    m_httpConnection = new OracleSOAPHTTPConnection();
    m_smr = new SOAPMappingRegistry();
    BeanSerializer beanSer = new BeanSerializer();
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass1"), wstest.test2.APIClass1.class, beanSer, beanSer);
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass2"), wstest.test2.APIClass2.class, beanSer, beanSer);
    m_smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("http://wstest.test2/IStatelessTest2.xsd", "wstest_test2_APIClass3"), wstest.test2.APIClass3.class, beanSer, beanSer);
    public static void main(String[] args)
    try
    EmbeddedStatelessTest2Stub stub = new EmbeddedStatelessTest2Stub();
    // Add your own code here.
    APIClass3 ac3 = new APIClass3();
    ac3.setName("fred");
    ac3.setValue(new Double(17.36));
    printAPIClass3("Input", ac3);
    APIClass1 retAc1 = stub.doSomething(ac3);
    printAPIClass1("Return", retAc1);
    catch(Exception ex)
    ex.printStackTrace();
    public String endpoint = "http://172.25.1.176:8888/soap/servlet/soaprouter";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;
    public APIClass1 doSomething(APIClass3 p0) throws Exception
    APIClass1 returnVal = null;
    URL endpointURL = new URL(endpoint);
    Call call = new Call();
    call.setSOAPTransport(m_httpConnection);
    call.setTargetObjectURI("wstest.test2.StatelessTest2");
    call.setMethodName("doSomething");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector params = new Vector();
    params.addElement(new Parameter("p0", wstest.test2.APIClass3.class, p0, null));
    call.setParams(params);
    call.setSOAPMappingRegistry(m_smr);
    Response response = call.invoke(endpointURL, "");
    if (!response.generatedFault())
    Parameter result = response.getReturnValue();
    returnVal = (APIClass1)result.getValue();
    else
    Fault fault = response.getFault();
    throw new SOAPException(fault.getFaultCode(), fault.getFaultString());
    return returnVal;
    private static void printAPIClass3(String prefix, APIClass3 ac3)
    System.out.println(prefix + ": [" + ac3.getName() + ", " + ac3.getValue() + "]");
    private static void printAPIClass1(String prefix, APIClass1 ac1)
    APIClass2 ac2 = ac1.getAPIClass2();
    System.out.println(prefix + ": [" + ac1.getName() + ", " + ac1.getValue() + " ["
    + ac2.getName() + ", " + ac2.getIntegerValue() + ", " + ac2.getDoubleValue()
    + "]]");
    public void setMaintainSession(boolean maintainSession)
    m_httpConnection.setMaintainSession(maintainSession);
    public boolean getMaintainSession()
    return m_httpConnection.getMaintainSession();
    public void setTransportProperties(Properties props)
    m_httpConnection.setProperties(props);
    public Properties getTransportProperties()
    return m_httpConnection.getProperties();
    APIClass1.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass1 implements Serializable {
    private String name;
    private Double value;
    private APIClass2 apiClass2;
    public APIClass1() {
    name = new String("");
    value = new Double(0.0);
    apiClass2 = new APIClass2();
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    public Double getValue() {
    return value;
    public void setValue(Double newValue) {
    value = new Double(newValue.doubleValue());
    public APIClass2 getAPIClass2() {
    return apiClass2;
    public void setAPIClass2(APIClass2 newAPIClass2) {
    apiClass2 = new APIClass2();
    apiClass2.setName(newAPIClass2.getName());
    apiClass2.setDoubleValue(newAPIClass2.getDoubleValue());
    apiClass2.setIntegerValue(newAPIClass2.getIntegerValue());
    APIClass2.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass2 implements Serializable {
    private String name;
    private Integer iVal;
    private Double dVal;
    public APIClass2() {
    iVal = new Integer(0);
    dVal = new Double(0.0);
    name = new String("");
    public Integer getIntegerValue() {
    return iVal;
    public void setIntegerValue(Integer newIVal) {
    iVal = new Integer(newIVal.intValue());
    public Double getDoubleValue() {
    return dVal;
    public void setDoubleValue(Double newDoubleValue) {
    dVal = new Double(newDoubleValue.doubleValue());
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    APIClass3.java
    ==============
    package wstest.test2;
    import java.io.Serializable;
    public class APIClass3 implements Serializable {
    private String name;
    private Double value;
    public APIClass3() {
    public String getName() {
    return name;
    public void setName(String newName) {
    name = new String(newName);
    public Double getValue() {
    return value;
    public void setValue(Double newValue) {
    value = new Double(newValue.doubleValue());
    APIClass31.java
    ===============
    package wstest.test2;
    * Generated by the Oracle9i JDeveloper Web Services Stub/Skeleton Generator.
    * Date Created: Wed Sep 11 10:44:56 BST 2002
    * <pre>
    * &lt;complexType name="wstest_test2_APIClass3" jdev:packageName="wstest.test2" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    * &lt;all>
    * &lt;element name="Name" type="string"/>
    * &lt;element name="Value" type="double"/>
    * &lt;/all>
    * &lt;/complexType>
    * </pre>
    public class APIClass31 {
    private String m_Name;
    private Double m_Value;
    public APIClass31() {
    public APIClass31(String Name, Double Value) {
    m_Name = Name;
    m_Value = Value;
    public void setName(String Name) {
    m_Name = Name;
    public String getName() {
    return m_Name;
    public void setValue(Double Value) {
    m_Value = Value;
    public Double getValue() {
    return m_Value;

    I believe this is a bug in JDev/OC4J 9.0.3 that is being further investigated right now. I have duplicated your problem in a simpler test case and folks are looking into it.
    Mike.

  • Type Mismatch using Implicit Cursor

    The actual error I get is
    PLS-00386: type mismatch found at 'EMP_REC' between FETCH cursor and INTO variables
    I have copied the code in below (taken some logic out to make example easier). I think the problem is with the EMP_REC CHILDKNOWDES declaration - I dont think I need to add %ROWTYPE? Is the type mismatch a case of trying to parse an int into a string (which i have checked for), or a case of the object being stored with attributes in dif order (alphabetical?), or is something more sinister going on?
    CREATE OR REPLACE TYPE &HKDB_Schema_Name..CHILDKNOWDES AS OBJECT
    KnowdeID INT,
    Description varchar2(512),
    Connector CHAR(1),
    WhyCount INT
    CREATE OR REPLACE TYPE &HKDB_Schema_Name..TEMP_CHILDKNOWDES_TABLE AS TABLE OF &HKDB_Schema_Name..CHILDKNOWDES;
    CREATE OR REPLACE PROCEDURE &HKDB_Schema_Name..QueryChildKnowdes
    aKnowdeID int,
    aCur out sys_refcursor
    AS
    l_ChildKnowdeTable TEMP_CHILDKNOWDES_TABLE := TEMP_CHILDKNOWDES_TABLE();
    EMP_REC CHILDKNOWDES;
    BEGIN
         DECLARE CURSOR c1 is SELECT k.KnowdeID, k.Description, KnowdeAssociation.Connector
            FROM Knowde k
            INNER JOIN KnowdeAssociation ka on ka.KnowdeID = k.KnowdeID
    BEGIN
         OPEN c1;
         FETCH c1 INTO EMP_REC;    --error
         WHILE c1%FOUND
         LOOP
         BEGIN
              QueryWhyCount(EMP_REC.KnowdeID, aWhyCountResult);
                 l_ChildKnowdeTable.extend;
              l_ChildKnowdeTable(l_ChildKnowdeTable.last) := CHILDKNOWDES
              (EMP_REC.KnowdeID,
              EMP_REC.Description,
              EMP_REC.Connector,
              aWhyCountResult);
              FETCH c1 INTO EMP_REC;    --error
         END;
         END LOOP;
         END;
    END QueryChildKnowdes;Thanks in advance,
    Toby

    Knowde
    Name                                      Null?    Type
    KNOWDEID                                  NOT NULL NUMBER(10)
    VERBID                                    NOT NULL NUMBER(10)
    NOUNID                                    NOT NULL NUMBER(10)
    KGID                                      NOT NULL NUMBER(10)
    DATECREATED                               NOT NULL DATE
    DESCRIPTION                                        VARCHAR2(51
    UDRID                                              NUMBER(10)
    UVRID                                              NUMBER(10)
    RESOURCEID                                         NUMBER(10)
    VERSIONID                                          NUMBER(10)
    CHECKEDOUT                                         NUMBER(1)
    CLIENTKNOWDEID                                     NUMBER(10)
    GENERICKNOWDEID                                    NUMBER(10)
    SOURCEKNOWDEID                                     NUMBER(10)
    UNEDITABLE                                         NUMBER(1)
    DATEUPDATED                               NOT NULL DATE
    PREVIOUSKNOWDEID                                   NUMBER(10)KnowdeAssociation
    Name                                      Null?    Type
    KNOWDEASSOCIATIONID                       NOT NULL NUMBER(10)
    HOWID                                     NOT NULL NUMBER(10)
    WHYID                                     NOT NULL NUMBER(10)
    CONNECTOR                                          CHAR(1)
    HOWCHAINPOSITION                                   NUMBER(10)
    WHYCHAINPOSITION                                   NUMBER(10)

  • How to solve the "type mismatch" error in jCOM early binding program?

    I got a "type mismatch" error jCOM early binding program.
    I use the VB as the jCOM client to access the EJB deployed on WLS7. While using the
    object parameter like "java.lang.Integer" in EJB method call, I got that error message
    and my VB client had to be stopped?
    The same situation, the VB program work perfect when using the "int" as the parameter.
    And I try to instance the "myTLB.JavaLangInteger" in my VB program, but how ? The
    "New", "CreateObject" and "GetObject" all failure, I don't know what to do next ???

    Hi,
    This problem Could happen when you referesh quality or test system.
    Your delta setup for the related master and transaction data needs to be reinit.
    What happens is when you init. the delta and subsequent delta is all maintained in your source system
    please check Notes 852443,424848,834229
    Hope this helps
    Thanks
    Teja
    Message was edited by:
            Teja badugu

Maybe you are looking for

  • How do I find/replace italics in a PDF?

    I would like to change all the italics in a PDF to a different font so they will be recognized when I convert the PDF to an InDesign file. Right now they're fake italics of an embedded font so when I convert the file they disappear and turn into regu

  • Map viewer definitions commands

    hello I am using map definitions tool to define my legends, but i have a dynamic application which needs a numerous number of legend, so i need a command to define my legend instead of creating in a GUI interface of this tool. thanks in advance

  • Serial No in FR

    Hi, We are developing planning reports through Financial Reporting. In one of our reports we have a requirement to have sequencial serial no. of the rows(having project codes) will come. How can it be implemented in FR so that the serial no will be g

  • Why is it when I am sending an email the name of an old contact is still there?

    Whenever I write and an email using my ipod or try to forward an email, the name of an old deleted contact appears...why is that happening?

  • Installed yosemite and my macbook is running slow

    My macbook pro is running really slow i have yosemite installed but I've had it for about a week and my computer just started running slow. It takes about 30-60 seconds to load anything or copy anything. I also ran etrecheck and these were the result