Unable to set JVM file encoding to UTF-8 on Windows

Hi,
I am running Tomcat on 1.5.0_05 JRE. I tried several things to set the jvm file encoding to UTF-8 instead of the default Cp1252, but no luck yet.
The most intuitive approach seems to be to use a JVM option like
"-Dfile.encoding=UTF-8"
but this does not seem to have any effect. I have a WinXP pro m/c. I saw some bug reports which seemed to indicate that changing the JVM file encoding is not an available feature....is that correct? I would really appreciate any help/pointers on this. I will post the solution if I find something in the meantime.
Thanks,
Sriram

I am fail to set it too. I think it is better to separate the file.encoding into two, one for accept local OS, the other for compile .java and .jsp and so on files. So we can change it and the bugs will be decrease!

Similar Messages

  • File encoding with UTF-8

    Hello all,
    My scenario is IDoc -> XI -> File (txt).
    Everything was working fine until i have to handle eastern european language with weird symbol
    So in my file adapter receiver, i'm using the file encoding code UTF-8 and when i look my field in output, everything is fine.
    BUT, when i look in binary, the length of these field is not longer fixed because a special character takes 2 bytes instead of one.
    I would like to know if it's possible to handle those characters with a file encoding code UTF-8 in a fixed length field of 40 characters for example don't want a variable length for my fields...
    Thanks by advance,
    JP

    I agree with you. In XI, i don't have this problem, i have it in my ouput file when i edit my text file in binary mode !
    My field should be on 40 characters but the special symbol which take 2 bytes instead of 1 make the length of my output fields variable !!!
    My question was to know if there is a way to have a fixed length in my output file..
    Sorry if i wasn't clear in my first post.
    JP

  • How to set File Encoding to UTF-8 On Save action in JDeveloper 11G R2?

    Hello,
    I am facing issue when I am modifying a File using JDeveloper 11G R2. JDeveloper is changing the Encoding of the File to System default Encoding (ANSI) instead of UTF-8. I have updated the Encoding to UTF-8 in "Tools | Preferences | Environment | Encoding" option and restarted the JDeveloper. I have also updated "Project Properties | Compiler | Character Encoding" option to UTF-8. None of them are working.
    I am using below version of JDeveloper,
    Oracle JDeveloper 11g Release 2 11.1.2.3.0
    Studio Edition Version 11.1.2.3.0
    Product Version: 11.1.2.3.39.62.76.1
    I created a file in UTF-8 Encoding. I opened it, do some changes and Save it.
    When I open the "Properties" tab using "Help | About" Menu, I can see that the Properties of JDeveloper are showing encoding as Cp1252. Is it related?
    Properties
    sun.jnu.encoding
    Cp1252
    file.encoding
    Cp1252
    Any idea how to make sure JDeveloper saves the File in UTF-8 always?
    - Sujay

    I have already done that. That is the first thing I did as mentioned in my Thread. I have also added below 2 options in jdev.conf and restarted JDeveloper, but that also did not work.
    AddVMOption -Dfile.encoding=UTF-8
    AddVMOption -Dsun.jnu.encoding=UTF-8
    - Sujay

  • How to set the file.encoding in jvm?

    I have some error in showing Chinese by used servlet,
    some one tole me that I can change the file.encoding in jvm to zh_CN, how can I do that?

    Add the java argument in your servlet engine.
    e.g
    java -Dfile.encoding=ISO8859-1
    garycafe

  • Illustrator CS4 problem loading: unable to set max files...

    Haven't opened AI CS4 in a few months. Used to load just fine. Today it crashes when loading and I get this error message: 'Unable to set maximum number of files to be opened.' I'm running OS 10.4.11 on a MacBook. The rest of the CS4 suite opens just fine. I have already removed the preference file for Illustrator out of the user library and also removed the 'com.adobe.illustrator.plist' file. Restarted computer. Still can't open the program.

    Check here esp post 27
    http://forums.adobe.com/message/2560663#2560663

  • CSV file encoded as UTF - 8 loses characters when displayed with excel 2010

    Hello everybody,
    I have adapted a customer report to be able to send certain data via mail a a CSV attachment.
    For that purpose I am using class cl_bcs.
    Everything goes fine, but since mail attachment contains certain german characters as Ü, when displaying it with excel those characters appear as corrupted.
    It seems the problem is with excel, because when opening the same file with notepad, the Ü is there. If I import the file to excel with the importer, it is correct too.
    Anyway, is there any solution to this problem?
    I have tried concatenating byte_order_mark_utf8 in the beginning of the file, but still excel does not recognize it.
    Thanks in advance,
    Pablo.
    Edited by: katathema on Jan 31, 2012 2:05 PM

    - Does ms excell actually support UTF-8
    Yes. I believed that we installed some international add-on which is not in default installnation. Anyway, other UTF-8 or UTF-16 file can be openned and viewed by Excel without any problem.
    - have you verifide that the file is viewable as a UTF-8 -encoded file
    I think so. If I open it into Notepad and choose "save as", the file type if UTF-8 file
    - Try opening the file in a program you are confident
    that it support UTF-8 - eg. Mozilla...
    I will try that.
    - Check that your UTF-8 -encoded file has a UTF-8 identifier (0xFEFF ?)
    as the first character
    The unicode-16(LE or BE) file I got from internet, I found there is always two bytes in the front. (0xFEFF or 0xFFFE). My UTF-8 file generated by java doesn't have that. But should UTF-8 file also has this kind of specifcal bytes in the front? If I manually add these bytes in the front of my file using Ultraeditor and open it in Excel2000, it didn't help.
    - Try using another spreadsheet program that supports UTF-8
    Do you know any other spreadsheet program supports csv file and UTF-8.

  • Shape file encode in UTF-8

    hi all,
    I am interested to import shape file which is encode in UTF-8. When i import shape file with the help of map builder, i lost my Unicode character.
    NLS_NCHAR_CHARACTERSET value of my data base is AL16UTF16
    Any suggestion how i can import these Unicode code characters.

    If your CSV API offers the option of saving as UTF-8 (and it should), that would be the best way to go. Otherwise, you can use InputStreamReader and OutputStreamWriter to convert the file.

  • Oracle 9i +Java: Change string encoding from UTF-16 to Windows-1251

    Dear colleagues,
    I have a very urgent case: need to change encoding of the string retrieved from the file (with encoding UTF-16) to Windows-1251 and put it to db table, to CLOB field.
    Code of the Java function
    +public static void file2table(String sql, String fileName, String characterSet, int asByteArray) throws SQLException, IOException {+
    Connection con = null;
    Writer writer = null;
    Reader reader = null;
    +try {+
    con = getConnection();
    PreparedStatement ps=con.prepareStatement(sql);
    reader = new InputStreamReader(new BufferedInputStream(new FileInputStream(new File(fileName))), characterSet);
    BufferedReader br = new BufferedReader(reader);
    String s;
    +while ((s = br.readLine()) != null) {+
    byte[] defaultBytes=s.getBytes(characterSet);
    String win1251str=new String(defaultBytes, "windows-1251");
    +if(asByteArray>0) {+
    ps.setBytes(1, defaultBytes);
    +//ps.setBytes(1, win1251str.getBytes("windows-1251"));+
    +} else {+
    ps.setString(1, s);
    +}+
    ps.executeUpdate();
    +}+
    con.commit();
    +} finally {+
    +if (reader != null) {reader.close();}+
    +if (con != null) {con.close();}+
    +}+
    +}+
    I was check, all bytes from the file received correctly. But if I put readed bytes to database table, result text in table is broken.

    >
    Yes, currently I already have filled table with all file lines in result table but with incorrect encoding
    >
    No you haven't - not using the code you posted. You can't save LOB data using only the BLOB or CLOB.
    That isn't data that you strored - it is garbage that is being stored as the LOB locator.
    I ask you why you were trying to store the data that way instead of the way the doc shows you and you said
    >
    Because var. s is type of Java String.
    For method setClob must be use type of CLOB
    >
    You are teriibly confused about LOBs. A BLOB or CLOB Java datatype is the LOB LOCATOR and doesn't contain any data.
    Yes - it is true that method setClob must be of type CLOB but that CLOB instance HAS TO BE THE LOB LOCATOR - not the data.
    You access LOB data using streams. To store LOB data you have to RETRIEVE (not send) a LOB locator from the database and then use the locator's stream to send the actual data.
    So if you are creating a new record in the table you typically do an INSERT that includes an EMPTY_LOB() and have the newly created LOB locator returned to you. Then you use that locators stream to send the actual data.
    Since you are not doing that your approach will not work.
    Here is a link to the 9i JDBC Dev Guide
    http://docs.oracle.com/cd/B10501_01/java.920/a96654.pdf
    See page 8-2 to start with
    >
    BLOB and CLOB data is
    accessed and referenced by using a locator, which is stored in the database table and
    points to the BLOB or CLOB data, which is outside the table.
    To work with LOB data, you must first obtain a LOB locator. Then you can read or
    write LOB data and perform data manipulation. The following sections also
    describe how to create and populate a LOB column in a table.
    The oracle.sql.BLOB and CLOB classes implement the java.sql.Blob and
    Clob interfaces, respectively (oracle.jdbc2.Blob and Clob interfaces under
    JDK 1.1.x). By contrast, BFILE is an Oracle extension, without a corresponding
    java.sql (or oracle.jdbc2) interface.
    Instances of these classes contain only the locators for these datatypes, not the data.
    After accessing the locators, you must perform some additional steps to access the
    data. These steps are described in "Reading and Writing BLOB and CLOB Data" on
    page 8-6 and "Reading BFILE Data" on page 8-22.
    Note: You cannot construct BLOB, CLOB, or BFILE objects in your
    JDBC application—you can only retrieve existing BLOBs, CLOBs,
    or BFILEs from the database or create them using the
    createTemporary() and empty_lob() methods.
    >
    Read the above quotes several times until you understand what they are telling you. These are the two main concepts you need to accept:
    >
    To work with LOB data, you must first obtain a LOB locator.
    You cannot construct BLOB, CLOB, or BFILE objects in your JDBC application
    >
    See the example code and description starting on page 8-11 for how to populate a LOB column in a table
    >
    Create a BLOB or CLOB column in a table with the SQL CREATE TABLE statement,
    then populate the LOB. This includes creating the LOB entry in the table, obtaining
    the LOB locator, creating a file handler for the data (if you are reading the data from
    a file), and then copying the data into the LOB.
    >
    Until you start using the proper methodology you are just wasting you time and will not be successful.

  • I'm unable to set my files to "Locked"

    How can I change a file so that it is locked?  I'm the only user on this computer.
    My profile is set to read/write on the file I'm trying to set to locked but I can only enable "stationery pad"
    can somebody give me any advice?

    Ah, OK! I've managed to recreate your problem. Here's the solution, it's a bit complex so read it through and ideally have it on screen on another computer or print it out first.
    1. Go to  > System Preferences > Users & Groups
    2. Hold down 'control' and click 'Login Options' near the bottom of the left-hand column
    3. Where it says 'Network Account Server' in the main window, click 'Join'.
    4. Ignore the input box in the pop-up dialogue, but click the button bottom-left that says ''Open Directory Utility...'
    5. Click the padlock at the bottom of the new box and enter your admin password.
    6. Go up to the 'Directory Utility' menubar at the top, and choose the menu Edit > Enable Root User
    7. Type in the same password that you use for your admin accont and press 'return'
    8. Go  > Log out (your user name)...
    9. In the login window, type 'root' for the user, and your admin password for the password.
    10. In the new desktop that appears, navigate to the file you want to lock. Do 'get info' and you'll NOW see that you can lock it!
    11. After locking the file, go  > log out (root user) and re-login in your usual account.
    Job done!

  • Unable to set JNLP file more specifically then version 1.6+ for JavaFX

    The jnlp files produced for my JavaFX by NetBeans or the Eclipse plugin have <j2se version="1.5+"/>. When I launch my JavaFX applet from a page in my web-app, on machines with versions of java prior to ~1.6.0_14 the applet doesn't display. To try to force a Java update, I've been experimenting with the j2se version entry. I've got 1.6.0_16 on my development machine, and tried <j2se version="1.6.0_16+"/> and <j2se version="1.6.0.16+"/> to test out the jnlp. I expected that the applet would launch on my development machine, but the instead the java console stated that the version doesn't exist and the applet didn't display. I tried <j2se version="1.6.0_14+"/>, and I was warned that installing 1.6.0_14 would be a downgrade; I expected that my later version of java would pass the test and simply run the applet. What should I be using for the jnlp j2se version value to run properly such that a proper java update dialog is presented when necessary, and the applet just runs when the machine has a proper version of java installed?

    Hi,
    Try these 3 solutions
    1. Did you start vncserver services as:
    service vncserver start
    2.Check that port 5901 has not been blocked by a firewall:
    # nc -vz localhost 5901
    You should get a connection and a termination. If you get an error, fix the firewall.
    3. service iptables stop
    Hope This Helps
    Regards,
    -DK

  • Unable to open Office files on SharePoint 2010 sites on Windows Server 2008 R2

    Setup: Windows SharePoint Server 2010 sp1 on Windows Server 2008 R2 (hosted on VMWare VSphere ESXi 5.1)
    Secured using Domain SSL from GlobalSign.
    Client OS: Windows 7 Professional 32bit & Windows XP SP3 32 bit
    Browsers: IE10, IE9,IE8
    Office: Office 2010, Office 2010 sp2 (both 32bit), Office 2007
    Problem Description: Only recently, users started having issues with opening Office files (Word, Excel) on SharePoint sites. When you click on an Office file e.g. Word Document, it comes up with the option to select "Ready only" or "Edit"
    and choosing either options and re-entering the login credentials results in the
    application hanging. If you leave it for a while (about 5 minutes) sometimes the file opens and other times it gives the error "Could not open https://portal.com/XXX/XXX/Document.docx". Even when it opens, it's extremely
    sluggish and can't do anything other than end it via Task Manager. Same with excel files. 
    This happens to all the users all different OS and browsers.
    On XP Pro SP3 w/ IE8, when you click on the file, the login prompt keeps popping back up repeatedly and if you click cancel, the file loads up anyway but no way of saving back onto the SharePoint site.
    IMPORTANT: One exception is when logged in as a Site Collection Administrator, it
    works like a dream bizarrely!!!! Opens, Edits and saves back fine on the SharePoint site.
    Have tried following:
    1. Repaired Office 2010 Pro; Uninstalled/Re-installed Office 2010 Pro
    2. Reset Browser, unticked automatically detect proxy settings.
    3. Emptied OfficeOfflineCache on Client
    4. Removed WebDAV from the SharePoint server
    5. Added Antivirus folder exclusion (We use SEP 11) on the SharePoint Server
    Note: PDF files opens fine for all users.
    I would immensely appreciate if anybody has got any advice/pointers/suggestions. Desperately out of ideas at the moment.
    regards,
    Compter Sez No!

    Hi,
    According to your description, When you try to open a Microsoft Office document from a SharePoint 2010 site in a client application, the document opens slowly and you are prompted to enter your credentials multiple times.
    This issue may be because of SharePoint Web Front End (WFE) server(s) has Antivirus software installed and the exceptions are not set correctly.
    I recommend to remove the antivirus software or set the correct permissions for the antivirus software to resolve the issue.
    To configure the antivirus exceptions, please follow the guidelines in the below articles:
    KB943620:
    Folders to exclude when you perform a file-level antivirus scan on a server operating system.
    KB952167:
    Certain folders may have to be excluded from antivirus scanning when you use a file-level antivirus program in SharePoint.
    KB943556:
    Recommended file and folder exclusions for Microsoft Forefront Client Security or Forefront Endpoint Protection 2010.
    Best regards.
    Thanks

  • Unable to print to file in adobe acrobat 9 pro, windows 7 OS

    ok, so i've been having this problem since 16/1/2012. I download a pdf file from online, open it and attempted to combine multiple slides into 1 slide like below:
    my printer cannot print duplex so i have to combine multiple slides to 1 in order to print that way. anyways, i always select the option of "Adobe PDF" under the "Printer" box. I don't change anything else. I am then prompted to save the file as below:
    so after that i click "Save" and they gave me this warning message.
    in case you cannot see what's written in the dialogue box, here's what it says:
    When you create a PostScript file, you must rely on system fonts and use document fonts.
    Please go to printer properties, "Adobe PDF Settings" page and turn OFF the option "Rely on system fonts only; do not use document fonts."
    I click "Ok" and another message appears:
    I click "OK" and then another message appears:
    So i clicked "OK" again and then nothing happens. After I followed the instructions to rely on system fonts, I tried doing it agian and everything seems ok. Flattening document etc like below:
    and when it has finished, nothing happens. No new pdf window pops up (like what it usually does). So I went to check the folder where I stored the file. This was what i saw:
    it turns out the file I just saved have no Adobe pdf icon appearing next to it. Instead, its document type is merely "File". When I tried opening it with Adobe reader, I got another dialogue box as below:
    The dialogue box's text is as follows:
    Acrobat could not open [file name] because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF.
    I do not know why the file is supposedly corrupted because it works well on other computers and it can be printed as well. Does anyone know how I can solve this problem? It's really urgent and I desperately need to print my PDF files for my lessons and exams (I'm a student). It was uploaded on my school's website and PDF is the only available format. This is the first time it has happened and I am getting really frustrated. And it is not only for this 1 file. Since the 16th, EVERY pdf file i've opened has encountered this problem. Which is why I need to know how to solve this. Thank you in advance.
    Would appreciate it if someone can help answer this question. Admins or otherwise.
    Additional info: Laptop is Toshiba Portege m900. Windows 7 OS.32-bit operating system. Singapore-based.

    Dear user,
    You are getting such output because you have checked ON the setting 'Print to file' in one of your previous prints. For resolving this issue, kindly uncheck option 'Print to file' present in bottom left corner of print dialog and then click on 'Print' (See attached image for reference).
    Hope this will solve your problem.
    Thanks
    sonal

  • How to set the system default file character encoding to UTF-8?

    Hi all. This is driving me nuts, on both my Windows box and Snow Leopard; I figure much more chance of finding the answer for OS X.
    My language and locale are set to Australian English. $LANG=en_AU.UTF-8
    However, as I believe is expected, OS X (and Windows for that matter) will create files by default with character encoding of Cp1252 (Latin-1). That is, the FILE encoding in the file metadata - the Byte Order Mark I believe. The file itself, not the characters written to it.
    This, in a word, bites. I don't want to be restricted to only ASCII by default, and it is causing me problems with certain software (a Firefox plugin) that creates text files, passing in UTF-8 encoded content, which is then mangled because the file encoding itself is still Cp1252. (I know, I've tested this by changing the file encoding manually and having it overwritten again by the plugin: works correctly.)
    As a simple example, just `touch somefile` from terminal creates a file in Cp1252 -- I'm obtaining that info by opening in jEdit by the way (anyone know of something better?).
    In other locales that are not English-based, I believe the default file encoding is UTF-8. But surely this can be controlled independently? There must be a system configuration value somewhere that specifies file encoding default. Can someone please tell me what it is?
    Thanks!

    However, as I believe is expected, OS X (and Windows for that matter) will create files by default with character encoding of Cp1252 (Latin-1). That is, the FILE encoding in the file metadata - the Byte Order Mark I believe. The file itself, not the characters written to it.
    Apps like TextEdit and Mail have settings that let you determine the encoding of text produced. The default would normally depend on the character content of the file, ranging from ASCII for basic English to Windows Latin-1 (Win 1252) or ISO Latin -1 (ISO 8859-1) to UTF-8 for other content.
    Win 1252 is not ASCII, but has twice the number of characters in the latter.
    Byte Order Mark is something totally different --it's a particular character used to signal certain encodings.
    http://en.wikipedia.org/wiki/Byteordermark
    As a simple example, just `touch somefile` from terminal creates a file in Cp1252 -- I'm obtaining that info by opening in jEdit by the way (anyone know of something better?).
    For what Terminal does and how to change it, it might best to post in the Unix forum:
    http://discussions.apple.com/forum.jspa?forumID=735
    For problems with a FireFox plugin, it might be good to ask on their own forums as well.

  • Why did TB set the char encoding for a reply to charset=UTF-16LE ?

    I got a message from Google AdWords in HTML format and wrote a reply. When I sent it I got a timeout trying to send it. I use AVG antivirus to scan outgoing messages using a "local server" at address 127.0.0.1.
    Note that this was my second reply to such a message from AdWords. The only thing I could see that was different was a longer subject line (ending with three periods or dots) and a longer HTML message to which I was replying.
    I tried many things to fix the problem and I cannot remember them, sorry.
    Finally, I got success after truncating the message and the long subject line. The reply was sent instantly, as usual, instead of timing out.
    But it wasn't really success. When I looked at the sent message, the characters in my reply (only) were in Chinese. Looking at the raw (source) message, I see that the charset was set as follows: Content-Type: text/plain; charset=UTF-16LE; format=flowed .
    This seems like a strange charset; nowhere in my settings do I specify anything other than Western (ISO-8859-1).
    I finally was able to send the message successfully (I think) by using Options > Character Encoding > Western (ISO-8859-1), which seems to force the message to be sent using this standard encoding instead of Little Endian.
    What caused this problem to happen? Is there a TB overflow bug for long subject lines?
    I realize that TB is an old and unsupported product, but it seems to be the only good email client to use with Windows 8, so I'm just hoping someone knows something about this.

    Originally posted by: warren.tang.nospam.com
    Warren Tang wrote:
    > Warren Tang wrote:
    >> Warren Tang wrote:
    >>> Hi everybody,
    >>>
    >>> I've been trying to set the default encoding of new files as UTF-8.
    >>> Here are the two settings I've set:
    >>>
    >>> 1. Windows > Preferences > General > Content Types, set UTF-8 as the
    >>> default encoding for all content types.
    >>> 2. Windows > Preferences > General > Workspaces, set "Text file
    >>> encoding" to "Other : UTF-8".
    >>>
    >>> However when I create a new text file, the encoding is always
    >>> ANSI/ISO-8859-1. What did I missed? Thanks.
    >>>
    >>> Regards,
    >>> Warren
    >>
    >> I've also tried
    >> Project Properties > Resource > Text file encoding = UTF-8
    >> However it doesn't work either.
    >>
    >> The only thing that works is changing the file's encoding property,
    >> but I don't want to change it every time I create a new file.
    >>
    >> Is it a bug?
    >
    > It turns out that there are other places I need to set up for HTML and
    > CSS files:
    >
    > Windows > Preferences > Web > CSS Files > Encoding = UTF-8
    > Windows > Preferences > Web > HTML Files > Encoding = UTF-8
    I'm getting mad... The file (on the disk) is still not encoded in UTF-8
    but ANSI.

  • Unable to set Default charset to UTF-8

    So I've added the following to /etc/httpd/conf/httpd.conf:
    AddDefaultCharset utf-8
    Still firefox reports that my phpfiles are using ISO-8859-1 even though defaulcharset and the files encoding is utf-8.
    What am I doing wrong? I converted the file to UTF-8 with notepad++.
    Problem is that Å Ä Ö don't work properly. They never work when echoed from mysql.
    Last edited by XAM (2010-07-02 11:49:19)

    Banton wrote:Have you set <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in html header?
    Yes, but I've created a phpfile with the following code, nothing else is in the file.
    <?php echo'Å Ä Ö'; ?>
    Does not work, it echoes out wierd characters.
    karol wrote:> They never work when echoed from mysql.
    Are the files generated dynamically? If so, you should check the mysql part.
    mysql is set to utf-8.

Maybe you are looking for

  • Voice messages not working on iOS8 on iphone 5s

    Hi, I upgraded my ipad mini (1) and my iphone 5S to ios8. All seemed to go fine. My 5S has definitely upgraded... but while I see a microphone to the right of the sendbar on my ipad, I don't see something comparable on my 5S. Is that an iphone 6 only

  • I need help with my setup Please !!! 2800+ athlon xp

    hi all .......... great forum here.....!!! I am having probs with my new setup and I am at a wits end of what to do so i'll explain my problem. I have just bought a AMD athlon 2800+ cpu for my mobo (KT3 ultra 6830e v.1.0) and I am unable to run the c

  • How to change the direction of text writing: item is top to bottem

    hi, i will make a notepad. and i will make its text's direction: item is top to bottem and line is left to right. i cant do this, please help me!

  • File Adapter Monitoring

    Hi- I am using a file adapter to send a file to a directory on system "ZED". My XI application is residing on a system called "EX". The system "ZED" is actually mapped onto system "EX", So all the directories on system "ZED" are available to system "

  • Different Batch no of same material kept in same Bin

    Dear Gurus, my putaway strategy I and capacity check method 3 and addition stock x and want mixed storage with  one material number with different batch no placed in same Bin but iam getting error "Mixed storage C only allowed in block storage manage