Kernel26 2.6.12.2-1 "mtrr: type mismatch"
Anyone know why I'm getting the following "mtrr: type mismatch" comments at system boot after upgrading to the newly released kernel?
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,8000000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,4000000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,2000000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,1000000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,800000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,400000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,200000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,100000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,80000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,40000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,20000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,10000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,8000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,4000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,2000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: type mismatch for e0000000,1000 old: write-back new: write-combining
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x800 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x400 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x200 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x100 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x80 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x40 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x20 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x10 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x8 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x4 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x2 base: 0xe0000000
Jul 8 20:34:53 compuser mtrr: size and base must be multiples of 4 kiB
Jul 8 20:34:53 compuser mtrr: size: 0x1 base: 0xe0000000
I never had this with any of the previous kernels.
Thanks in advance for any help!
Edit: Okay, I've gone ahead and opened a bug report on this because I haven't changed anything on the system other than upgrading to the new kernel.
Update in case anyone else is experiencing this...
I've still been getting these errors on all the updated stock kernels ever since 2.6.12 was released. It appears to be a kernel bug, and hopefully will be patched soon.
In the interim, the only two ways I've found to stop these errors are to add video=vesafb:nomtrr to the kernel line in my menu.lst file, or add video=vesafb:mtrr:2 to the same line.
Similar Messages
-
Mtrr: type mismatch for d8000000 / Grub boot command line
Hi,
Dmesg is showing:
mtrr: type mismatch for d8000000,2000000 old: uncachable new: write-combining
(DL380 G5 - generic KVM/LCD Monitor)
I googled for the problem found
Disable MTRR for vesafb. iirc, there's a boot command line option to do it.video=vesafb:nomtrr
Does anyone know this problem, how to fix it, how to put this into Grub to avoid the error on next boot?
Best regardsIs that for the video card you are using? In that case you can just edit "/etc/grub.conf" and add that clause to the line beginning with "kernel" and reboot.
-
Type Mismatch error while saving a BPC Report using eTools
Hi,
Iam getting a 'type mismatch' error when trying to save a BPC Excel workbook using eTools>Save Dynamic Template >Company>eExcel. I am saving it as an .xlsx file.
Can anyone please help out and let me know why I am getting this error.
Thanks
ArvindHi,
You need to save the file as .xls extension. -
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>
* <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>
* </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. -
Hello,
How can I improve the XQuery below in order to obtain a minimised return to escape from both errors ORA-19279 and ORA-01706?
XQUERY for $book in fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy where $cont [ora:contains(text(), "(near((The,power,Love),10, TRUE))") > 0] return $book
ERROR:
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence
- got multi-item sequence
XQUERY for $book in fn:collection("oradb:/HR/TB_XML")//article let $cont := $book/bdy where $cont [ora:contains(., "(near((The,power,Love),10, TRUE))") > 0] return $book//bdy
/*ERROR:
ORA-01706: user function result value was too large
Regards,
Daianebelow query works for 1 iteration . but for multiple sets i am getting following error .
When you want to present repeating groups in relational format, you have to extract the sequence of items in the main XQuery expression.
Each item is then passed to the COLUMNS clause to be further shredded into columns.
This should work as expected :
select x.*
from abc t
, xmltable(
xmlnamespaces(
default 'urn:swift:xsd:fin.970.2011'
, 'urn:swift:xsd:mtmsg.2011' as "ns0"
, '/ns0:FinMessage/ns0:Block4/Document/MT970/F61a/F61'
passing t.col1
columns F61ValueDate Varchar(40) Path 'ValueDate'
, DebitCreditMark Varchar(40) Path 'DebitCreditMark'
, Amount Varchar(40) Path 'Amount'
, TransactionType Varchar(40) Path 'TransactionType'
, IdentificationCode Varchar(40) Path 'IdentificationCode'
, ReferenceForTheAccountOwner Varchar(40) Path 'ReferenceForTheAccountOwner'
, SupplementaryDetails Varchar(40) Path 'SupplementaryDetails'
) x ; -
Hi,
I am facing issues like Type Mismatch while passing Array of interfaces from .NET to VBA and vice versa using VSTO technology.
My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
My Interface definition is somewhat like this
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
public interface IInterface1
[DispId(0)]
IInterface2[] GetObj();
[DispId(1)]
void SetObj(ref IInterface2[] obj);
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
public interface IInterface2
IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
Kindly provide some assistance regarding the same.
ThanksHi,
I am facing issues like Type Mismatch while passing Array of interfaces from .NET to VBA and vice versa using VSTO technology.
My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
My Interface definition is somewhat like this
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
public interface IInterface1
[DispId(0)]
IInterface2[] GetObj();
[DispId(1)]
void SetObj(ref IInterface2[] obj);
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
public interface IInterface2
IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
Kindly provide some assistance regarding the same.
Thanks -
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,
TobyKnowde
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 -
RowSet Column Type Mismatch Error
Hi,
I am using SOA 11g,
JDeveloper 11.1.1.3.0
BPEL, SOA 11g, DB2 Stored procedure,
In a BPEL service I am getting this error while invoking a DB2 Stored procedure with Strong XSD.
while running I am getting this error message. This error message while invoking DB2 stored procedure, both XSD are identical. Input to service & input to DB adapter.
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'dba' failed due to: RowSet Column Type Mismatch Error. The SQL type in the XSD (CHARACTER) does not match the SQL type in the RowSet (VARCHAR) for column LONGITEM of parameter RowSet. This procedure returns a RowSet which could in theory return any arbitrary result. However you chose at design time to generate a single strongly typed XSD describing this result set in all cases, based on a test execution of the stored procedure. This makes later XML transforms easier. You may have also edited the XSD directly. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
-CDHi CD,
maybe if your strong XSD contains db:type="CHAR", you could try to change it to "VARCHAR" instead.
HTH,
Steve -
"Error 13 writing data in step 6: type mismatch" - Error during package run
Hi experts,
I am using SAP BPC 7.0 M and facing an issue while importing a package. I am encountering the error : "Error 13 writing data in step 6: type mismatch". The package is running successfully for some files but is failing for similar other files. The data is uploading successfully on server but still it is giving an error while conversion.
Thanks,
Regards,
Kamya NagpalHi All,
In continuation to the above message:
Even when the package is failing, the data is getting uploaded in the server.
Thanks,
Regards,
Kamya Nagpal
Infosys Technologies Limited -
Hi,
Iam getting a 'type mismatch' error when trying to save a BPC Excel Ecel workbook using eTools>Save Dynamic Template >Company>eExcel. I am saving it as an .xlsx file.
Can anyone please help out and let me know why I am getting this error.
Thanks
ArvindHi Arvind,
You need to save the template as .xls file. This will work properly. -
"Type mismatch" error in IE7/8 when using custom Actions Menu Image
Hi all,
in APEX 4.2: when using a custom image in the "Actions Menu Image" attribute in an interactive report, I get a "Type mismatch" error in IE7/8 when refreshing the report through PPR (filtering, sorting, paginating etc.). When I leave the "Actions Menu Image" field empty, everything works fine. The error doesn't seem to happen in IE9 (unless using compatibility mode), or in any non-IE browser.
I've been able to reproduce the issue in an application on apex.oracle.com:
http://apex.oracle.com/pls/apex/f?p=69347:1
Some debugging seems to indicate that the following line in widget.interactiveReport.js is the culprit:
lTemp.parentNode.replaceChild($x('apexir_WORKSHEET'), lTemp);Does anybody know if this is a known issue, or if there is some workaround?
Thanks,
TobiasHi,
Great solution Paul! It cost me a while before I found out the Action Menu Image was causing my interactive reports to stop refreshing in IE10 and not other browsers. Your solution works great, I've implemented it with a few minor adjustments:
- Put the css in report template (for some reason it didn't work in our own application stylesheet)
- replace 'url("/c/action_dropdown.gif")' with 'url("&APP_IMAGE_PREFIX./<path_to_image>")'
- place one dynamic action on page 0: after refresh of '#apexir_DATA_PANEL' , set event scope to "Dynamic".
- Let the Dynamic action also fire on page load.
- To make sure the dynamic action only works for pages with an interactive report add condition of type 'Exists' with expression:
select 1
from dual
where :APP_PAGE_ID in (select page_id
from apex_application_page_ir
where application_id = :APP_ID
Best regards,
Vincent Deelen -
Type mismatch error on my web page
I have a web page which calling the Javascript function like below:
function initoptymenu(row, col) {
var a = document.applets.Tree;
var m = a.menu();
if (m == null) return;
m.removeAll();
if (row.substr(0,1) == 'Q') {
m.Add("View Quote");
m.Add("Mark active");
else {
m.Add("Remove Opportunity");
m.Add("View/Edit Opportunity");
But, when the event happen to call this function on my web page, I got an type mismatch error. and the java console shows the Error as :
netscape.javascript.JSException: Failure to evaluate initoptymenu('Q1831',0)
Could anyone know what I need to do the make it work?
Thanks so much.
shuningIt is kinda hard to tell without seeing the rest of the script....
But your script function is expecting a string and a number as arguments, but sure that the caller (which you didn't post) is supplying the correct type of arguments.
V.V. -
Type mismatch when calling gui_download
Hello experts
i written a test gui upload and downlaod program . program gives run time error saying type mismatch in function call gui_download .
REPORT ZCR_UPLOAD_DOWNLOAD .
TABLES: SSCRFIELDS.
TYPES: BEGIN OF TY_STUDENT,
ID TYPE ZSTUDENTDATA1-ID,
NAME TYPE ZSTUDENTDATA1-NAME,
COURSE TYPE ZSTUDENTDATA1-COURSE,
DOJ TYPE ZSTUDENTDATA1-DOJ,
ADDRESS TYPE ZSTUDENTDATA1-ADDRESS,
END OF TY_STUDENT.
DATA : IT_STUDENT TYPE TABLE OF TY_STUDENT,
WA_STUDENT TYPE TY_STUDENT.
DATA : FILE_NAME TYPE IBIPPARMS-PATH.
selection-screen BEGIN OF BLOCK BK1 WITH FRAME TITLE TXT-001.
PARAMETERS : P_FILE(30) TYPE C.
PARAMETERS: UPLOAD RADIOBUTTON GROUP rad DEFAULT 'X',
DOWNLOAD RADIOBUTTON GROUP rad.
SELECTION-SCREEN END OF BLOCK BK1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
FILE_NAME = P_FILE.
CALL FUNCTION 'F4_FILENAME'
* EXPORTING
* PROGRAM_NAME = SYST-CPROG
* DYNPRO_NUMBER = SYST-DYNNR
* FIELD_NAME = ' '
IMPORTING
FILE_NAME = FILE_NAME.
START-OF-SELECTION.
IF UPLOAD = 'X'.
PERFORM GUI_UPLOAD.
ELSE.
PERFORM DATA_RETRIEVE.
PERFORM GUI_DOWNLOAD.
ENDIF.
FORM GUI_UPLOAD .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE_NAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '#'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = IT_STUDENT
* EXCEPTIONS
* FILE_OPEN_ERROR = 1
* FILE_READ_ERROR = 2
* NO_BATCH = 3
* GUI_REFUSE_FILETRANSFER = 4
* INVALID_TYPE = 5
* NO_AUTHORITY = 6
* UNKNOWN_ERROR = 7
* BAD_DATA_FORMAT = 8
* HEADER_NOT_ALLOWED = 9
* SEPARATOR_NOT_ALLOWED = 10
* HEADER_TOO_LONG = 11
* UNKNOWN_DP_ERROR = 12
* ACCESS_DENIED = 13
* DP_OUT_OF_MEMORY = 14
* DISK_FULL = 15
* DP_TIMEOUT = 16
* OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
UPDATE ZSTUDENTDATA1 FROM TABLE IT_STUDENT.
ENDFORM. " GUI_UPLOAD
FORM DATA_RETRIEVE .
SELECT ID
NAME
COURSE
DOJ
ADDRESS
INTO TABLE IT_STUDENT FROM ZSTUDENTDATA1.
ENDFORM. " DATA_RETRIEVEHello sir
Thanks for quick response.
At first i declared same data type as filename field of FM f4_filename so i declare
DATA : FILE_NAME TYPE IBIPPARMS-PATH.
at selection screen the data type is
PARAMETERS : P_FILE(30) TYPE C.
then i assigned to FILE_NAME
NOW i am assignig field FILENAME of gui_download to it but the data type of filename is string . should i covert the type of
FILE_NAME TO STRING BEFORE ASSIGNING THE VALUE PLEASE SUGGEST.
THANKS IN ADVANCE
CHITTA RANJAN MAHATO
Maybe you are looking for
-
Photoshop CS4 Crashes on File-Open
After using Photoshop CS4 for 9 months, I now get an instant crash whenever I open an image with File-Open. I see the image I wanted to open for a few seconds at the back of the error message (1st screenshot, below) and then it disappears - on clicki
-
How and where do I send my ipod to get it fixed?
How do you send it? DO you have to call an apple store or make an appointment? Help
-
Missing sound when showing videos from iPad to Apple TV.
When showing YouTube videos from my ipad on apple tv, there is no sound from tv or iPad. What do I do?
-
After creating a MovieClips symbol in flash CS3 and converting it to flex component, I succeeded in exporting it to SWC and included it in the flex mxml file. However, when I run the applications, the MovieClips failed to display. Did anyone have sim
-
Elements 11 Can't Find My Catalogues
Having successfully restored 2 catalogues from PS Elements 6 backups on an EHD, I was quite happy working in the last restored catalogue, but on trying to revert to the earlier transferred catalogue, (that I had fully viewed and verified in PS 11 aft