Characters not getting translated correctly

I have written code that basically sends a URL to AltaVista's Babelfish translator, which translates the text that I send into whatever language I specify. In my case, I'm going from English to Spanish, translating the phrase "How are you?" When I get the result back, the special character of the "o" with the accent is not printing correctly. I'm getting garbage back in the stream itself. However, if I take that same URL and plop it directly into IE, it works perfectly.
Another thing that I have tried is copying the HTML that Babelfish creates with the correct characters into a text file, then reading that file directly into Java to see if it might be some sort of problem with the URLConnection, but the java still produces the garbage.
I have also tried to change my system properties to make it think that it is a Spanish locale, but still no luck. In addition, I've tried UTF-8 and UTF-16. It seems like it is reading in double-byte characters and returning the wrong byte for the special characters.
One last thing I tried was setting the "Content-Language" in the setRequestProperty() method for the URLConnection, but that didn't seem to have any effect.
Here is the URL that I building and sending:
http://babelfish.altavista.com/babelfish/tr?lp=en_es&tt=urltext&intl=l&doit=done&urltext=How are you?
Here is the full code, sorry it's a little lengthy, but I thought it would help.
import java.util.*;
import java.util.regex.*;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.io.DataOutputStream;
import java.io.DataInputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
class Translator {
public static String translate(String message, String fromto) throws Exception {
String messageHeader = null;
String translatedMessage = null;
String thisFromTo = fromto;
String[] fromTo = breakupFromTo(thisFromTo);
if(fromTo[0].equals(fromTo[1])){
return message;
if(message.indexOf("<") != -1){
messageHeader = message.substring(message.indexOf("<"),message.indexOf(">")+1);
translatedMessage = message.substring(message.indexOf(">")+1);
message = translatedMessage;
} else {
messageHeader = "";
translatedMessage = message;
URL transUrl = new URL("http://babelfish.altavista.com/babelfish/tr");
URLConnection conn = transUrl.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
DataOutputStream printout = new DataOutputStream(conn.getOutputStream());
String content = "lp=" + URLEncoder.encode(thisFromTo, "UTF-8") + "&tt=urltext&intl=l&doit=done&urltext=" +URLEncoder.encode(message, "UTF-8");
printout.writeBytes(content);
printout.flush ();
printout.close ();
// Get response data.
DataInputStream input = new DataInputStream (conn.getInputStream());
BufferedReader binput = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String str;
String buff = "message could not be translated";
while (null != ((str = binput.readLine()))){
Matcher matcher = Pattern.compile("^.*<Div style=padding:10px; lang=(.*)>(.*)</div>.*$").matches(str);
if(matcher.matches()){
buff = matcher.group(2);
buff = messageHeader + " " + buff;
return buff;
private static String[] breakupFromTo( String fromto) {
StringTokenizer t = new StringTokenizer(fromto, "_");
String from = t.nextToken();
String to = t.nextToken();
String[] fromTo = {from, to};
return fromTo;
public static void main(String args[]){
String str = "How are you?";
String thisFromTo = "en_es";
try{
String translation = translate(str, thisFromTo);
System.out.println(translation);
} catch(Exception e){}

I found my answer, I needed to replace this line
BufferedReader binput = new BufferedReader(new InputStreamReader(conn.getInputStream()));
with
BufferedReader binput = new BufferedReader(new InputStreamReader(conn.getInputStream(),"UTF-8"));
And it works like a charm!

Similar Messages

  • Business Area field should not get translate while doing allocations in co

    Dear All,
    In ecc 6.0 when we will be allocating expenses through assessment and Distribution the system credits sender cost center and debits receiver cost center,the same will be applicable for Business Area also.
    But my client is having plant =business area for which they are making financial statements business area wise.
    The client wants its business area not to get affected by above allocations ,Is there any method of restricting costs to remain in same business area and not getting translated to another business area.
    Example :                    cost center           profit center           business area
    expenses                      1011                   1001                     101
    allocation from cctr to cctr 1012 which is having pctr 1002 and business area 102
    expenses                      1012                   1002                       102
    So my requirement is the system should not update business area 102
    Thanks and regards
    vijay

    Hi Vijay,
    Profit Center is derived basing on Assignments. If you have assigned a Profit Center in the Cost Center Master
    Data, obviously for whatever the postings that take place in that Cost Center, will be posted to Profit Center also
    (Statistical).
    In your case, Cost Center 1011 and 1012 have been assigned to different Profit Centers 1001 and 1002. So,
    conceptually what the system is doing is correct.
    You want to restrict the postings to happen to Business Areas. I suggest you, this is not problem of
    stopping/restricting the transaction postings but You have to restructre your Cost Centers and Profit Centers.
    It's rather a Business Process / Structure change required than technical requirement in the system by restricting
    the postings.
    Pls revert back for further discussion...
    Srikanth Munnaluri

  • International characters not showing up correctly in Podcast Title-Is UTF-8

    In the 'Podcast Information' window that pops up, the Episode title is not getting rendered correctly but the details show up fine. Both have chinese characters.
    Any pointers for resolving this would be appreciated.

    If sometimes it works, and sometimes it doesn't, then there must be a difference in the way you are doing it. And you can work out what's happening from analyzing what you're doing when it works compared with what you're doing when it doesn't work.
    For example, if you type the description into the blogging software, you might just be typing the ' key. While some writing software (word for example) will automatically turn on smart quotes which your blogging software will be escaping into HTML code. The character ' doesn't need escaping, but smart quotes do.
    Hope this helps,
    Greg

  • GLPCA table not getting updated correctly for VBUND

    Hi All,
    I have come across one issue that the value of trading partner field (VBUND) in table GLPCA are not getting updated correctly for document type KP.
    In vendor master this field has different value versus it is showing in GLPCA-VBUND.
    Does any one knows about ?
    Thanks for your help on it.
    Regards,
    Manoj

    Hi Sridhar,
    Thanks for your response on it.
    This note is not applicable for our system as we are working on 4.0B with support pack 52.
    Also we are getting this worng update of this field (GLPCA-VBUND) while doing MR11 creating document with doc. type KP. This value is not picking from vendor master (LAF1-VBUND) and randamly picking any value. Not sure from where ?
    Please advise your thought.
    Thanks,
    Manoj

  • Excel Charts do not get displayed correctly (colour) !urgent!

    Hi,
    believe me: I spent days in research to fix my problem but could not find a solution yet...
    I use a lot of Excel Web Parts on my SharePoint Site. Basically to display charts or tables. Everything worked fine for months but out of a sudden some of the web parts do not anymore. These Web Parts still get displayed but all in black or grey and
    because of that are partly unreadable. For example: a cell with a white font and a blue blackground just gets displayed as a black cell with black fontcolour. I thought it might depends on the settings of the server computer but other colourful charts/tables
    still work fine (but on the other hand, all new web parts do not get displayed correctly...)
    I tried to remove macros, conditional formatting, creating completely new subsites with content. But the result is always the same: black cells.
    Then I tried to just use 8bit-colours and tada: it worked (except of the colour white, that still does not work).. I do not have access to the server computer. And I am wondering because some other charts still work..
    Any ideas?
    I do not use SharePoint Designer, just the browser version of 2010.
    Thanks for your help!!!

    Here is the code:
    IANode QueryContractResultNode = wdContext.nodeA();
    IBNode ToolTipNode = wdContext.nodeToolTipNode();
    QueryContractResultNode.invalidate();
    for(int i=0; i<searchContractListSize; i++)
       IAElement newQueryContractResultEl =   QueryContractResultNode.createAElement();
    WDCopyService.copyCorresponding(getList.getOutput().getI_Detail().get(i),newQueryContractResultEl);
    IBElement newToolTipEl = ToolTipNode.createBElement();
    if(newQueryContractResultEl.getParentName().length() >= 5)
         newToolTipEl.setChildName  (newQueryContractResultEl.getParentName().substring(0,4) + "...");
    else
         newToolTipEl.setChildName (newQueryContractResultEl.getParentName());
    QueryContractResultNode.addElement(newQueryContractResultEl);
    ToolTipNode.addElement(newToolTipEl);
    Node A is bound to a model structure.  Therefore, the value of A.parentName is set after the RFC execution.
    Zita

  • Not getting the correct data at reciever side

    Hi
    I have done mail adapter... My senario is Mail --> XI --> File... In this mail adapter is sender. i have give the url as pop://<ip address> the xi server is picking up the file...
    Source File Is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Mail_Message_Type xmlns:ns0="http://mailtofiledemo.com/ravi">
       <Order>
          <Header>
             <Name>Ravi</Name>
             <Address>Vsp</Address>
          </Header>
          <Item>
             <material>Computer</material>
             <units>3</units>
             <price>90000</price>
          </Item>
       </Order>
    </ns0:Mail_Message_Type>
    Target File is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:File_Message_Type mlns:ns0="http://mailtofiledemo.com/ravi">
    <row>
       <name>Ravi</name>
       <address>Vsp</address>
       <material>Computer</material>
       <units>3</units>
       <price>90000</price>
    </row>
    I have  an unread mail in my Inbox and i have attached the source file to that mail... the server is picking up the file but in receiving side i am not getting the correct target file... i am getting the target file like:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:File_Message_Type xmlns:ns0="http://mailtofiledemo.com/ravi"></ns0:File_Message_Type>
    </ns0:File_Message_Type>
    eventhough if i dont have any unread mails in my inbox i am getting the same file at target side continuosly...so please give me the solution as early as possbile or else my folder will going to be overflow with that target file
    Thanks & Regards
    Ravi Shankar

    Ravi,
    Have to check the Transport Protocol used by internal Mail Server. The parametes you pass to the mail adapter should be same to the internal mail sever where you are trying to send and also check with XIPAYLOAD option.
    If this helps to u. Allot the points please.
    Thanks
    Gowri K

  • JRockit_160_05_R27.6.2-20 can not get the correct os name for windows 2008

    JRockit_160_05_R27.6.2-20 can not get the correct os name for Windows Server 2008 SP1 using System.getProperty("os.name").
    System.getProperty("os.name") will return Windows Vista instead of Windows Server 2008 when running on Windows Server 2008 SP1. Is it a bug of this jdk?
    I tested it on Sun JDK 1.6. It returns the correct name Windows Server 2008.
    Any suggestion will be welcomed. Thanks in advanced!
    Edited by: user4516182 on May 13, 2010 12:59 AM

    Staffan, thanks for your update.
    Do we have a workaround for it or fix it in new release?

  • I can not get the correct anser

    Hi, Please help me.  As the following sch I can not get the correct sqrt value.  if changing resistor of R1 I always get 12v direct flow output.
    Attachments:
    op_divider.zip ‏121 KB

    Thanks for your answers.  I want the sch to do the operation of square root.
     1. in my sch the inverting input is DC -5v, I want to get the square root of 5?
     2. In my feedback path I use a multiplier, I Originally thought it is a negative feedback?
     3. it Already have ground in the sch, I do not understand that you say "did not ground the scope"?
    Thanks again, Could you give me the further pointing. if possible Could you give me a correct sch.
    (in fact, I get the sch from a rough sch in a textbook(the rough sch not for multisim). I just give the values for the all components)

  • Extended characters not getting through VM properly in JDK1.4 versions

    This is on WIndows platform with regular US keyboard.
    When you type "ALT+0252" (it is �) from your regular (English) keyboard using it's numeric keypad, somewhere in the VM there is translation happening that is converting the numeric value of 252 to 242 and there by displaying the character mapped to ALT+0242 (which is �).
    Similarly, every other extended character is getting translated somewhere thereby displaying the wrong character.
    The way to look at Character Map on Windows platform is Start|Programs|Accessories|System Tools|Character Map.
    Best way to compare what is getting through VM is by running
    regular Notepad (Start | Programs | Accessories | Notepad) and typing
    above character and then running the Notepad that comes with J2SDK install (java -JAR JDKInstallDir\demo\jfc\Notepad\Notepad.jar) and typing the same character.
    You will notice that the regular Notepad displays � when you type ALT+0252 but the java Notepad displays � when you type the same ALT+0252 character.

    Here is the sample code. You can first run it in jdk1.3 environment and enter the extended characters in the textfield. You will notice that they get rendered correctly (such as ALT+0252 gets rendered as �)
    Then try running the same applet in jdk1.4 environment and enter the same extended characters in the textfield and you will notice the difference. ALT+0252 will now get rendered as � which is not correct.
    JComponent class in JDK1.4 seems to be translating the string some how before rendering it.
    Please let me know if you have any ideas or suggestions on this weird behavior in JDK1.4. Thanks.
    import javax.swing.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    public class DemoApplet extends JApplet
    public JTextField jtf = new JTextField ("Testing");
    public String text = "";
    public void init()
    jtf.addActionListener (new ActionListener() {
    public void actionPerformed(ActionEvent e)
    text = ((JTextField)e.getSource()).getText();
    try {
    System.out.println ("numeric value of text is : " + (int)(text.charAt (0)));
    catch (Exception ex)
    ex.printStackTrace ();
    JPanel pan = new JPanel ();
    pan.add (jtf);
    pan.validate();
    getContentPane().add (pan);

  • Content Organizer bug - PDF files does not get routed correctly if autodeclaration is on and library level default values are set

    It looks like whenever one specifies Column default values at a library level then the content organizer routing goes a bit awry SPECIFICALLY FOR NON OFFICE FILES [e.g. PDF] . Below are the observations and issues
    1. Column level default value set on a record library with auto declaration of records turned on.  The content organizer routes the document to the library but also keeps a copy of the document in the drop off library. It does not remove it from the drop
    off library. The instant we clear the default value settings at the library level of the target library the content organizer works as expected again. 
    2. If default value settings are specified on a column in the target library then the PDF file gets routed to the document library but all the metadata is blanked out. The copy of the file that remains in the drop off library has all the correct metadata but
    the target library has blanked out metadata. 
    Are the 2 observations described above by design or are they bugs? If so is there any documentation that is available that proves this because this does not make logical sense and proving this to a client in the absence of any documentation is a challenge.
    The problem goes away if we shift the default value to the site columns directly at the site collection level. It's just the library level defaults that the pdf files do not seem to agree with

    Hi Lisa,
    Thanks for responding. This can be replicated in any environment but is only replicable for a specific combination of content organizer settings . The combination of settings I am referring to can be seen in the screenshot below. If you turn off redirect
    users to the drop off library for direct uploads to libraries and if you turn on sharepoint versioning then you should be able to replicate the issue. Also we are using managed metadata site columns. I simplified this use case to a custom content content type
    with just 2 custom managed metadata columns and can still replicate the issue in several environments. Also note the issue does not occur if the default values are set at the site or site collection level. It only occurs if you set the column value default
    at a library level.  I was able to replicate this on a completely vanilla Enterprise records site collection freshly created just to test this.  Also note that the issue is not that the file does not reach the destination library. The issue is the
    document does not get removed from the drop off library after it is transfered to the destination library which technically should have gotten removed.

  • Initialization parameters not getting populated correctly during DBCA

    This problem is observed on Oracle 10.2.0.1 Linux x86 and RedHat Enterprise Linux 4 ES Update 5.
    I tried to use DBCA template file to create an Oracle database (see below for the template file content). The DB creation was successful, but the initialization parameters did not get populated into /oracle/u01/app/oracle/admin/ora10g/pfile/init.ora the way I would expect.
    ora10g.dbt template - file content
    ========================
    <DatabaseTemplate name="ora10g" description="" version="10.2.0.0.0">
    <CommonAttributes>
    <option name="ISEARCH" value="false"/>
    <option name="OMS" value="false"/>
    <option name="JSERVER" value="true"/>
    <option name="SPATIAL" value="false"/>
    <option name="ODM" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="IMEDIA" value="false"/>
    <option name="XDB_PROTOCOLS" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="ORACLE_TEXT" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="SAMPLE_SCHEMA" value="false"/>
    <option name="CWMLITE" value="false">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="EM_REPOSITORY" value="true">
    <tablespace id="SYSAUX"/>
    </option>
    <option name="HTMLDB" value="false"/>
    </CommonAttributes>
    <Variables/>
    <CustomScripts Execute="false"/>
    <InitParamAttributes>
    <InitParams>
    <initParam name="audit_file_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump"/>
    <initParam name="background_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/bdump"/>
    <initParam name="compatible" value="10.2.0.1.0"/>
    <initParam name="control_files" value="(&#8220;/u01/oradata/{DB_UNIQUE_NAME}/control01.ctl&#8220;, &#8220;/u02/oradata/{DB_UNIQUE_NAME}/control02.ctl&#8220;, &#8220;/u03/oradata/{DB_UNIQUE_NAME}/control03.ctl&#8220;)"/>
    <initParam name="core_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/cdump"/>
    <initParam name="cursor_sharing" value="EXACT"/>
    <initParam name="db_block_size" value="16384"/>
    <initParam name="db_cache_size" value="1" unit="GB"/>
    <initParam name="db_domain" value=""/>
    <initParam name="db_file_multiblock_read_count" value="16"/>
    <initParam name="db_name" value="ora10g"/>
    <initParam name="job_queue_processes" value="10"/>
    <initParam name="large_pool_size" value="0" unit="MB"/>
    <initParam name="java_pool_size" value="0" unit="MB"/>
    <initParam name="log_buffer" value="64000000"/>
    <initParam name="open_cursors" value="300"/>
    <initParam name="pga_aggregate_target" value="1" unit="GB"/>
    <initParam name="processes" value="300"/>
    <initParam name="recyclebin" value="off"/>
    <initParam name="remote_login_passwordfile" value="EXCLUSIVE"/>
    <initParam name="sessions" value="335"/>
    <initParam name="sga_target" value="1600" unit="MB"/>
    <initParam name="shared_pool_size" value="128" unit="MB"/>
    <initParam name="sort_area_size" value="4194304"/>
    <initParam name="transactions" value="610"/>
    <initParam name="undo_management" value="AUTO"/>
    <initParam name="undo_retention" value="10800"/>
    <initParam name="undo_tablespace" value="UNDOTBS1"/>
    <initParam name="user_dump_dest" value="{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/udump"/>
    </InitParams>
    <MiscParams>
    <databaseType>MULTIPURPOSE</databaseType>
    <maxUserConn>20</maxUserConn>
    <percentageMemTOSGA>80</percentageMemTOSGA>
    <customSGA>false</customSGA>
    <characterSet>WE8ISO8859P1</characterSet>
    <nationalCharacterSet>AL16UTF16</nationalCharacterSet>
    <archiveLogMode>false</archiveLogMode>
    <initParamFileName>{ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/pfile/init.ora</initParamFileName>
    </MiscParams>
    <SPfile useSPFile="false">{ORACLE_HOME}/dbs/spfile{SID}.ora</SPfile>
    </InitParamAttributes>
    <StorageAttributes>
    <ControlfileAttributes id="Controlfile">
    <maxDatafiles>100</maxDatafiles>
    <maxLogfiles>16</maxLogfiles>
    <maxLogMembers>3</maxLogMembers>
    <maxLogHistory>1</maxLogHistory>
    <maxInstances>8</maxInstances>
    <image name="control01.ctl" filepath="/u01/oradata/{DB_UNIQUE_NAME}/"/>
    <image name="control02.ctl" filepath="/u02/oradata/{DB_UNIQUE_NAME}/"/>
    <image name="control03.ctl" filepath="/u03/oradata/{DB_UNIQUE_NAME}/"/>
    </ControlfileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf">
    <tablespace>SYSAUX</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/system01.dbf">
    <tablespace>SYSTEM</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">500</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">10240</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/temp01.dbf">
    <tablespace>TEMP</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">100</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">640</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <DatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf">
    <tablespace>UNDOTBS1</tablespace>
    <temporary>false</temporary>
    <online>true</online>
    <status>0</status>
    <size unit="MB">100</size>
    <reuse>true</reuse>
    <autoExtend>false</autoExtend>
    <increment unit="KB">5120</increment>
    <maxSize unit="MB">-1</maxSize>
    </DatafileAttributes>
    <TablespaceAttributes id="SYSAUX">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/sysaux01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="SYSTEM">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>-1</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>false</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/system01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="TEMP">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>true</temporary>
    <defaultTemp>true</defaultTemp>
    <undo>false</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>2</allocation>
    <uniAllocSize unit="KB">1024</uniAllocSize>
    <initSize unit="KB">64</initSize>
    <increment unit="KB">64</increment>
    <incrementPercent>0</incrementPercent>
    <minExtends>1</minExtends>
    <maxExtends>0</maxExtends>
    <minExtendsSize unit="KB">64</minExtendsSize>
    <logging>false</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/temp01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <TablespaceAttributes id="UNDOTBS1">
    <online>true</online>
    <offlineMode>1</offlineMode>
    <readOnly>false</readOnly>
    <temporary>false</temporary>
    <defaultTemp>false</defaultTemp>
    <undo>true</undo>
    <local>true</local>
    <blockSize>-1</blockSize>
    <allocation>1</allocation>
    <uniAllocSize unit="KB">-1</uniAllocSize>
    <initSize unit="KB">512</initSize>
    <increment unit="KB">512</increment>
    <incrementPercent>50</incrementPercent>
    <minExtends>8</minExtends>
    <maxExtends>4096</maxExtends>
    <minExtendsSize unit="KB">512</minExtendsSize>
    <logging>true</logging>
    <recoverable>false</recoverable>
    <maxFreeSpace>0</maxFreeSpace>
    <autoSegmentMgmt>true</autoSegmentMgmt>
    <bigfile>false</bigfile>
    <datafilesList>
    <TablespaceDatafileAttributes id="/u01/oradata/{DB_UNIQUE_NAME}/undotbs01.dbf">
    <id>-1</id>
    </TablespaceDatafileAttributes>
    </datafilesList>
    </TablespaceAttributes>
    <RedoLogGroupAttributes id="1">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo01.log" filepath="/u01/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="2">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo02.log" filepath="/u02/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    <RedoLogGroupAttributes id="3">
    <reuse>false</reuse>
    <fileSize unit="KB">1048576</fileSize>
    <Thread>1</Thread>
    <member ordinal="0" memberName="redo03.log" filepath="/u03/oradata/{DB_UNIQUE_NAME}/"/>
    </RedoLogGroupAttributes>
    </StorageAttributes>
    </DatabaseTemplate>
    Right after DB creation using DBCA, I would expect to see the following initialization paramaters populated in /oracle/u01/app/oracle/admin/ora10g/pfile/init.ora file that match the values I specified in the template file, but it appears that some initialization parameters are either not populated or incorrectly populated.
    db_cache_size=1g
    (this parameter entry is missing, not getting popultated at all)
    sga_target=1600m
    (sga_target populated with 1211105280)
    pga_aggregate_target=1g
    (pga_aggregate_target populated with 403701760)
    shared_pool_size=128m
    (this parameter entry is missing, not getting popultated at all)
    large_pool_size=0
    (this parameter entry is missing, not getting popultated at all)
    java_pool_size=0
    (this parameter entry is missing, not getting popultated at all)
    log_buffer=64000000
    (this parameter is correctly populated)
    transactions=610
    (this parameter is correctly populated)
    recyclebin=OFF
    (this parameter entry is missing, not getting popultated at all)
    cursor_sharing=EXACT
    (this parameter is correctly populated)
    Does anyone know why some initialization parameters did not get populated or incorrectly populated into init.ora?
    Thanks in advance.
    Ken

    Likely dbca currently uses the spfile to store the parameters, as you should do too.
    Apart from that the pfile Oracle uses is located in $ORACLE_HOME/dbs/init<sid>.ora
    It is possible this file is soft-linked to the file you mention.
    If it isn't the file you mention is not being used at all.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Arabic data not getting printed correctly

    Dear Freinds,
               I have developed a smartform where in i have to print the English Name and Arabic name one below the other .
    So to ge the ARabic letters to be get printerd i have used the Device type ARSWIN,
    i can see now the data  being displayed correctly for Arabic name in PRINT PREVIEW ,however when i take printout of the same in the printer which is assigned to my system i can see that the data is getting jumbled on the printed stationery and i can very cleary see that data which is there on Print preview is different to that printed matter , so i have checked with my Arabic collegue and he said  after reading the print preview that it is getting displayed correctly but the data in the printed output paper is not correct  .
    So  I really not able to figure out why it is displaying correctly in Print Preview and not getting this printed  on the printed stationery .  Could any one please help me out what i should do in gettign the data also correctly in the Printed data on the Stationary paper.
    Thanks & Regards
    Divya.
    Edited by: Divya Kumari on Oct 3, 2011 7:48 AM
    Moderator Message: Moved to right forum.
    Edited by: kishan P on Oct 3, 2011 11:24 AM

    Hi,
    Now i understood your problem.
    I think you are using Text Elements to print Arabic Text.
    Use Include Text instead of Text Elements.
    By using So10 you can create Standard Texts.
    Note: Create these standard texts under language key "AR".
    Hope it solve your problem.
    Regards,
    Suresh
    Edited by: suresh kumar on Oct 16, 2011 6:33 PM

  • Position data not getting ALEd correctly through change pointers

    Hi All,
    When Posiiton is updated in One system, it gets transfers to another systems through ALE/IDOCs using change pointer method.
    when a new holder is assigned to the position in system A,  the updated data is not getting tranfered to system B.
    All the ALE settings are correct, background jobs are scheduled correctly for the change pointers.
    How ever the updated position data is not getting transfered to system B.
    The IDOCs are faling with message " Relationship starting from 01O XXXXX impossible - 01S XXXX does not exist/is not active".
    Please let me know how to over come this error and tranfer the posoition data when ever it is changed.
    Thanks & Regards,
    Preethi G

    hello Sagar,
    u r dynamically generating dropdowns in ur view say VIEW1.U must be generating ur UI dropdowns on click of the button under a trnsparent container with a particular DROP DOWN INDEX ID .
    in ur onActionAdd method if u r generating drop downs with ID say DD101, DD102, DD103 and so on ...
    thn in ur close button , u need to use the method REMOVE_CHILD_NODE and try to remove the dropdowns with same index .
    u cn take reference of this code :
    DATA :
        DATA:
                lr_node_info     TYPE REF TO if_wd_context_node_info ,
                lr_node          TYPE REF TO if_wd_context_node,
                dd_indx_id       TYPE string .
    CONCATENATE lv_node wd_this->count_sysdel INTO lv_node.
            dd_indx_id = 'DD_1'.
            wd_this->count_sysdel = wd_this->count_sysdel + 1.
            wd_this->count_dd_sys = wd_this->count_dd_sys + 1.
            CONCATENATE dd_indx_id wd_this->count_dd_sys INTO dd_indx_id.
            lr_node = wd_context->get_child_node( name = lv_node ).
            lr_node->invalidate( ).
            CALL METHOD lr_node_info->remove_child_node
              EXPORTING
                name = lv_node.
            lo_drdwn = lo_container->remove_child( id = dd_indx_id ).
    here lv_node is the name of ur node , I am using count_sysdel of type NUM and concatenate statement
    to provide unique names to the generated node.
    u cn declare it under the attributes tab .
    u can have dd_indx_id = 'DD_1' and increment count each time using
    wd_this->count_dd_sys  which is another counter .
    do revert back if u need any assitance ,it shud help .
    rgds,
    amit

  • Maps is not working resolution is terrible not getting the correct location also unable to calculate the route message appear directions not available

    Please resolve the maps issue on iO6 as it is not working properly resolution is very bad not getting correct locations direction are not available appears while calculating route

    Please resolve the maps issue on iO6 as it is not working properly resolution is very bad not getting correct locations direction are not available appears while calculating route

  • Nohup.log files are not getting generated correctly

    hai,
    im a weblogic administrator. Here is my problem in weblogic. My partner has complained that nohup.logs are not getting generated properly. Like for every 5 mins a new nohup .log file is getting generated. But almost 4 to 5 logs are of 0 size and after that the 6 log file is very hug ( around MB). And the status of the managed servers is in FAILED state. When i checked the nohup logs, i can see "E297: Write Error In Swap File" and also the below error. But when i checked the disk space it is only 30 % full. Please suggest me something that can help me in this. Why is this behavior in the nohup.logs? have anyone faced anythign like this? Please help me.
    But after the recycle everything is fine. But i want to know what went wrong and why it got recovered after the recycle.
    <Feb 11, 2010 7:43:59 AM CST> <Error> <HTTP> <BEA-101246> <Error occurred while flushing HTTP log file for the Web server: wl38_managed1
    java.io.IOException: Disk quota exceeded.
    java.io.IOException: Disk quota exceeded
    at java.io.FileOutputStream.writeBytes([BII)V(FileOutputStream.java:???)
    at java.io.FileOutputStream.write(FileOutputStream.java:260)
    at com.wily.introscope.agent.probe.io.ManagedFileOutputStream.write(ManagedFileOutputStream.java:423)
    at weblogic.utils.io.DoubleBufferedOutputStream.flushBuffer(DoubleBufferedOutputStream.java:58)
    at weblogic.utils.io.DoubleBufferedOutputStream.flush(DoubleBufferedOutputStream.java:157)
    at weblogic.servlet.logging.LogManagerHttp$FlushLogStreamTrigger.trigger(LogManagerHttp.java:522)
    at weblogic.time.common.internal.ScheduledTrigger.run(ScheduledTrigger.java:243)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:229)
    at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:223)
    at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:50)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    according to error message, your partition size have not enough disk space from where you are running nohup command. check with df -kh.

Maybe you are looking for

  • Processing a CSV file in batching by FTP Adapter gives translation error

    Hi All, I have a CSV with 2000 records.. want to process it in batch of 500. When i dont use batching in FTP adapter.. everything goes fine. But when i include batching in the adpater.. and try to process the same file. it gives: <2009-09-09 12:09:15

  • Why am I having conversion errors from Word to PDF using the CreatePDF printer?

    I just subscribed to PDF Pack. I downloaded and installed the Adobe CreatePDF printer under Administrator. When I print a Word document, I select the CreatePDF Printer and it appears to work. However, when I open the CreatePDF queue, the document is

  • Need Help On this SQL

    Hello Good People, I have this query always running for ever .... I mean very long and casuing a lotta I/O (db file sequencial read): SELECT      C.COLLECTOR,      A.BUSINESS_UNIT,      A.JOURNAL_ID,      A.JOURNAL_DATE,      A.UNPOST_SEQ,      A.JOU

  • Quality stock in APO

    Hi Experts, Can you tell me how we can how we can ditinguish unrestricted stock and qualiy stock in APO In our sceneraio, Right now Business able to issue un restricted stock and quality stock both, thts problem User able to issue both unrestricted a

  • Using Oracle Forms Developer/Services 6i Release 2 with Oracle 9i

    Hello, I am trying to load Oracle Forms Developer/Services 6i Release 2 for Windows 95/98/NT/2000/XP with already installed Oracle 9i , I am able to use all the applications installed with 9i database but I am not able to use Forms with it, Please le