JTextField does not visualize the text!

Hello everybody,
i have a problem with JtextFields.
I have a Jtable with a ColumnHeader that contains a Button, a combobox and a JTextField.
Normally i have 3 columns. When i try to move from a textfield to another textfield i can write in this one but the text is not visualized and i do not se the cursor in it.
If i click a second time in the textfield, then the text gets visible.
Here after the code of my UIText which extends JTextField.
package com.wuerth.phoenix.ui;
import com.wuerth.phoenix.ui.lov.*;
import java.io.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.text.*;
import com.wuerth.phoenix.ui.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.util.Locale;
import java.text.*;
import com.wuerth.phoenix.util.PString;
* This object is a generic ui field. Use them to get alphanumeric
* text.
* @author ing. Davide Montesin '99<BR><i>[email protected]</i>
public class UIText extends JTextField implements TextEditor, PhoenixUIElement, FocusListener, KeyListener, ActionListener
private DefaultPhoenixUIElement dui;
// This object (is) was used by updateCorrect to find the correct background color
// It is used for UIComboBox too.
// protected final JTextField _jtextfield = new JTextField();
// Background Color (mtm 010327 - UI Bug)
private Dimension _preferredSize = null;
private boolean _onlyUpperCase = false;
String _oldText;
* Construct a new UIText with the default length(15).
public UIText()
this(15);
* Construct a new UIText with the specified length.
public UIText(int length)
super(length);
setOnlyUpperCase(UIConfiguration.get().isUITextOnlyUpperCase());
this._oldText = "";
this.dui = new DefaultPhoenixUIElement(this);
this.addFocusListener(this);
this.addKeyListener(this);
this.addActionListener(this);
* Set to true if the object should return only uppercase String. This method
* have priority over the UIConfiguration.
* @param c if true the getAsText method will return a uppercase string.
* @see com.wuerth.phoenix.UIConfiguration#setUITextOnlyUpperCase
public void setOnlyUpperCase(boolean c)
_onlyUpperCase = c;
* Tell the object that this field is required. The field use warning color and error color
* to tell to the user this requireness.
public void setRequired(boolean r)
this.dui.setRequired(r);
this.updateCorrect();
* @see setRequired
public boolean getRequired()
return this.dui.getRequired();
* Set the mode for the element. Valid modes are: PhoenixUIElement.INSERT,
* PhoenixUIElement.LOOKUP AND PhoenixUIElement.FIND. The mode influence the
* validation process.
public void setMode(int m)
this.dui.setMode(m);
this.updateCorrect();
* @see setMode
public int getMode()
return this.dui.getMode();
* Use this method to tell this object if it contain semantically correct value. The element
* itself can't control if semantic is correct. It is responsability of the parent to check
* semantic of the UIElements value. This method is a way to display that a ArticleNumber is
* not correct.
public void setSemanticCorrect(boolean c)
this.dui.setSemanticCorrect(c);
this.updateCorrect();
* @see setSemanticCorrect
public boolean getSemanticCorrect()
return this.dui.getSemanticCorrect();
* This method check if at the moment the uielement is corect at all: syntatically,
* per range, semantically and requireness.
* The window can use this method to check if the form can be saved or not.
public boolean isCorrect()
return this.dui.isCorrect();
* This method tell the object to syncronize layout
* information with the correctness informazion. For example, if
* the uielement contain a wrong value then after calling this
* method you are shoure that the background is red(error).
* <BR>
* The uiobject itself should call this object at most in this two case:
* If the lostFocus event fires<BR>
* If the content of the field is erased.
// WARNING_COLOR and ERROR_COLOR have priority over
// EDITABLE_COLOR and NOTEDITABLE_COLOR. (mtm 010327 - UI Bug)
public void updateCorrect()
// fire the propertyChange event if necessary before update
// layout aspect.
fireUpdate();
if (isCorrect())
// (mtm 010327 - UI Bug) Original version.
// _jtextfield.setEditable(this.isEditable());
// this.setBackground(_jtextfield.getBackground());
// this.repaint();
// Select between EDITABLE and NOTEDITABLE Colors
setBackground(isEditable() ? EDITABLE_COLOR : NOTEDITABLE_COLOR);
repaint();
else
if (getText().length() == 0)
// Null object
setBackground(WARNING_COLOR);
else
// Not null object
setBackground(ERROR_COLOR);
repaint();
_setTooltipIfNeeded();
} // updateCorrect() priority: WARNING_COLOR, ERROR_COLOR */
* This method tell the object to syncronize layout
* information with the correctness informazion. For example, if
* the uielement contain a wrong value then after calling this
* method you are shoure that the background is red(error).
* <BR>
* The uiobject itself should call this object at most in this two case:
* If the lostFocus event fires<BR>
* If the content of the field is erased.
// In this version EDITABLE_COLOR and NOTEDITABLE_COLOR have priority over
// WARNING_COLOR and ERROR_COLOR.
public void updateCorrect()
// fire the propertyChange event if necessary before update
// layout aspect.
fireUpdate();
if (isEditable())
if (isCorrect())
setBackground(EDITABLE_COLOR);
else
setBackground(getText().length() == 0 ? WARNING_COLOR : ERROR_COLOR);
else
setBackground(NOTEDITABLE_COLOR);
repaint();
_setTooltipIfNeeded();
} // updateCorrect() priority: EDITABLE_COLOR, NOTEDITABLE_COLOR/*
* Overriden setEditable to set editable or not editable Background colors
* (mtm 010327 - UI Bug)
public void setEditable(boolean ed)
super.setEditable(ed);
// EDITABLE_COLOR and NOTEDITABLE_COLOR have priority over
// WARNING_COLOR and ERROR_COLOR
//setBackground(ed ? EDITABLE_COLOR : NOTEDITABLE_COLOR);
//repaint();
* Method from FocusListener interface.
public void focusGained(FocusEvent e)
System.out.println("show caret");
setEditable(true);
Caret caret = getCaret();
System.out.println(caret);
caret.setVisible(true);
//moveCaretPosition(getText().length());
enableInputMethods(true);
* Method from FocusListener interface.
public void focusLost(FocusEvent e)
// Control if it is all ok
// Format the field
if (!e.isTemporary())
// Make automatic completition when the user leave the field
enter();
public void processKeyEvent(KeyEvent e)
char newKey = e.getKeyChar();
if (_onlyUpperCase)
newKey = Character.toUpperCase(e.getKeyChar());
super.processKeyEvent(new KeyEvent(this, e.getID(), e.getWhen(), e.getModifiers(), e.getKeyCode(), newKey));
e.consume();
public void keyTyped(KeyEvent e)
public void keyPressed(KeyEvent e)
if (e.getKeyCode() == e.VK_F9)
if (this.dui.getLOV() != null)
this.dui.getLOV().addActionListener(this);
this.dui.getLOV().start(this);
public void keyReleased(KeyEvent e)
public void actionPerformed(ActionEvent ae)
if (ae.getSource() == this)
enter();
else
this.dui.getLOV().removeActionListener(this);
if (this.dui.getLOV().getValue() != null)
javax.swing.FocusManager.getCurrentManager().focusNextComponent(this);
dui.fireEditingCompleted(this);
//--------------- controlla dimensione del testo... mi sembra pesantuccio!-----------------//
// FontMetrics fm = this.getGraphics().getFontMetrics(this.getFont());
FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(this.getFont());
private void _setTooltipIfNeeded()
String text = this.getText();
int tWidth = fm.stringWidth(text);
int cWidth = this.getSize().width;
if(tWidth>cWidth && cWidth>0)
this.setToolTipText(text);
else
this.setToolTipText(null);
* JTextField setText method redefined to perform validation.
public void setText(String text)
if (_onlyUpperCase && text !=null)
text = text.toUpperCase();
super.setText(text);
if ((this.getLOV() != null))
if (this.getLOV().isWorking())
return;
updateCorrect();
setCaretPosition(0);
dui.fireEditingCompleted(this);
* Sets the current text.
public void setValue(String text)
setAsText(text);
* Returns the current text.
public String getValue()
return getAsText();
public void setAsText(String text)
this.setText(text);
public String getAsText()
String ret = this.getText();
if (_onlyUpperCase)
ret = ret.toUpperCase();
return PString.trim(ret);
public void setLOV(LOVWindow lw)
this.dui.setLOV(lw);
this.updateCorrect();
public LOVWindow getLOV()
return this.dui.getLOV();
public Dimension getMinimumSize()
if (_preferredSize == null)
_preferredSize = super.getPreferredSize();
return _preferredSize;
public Dimension getPreferredSize()
if (_preferredSize == null)
_preferredSize = super.getPreferredSize();
return _preferredSize;
public void setColumns(int colno)
// invalidate cached data
super.setColumns(colno);
_preferredSize = null;
private void fireUpdate()
boolean oldSemanticCorrect = this.dui.getSemanticCorrect();
this.dui.setSemanticCorrect(true);
boolean correct = this.isCorrect();
this.dui.setSemanticCorrect(oldSemanticCorrect);
if ((correct == false) && (this.getAsText().trim().length() != 0))
return;
String localOldText = this._oldText;
this._oldText = this.getAsText();
firePropertyChange(PhoenixUIElement.ASTEXT_PROPERTY_NAME,localOldText,this._oldText);
* Inform the component that the editing is completed.
public void enter()
if ((this.getMode() == PhoenixUIElement.LOOKUP) && (this.getLOV() != null) && (this.getAsText().length() != 0))
this.getLOV().isCorrectAuto(this);
updateCorrect();
dui.fireEditingCompleted(this);
* This event is common to all uielement. The event editingCompleted is
* fired each time the editing reach a complete form. Each swing ui element
* has a different event to inform that the editing is completed: actionPerformed
* on the JText, ItemSelected on the JList, focusLost to all elements.
* <P>
* <PRE><CODE>
* actionPerformed focusLost itemsSelected ... enter()
* \ | / /
* \ | / _________/
* \ | / ______/
* editingCompleted <---------------- setAsText()
* |
* |
* setRequired() ---> updateCorrect
* setMode() ------/ |
* |
* |
* propertyChange (ASTEXT)
* </CODE></PRE>
* Each specific event is mapped on the editingCompleted event. The editing
* complete event fires an updateCorrect method's call. The updateCorrect
* fires a propertyChange event if, and only if, the content of
* the ui element is changed.
public void addEditingListener(EditingListener ee)
dui.addEditingListener(ee);
* Removes the editingListener.
public void removeEditingListener(EditingListener ee)
dui.removeEditingListener(ee);
* This method can be used as common way to set the value for
* the ui element throught an object. If the object is of the
* wrong type (like Date for a numeric) no set is made.
public Object getAsObject()
return this.getAsText();
* Return the value in the field as object. For example UIDate return
* a date object, UINumeric a Double object, UICheckBox a Boolean object, ecc.
public void setAsObject(Object o)
if (o instanceof String)
this.setAsText((String)o);
* Returns true if the editor is empty. False otherwise.
public boolean isNull()
return (this.getAsText().length() == 0);
* Return the component associated with this editor. In the most cases
* this is returned.
public Component getComponent()
return this;
public String format(Object o, String pattern)
return o.toString();
public String format(Object o, String pattern, Locale l)
return o.toString();
public Object parse(String text) throws ParseException
return text;
public Object parse(String text, Locale l) throws ParseException
return text;
public String getPattern()
return "";
public int getAlignment()
return JLabel.LEFT;
public Object clone()
UIText clone = new UIText();
clone.setText(getText());
return clone;
try
catch (CloneNotSupportedException cnse)
throw new RuntimeException("Clone not supported?");
private boolean _noFirePropertyChange = false;
public void addNotify()
_noFirePropertyChange = true;
super.addNotify();
_noFirePropertyChange = false;
protected void firePropertyChange(String propertyName,Object oldValue,Object newValue)
if (!_noFirePropertyChange)
//System.out.println("NO!");
if (propertyName.equals("ancestor"))
return;
super.firePropertyChange(propertyName, oldValue, newValue);
public String getMultilangCode()
return dui.getMultilangCode();
public String getTooltipMultilangCode()
return dui.getTooltipMultilangCode();

Can you explain what are you trying to copy and where?
Can't you copy text from website to the clipboard or do you have a problem with pasting that text?
* http://kb.mozillazine.org/Clipboard_not_working

Similar Messages

  • Does not copy the text

    Does not copy the text Please help me

    Can you explain what are you trying to copy and where?
    Can't you copy text from website to the clipboard or do you have a problem with pasting that text?
    * http://kb.mozillazine.org/Clipboard_not_working

  • After upgrading to 10.2.2.12  on windows XP SP3 , itunes does not display any summary info or buttons/options. The buttons work but it does not display the text on the button or the options available.

    I recently upgraded the iTunes software to 10.2.2.12 on my Windows XP laptop. Since then, iTunes stopped displaying the Summary info
    , the text on the buttons, the various drop down options. The buttons seem to be working but I can't tell what that button is supposed to do
    or the option I am selecting. This is preventing me from syncing my photos to the laptop.
    this was not a problem with the previous version of iTunes.
    Actions taken :
    - I tried downloading iTunes again and repairing the install. That did not fix it.
    - Don't want to uninstall it as I am worried that I would lose all the songs and the purchases etc.
    1. Has anyone encountered this ?
    2. Is there a solution for this ?
    Many thanks in advance for your time and help
    Nitin

    bmalones44 wrote:
    b noir, my Windows 7 machine is having the exact same issue as nsadal, and I have already confirmed that all six of the Segoe UI fonts are installed on my computer.  Are any other Windows users having this problem with the 10.2.2.12 iTunes release?
    Yeah it does, although the problem predates version 10.2.2.12. It's been around since earlier-on in the version 10s (at least).
    It's usually Segoe UI font trouble on the Windows 7 systems too. Unfortunately, the Vortical troubleshooting technique only works on XP and Vista systems, so dealing with the issue on a Windows 7 system is trickier. (There's a bunch of different possible issues relating to the fonts that could be in play, and so the treatment tends to depend on which issue in particular you've got with the Segoe_UI fonts.)
    For discussions of various Windows 7 variations of the "Missing text" thing, and possible treatments, see the following (unfortunately, rather long) topic:
    iTunes 10.1 Missing Text

  • Go - Connect to Server does NOT work - The text entered does not appear to

    Two Macs with Mac OS X 10.5.2. Both migrated from Mac OS X 10.4.11. One Mactel and one PowerPC. I can see the former from the latter, but not the latter from the former:
    Go/Connect to Server
    gives this error all the time for all listed servers:
    The text entered does not appear to be a recognized URL format
    This does not help:
    Mac OS X 10.5: "The text entered does not appear to be a recognized URL format" alert when connecting to server
    http://docs.info.apple.com/article.html?artnum=307256
    Any idea how to fix it? Thanks.

    At this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    I'd do it on all of them.
    Then we can go on from there if you still have a problem, but with several queastions eliminated!

  • I can receive texts from one contact but when I reply she does not receive the text. It does not say delivered when the text is sent but does not say that it has not been sent.

    One of my long standing contacts cannot receive texts from me. I can see them from her. We both have iPhones . We have been texting for years.
    My outgoing message is sent as iMessage and stays blue. It does not say delivered but it does not say that it has been unable to send.

    Hello LaurenCheerio,
    The following article provides some additional troubleshooting that may be helpful in getting your messaging issues sorted.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Allen

  • When typing or clicking to open pages firefox does not show the text or that it has changed to the other page. Unless i minimize and then maximise the window. Any help with this would be much appreciated.

    The browser seems to be lagging and stuck on the original page until moved around the screen or minimised or maximised.
    Again any help at all is much appreciated. I really dont like using other browsers.
    I have the latest edition of directx, graphics card and sound drivers are all up to date according to the laptop manufactor's website.
    Reinstalled and uninstalled around 3 times. Thought it could be a registery problem so before i installed it the final time i ran c cleaner.
    Ran adaware and superanti spyware to see if spyware was a problem
    If any more information is needed please ask.
    Thank you.
    Nanakisbs

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

  • Text box does not display the date??

    I have a text box <input type="TEXT" name="invoiceDate" readonly></input>. I select the date using datepicker .The date gets displayed in the text box.Then i click on "Show" button which loads the same jsp page again.
    When the page is loaded the text box does not show the date.
    I try to save the date in the text box as
    <% String date1=request.getParameter("invoiceDate");
    <input type="hidden" name="date1" value="<%=date1 %>">
    <%>
    The value is saved in this hidden variable..
    Plz help me what to do next
    Thanks

    Its a hidden field and that's why it isnt displayed.
    Use
    <input type="text" name="date1" value="<%=date1 %>"> ram.

  • When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?

    When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?  When I press a mobile number in contacts, the phone automatically phones the number.  I do not mind this as I hardly ever send texts, but I would like to have the option of what to do.  This seems such an obvious issue but I can not solve it even with much web searching.  Thanks!

    I can't delete my question, so I'll just say that you press on the type of number written in the box to the left of the box you typye the number into.  Dumb or what? 

  • Sharepoint error - Search Issue - The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).

    i see this error everywhere - In ULS logs, on site. On the site > Site settings > search keywords; I see this - 
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;'.
    I am facing issues in searching, my managed metadata service is not running, search results page throws internal error. Any Idea why this above error comes.
    P.S: We use windows authentication in our environment.

    Hi IMSunny,
    It seems you have solved this issue based on your another post.
    http://social.technet.microsoft.com/Forums/en-US/aa468ab0-1242-4ba8-97ea-1a3eb0c525c0/search-results-page-throws-internal-server-error?forum=sharepointgeneralprevious
    Thanks
    Daniel Yang
    TechNet Community Support

  • Error consuming Web service - content type text/xml;charset=utf-8 of the response message does not match the content type of the binding

    Hi all,
    We are trying to interact with Documentum server through DFS exposed WCF which communicates through port 9443 and we are provided with documentum issued Public Key certificates. We have successfully imported the certificates in client machine and configured
    the bindings as below in our .Net web application config file.
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    Also, we set the message encoding as MTOM and the wcf client object initialization code snippet is as below,
    ObjectServicePortClient
    serviceClient = new
    ObjectServicePortClient(new
    WSHttpBinding("ObjectServicePortBinding1"),
    new
    EndpointAddress(UriUtil.ObjectServiceUri));
    if (serviceClient.Endpoint.Binding
    is
    WSHttpBinding)
       WSHttpBinding
    wsBinding = serviceClient.Endpoint.Binding as
    WSHttpBinding;
    wsBinding.MessageEncoding =
    "MTOM".Equals(transferMode) ?
    WSMessageEncoding.Mtom :
    WSMessageEncoding.Text;
    serviceClient.Endpoint.Behaviors.Add(new
    ServiceContextBehavior(Config.RepositoryName,
    Config.DocumentumUserName,
    Config.DocumentumPassword));
    When we execute the above code, we are getting error message as below,
    Exception: The content type text/xml;charset=utf-8 of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported
    method is implemented properly. The first 407 bytes of the response were: '<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:VersionMismatch</faultcode><faultstring>Couldn't
    create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope </faultstring></S:Fault></S:Body></S:Envelope>'
    Then, we changed the bindings as below
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="
    Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    We are getting another error message,
    Exception: The client certificate is not provided. Specify a client certificate in ClientCredentials.
    Any pointers on resolving this issue would be highly helpful.
    Thanks

    Hi Dhanasegaran,
      As per your case, the corresponding details which may guide you to resolve this issue:
    1. First of all, you can try to call the wcf service directly from the browser & check where it will point out the correct location.
    2. In config file ,Set IncludeExceptionDetailInFaults to true to enable exception information to flow to clients for debugging purposes .
    Set this to true only during development to troubleshoot a service like below :
    <serviceBehaviors>
      <behavior name="metadataAndDebugEnabled">
        <serviceDebug
          includeExceptionDetailInFaults="true"   
    />
        <serviceMetadata
          httpGetEnabled="true"
          httpGetUrl=""   
    />
      </behavior>
    </serviceBehaviors>
    3. I suggest you to change that <security mode ="TransportWithMessageCredential"> instead of <security mode ="Transport">
     for more information, refer the following link :
    https://msdn.microsoft.com/en-us/library/aa354508(v=vs.110).aspx

  • WCF returning "The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8)"

    I have a WCF service I am trying to run on a new installation of 64-bit Windows Server 2008 IIS. Although it runs fine on Windows 2003 IIS, it is throwing the error in the thread title, which appears to be a server config issue, but I am not sure. Googling and searching the MSDN forums did not turn up a solution. I tried running WCF Logging, but that didn't help either.
    Does anyone have any suggestions on how to solve this probelm?
    Here is the error:
    The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>500 - Internal server error.</title>
    <style type="text/css">

    I have the same issue on Windows 7 machine. The service works fine using a SoapUI client but a .Net client faisl to get a response.
    Hi,
    I have a WCF service which works perfectly when using SoapUI but throws error in my .Net client.
    {"The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first
    1024 bytes of the response were: '<HTML><HEAD><link rel=\"alternate\" type=\"text/xml\" href=\"http://xyz.mysite.com/ysa/Broker.svc?disco\"/><STYLE type=\"text/css\">#content{ FONT-SIZE: 0.7em;
    PADDING-BOTTOM: 2em; MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TOP: 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY: Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT:
    5px; BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px; FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP:
    0px; PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH: 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT: -15px}</STYLE><TITLE>Broker
    Service</TITLE></HEAD><BODY><DIV id=\"content\"><P class=\"head'."}
    I have the same service hosted on my local machine and when I point to the local service I can execute the operation with no issues. The message encoding is Soap11. I tried changing to Soap12 but I get exact same error. Any ideas greatly appreciated.
    I do have windows Activation Features installed and I am using .Net Framework 4.
    Thanks
    Sofia Khatoon

  • After downloading the ios7 to my iPhone 4s, the keyboard does not have the microphone so I can't speak to text.  How do I get this feature back?

    After downloading the ios7 to my iPhone 4s, the keyboard does not have the microphone so I can't speak to text.  How do I get this feature back?

    Go to Settings > General > Siri and turn Siri on. Once you turn it on, you will have the microphone key back on the keyboard

  • PE 13 crashes due to incompatible video driver detected. Running on Win 7 SP1 with ATI 540v video card/driver.  Deleting bad driver file in adobe program data does not fix the problem,  it simply replaces the text file and crashes again.  My video driver

    PE 13 crashes due to incompatible video driver detected. Running on Win 7 SP1 with ATI 540v video card/driver.  Deleting bad driver file in adobe program data does not fix the problem,  it simply replaces the text file and crashes again.  My video driver is just fine.  Any help out there?

    rb
    Your video card driver may be fine for something, but just not compatible with Premiere Elements 13/13.1.
    For those with the display card error, the answers include
    a. assure your video card/graphics card driver version is up to date according to the web site of the manufacturer of the card -
    if necessary consider a driver roll back.
    b. determine in Device Manager/Display Adapters if the computer is using 2 cards instead of 1
    c. delete the BadDrivers.txt file
    the rationale for that deletion is found in post 10 of the following older post...principle applies to 13 as well as 9.
    Re: Premiere Elements 9 Tryout Serious Display Problem
    Have you looked for computer ATI card settings that might be more compatible with Premiere Elements 13/13.1?
    When is the program crashing - just opening a new project or rather crashing if editing a particular video format at the Timeline level?
    ATR

  • Added or ediited texts by Bluebeam Revu,and has been saved,when I open it by the Adobe reader version 8.1,why it does not show my texts added by Revu?8.1 is my favorite version,I also tried it in a later version fo Reader,it doesn't work too!

    Added or ediited texts by Bluebeam Revu,and has been saved,when I open it by the Adobe reader version 8.1,why it does not show my texts added by Revu?8.1 is my favorite version,I also tried it in a later version fo Reader,it doesn't work too!

    Bernd Alheit wrote:
    Looks like a problem of Bluebeam Revu, not Adobe Reader.
    The response above is only a speculative answer to the original question. DSI-Hal, did you try to flatten the text in Bluebeam Revu prior to opening it in Adobe. This has worked for me on several different documents but not sure if we are using the same version of Adobe Reader.
    Give it a shot. Good luck.

  • TS2928 could someone please tell me how to attach a document to email as an icon that opens....so it does not appear as text in the email??

    could someone please tell me how to attach a document to email as an icon that opens....so it does not appear as text in the email??

    Paste this into Terminal and hit return. If this attachment is text, it should work. Not sure about jpegs.
    defaults write com.apple.mail DisableInlineAttachmentViewing 1
    To reverse the setting, change the 1 to a 0.

Maybe you are looking for