Flex, BlazeDS, Java Russian symbols

Hi, Everyone.
I have a little problem. If I have a flex application working under Windows and server working under Linux.
I'm typing string in russian, but on the server i have only "?????". Server and Flex compiled in UTF-8.
How can I fix this problem?
Alexey.

Have you checked Tomcat configuration? digg into that direction

Similar Messages

  • Flex - BlazeDS - Java: int are set to 0 when they should be kept to NULL.

    Hi everyone, I'm having an issue with Flex -> BlazeDS -> Java.
    When I pass an object to Java through BlazeDS, my variables of type int are automatically set to 0 if they are NULL or NAN. Is there a way to keep them as NULL ?
    Thanks everyone.

    Please refer to --
    https://bugs.adobe.com/jira/browse/BLZ-305

  • Flex + BlazeDS + Java (works only on localhost)

    Hi!
    I'm new in Flex so I have very incomplete knowledge in many issues. I usually use Java to write applications but now, I need to connect Java with Flex. I read some articles and tutorials about integration using BlazeDS but I still have problem. I made a simple web app and it works, but only on localhost. If I upload my app on server it works but I can't call Java methods.
    Applicaton copy text from TextInput to Label when user press Button.
    Below I add content of some files (remote-config.xml, services-config.xml, web.xml and flex main MXML file)
    remote-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
        class="flex.messaging.services.RemotingService">
        <adapters>
            <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
        </adapters>
        <default-channels>
            <channel ref="my-amf"/>
        </default-channels>
    </service>
    services-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service-include file-path="remoting-config.xml" />      
        </services>
        <channels>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    flex-servlet.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:flex="http://www.springframework.org/schema/flex"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://www.springframework.org/schema/flex
            http://www.springframework.org/schema/flex/spring-flex-1.0.xsd
             http://www.springframework.org/schema/context
             http://www.springframework.org/schema/context/spring-context-3.0.xsd">
        <flex:message-broker>
            <flex:remoting-service default-channels="my-amf"/>
        </flex:message-broker>
        <context:annotation-config />
        <context:component-scan base-package="blah" />
    </beans>
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <display-name>BlazeDS Spring Integration Application</display-name>
        <description>BlazeDS Spring Integration Application</description>
        <servlet>
            <servlet-name>flex</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>RDSDispatchServlet</servlet-name>
            <display-name>RDSDispatchServlet</display-name>
            <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
            <init-param>
                <param-name>useAppserverSecurity</param-name>
                <param-value>false</param-value>
            </init-param>
            <init-param>
                <param-name>messageBrokerId</param-name>
                <param-value>_messageBroker</param-value>
            </init-param>
            <load-on-startup>10</load-on-startup>
        </servlet>
        <servlet-mapping id="RDS_DISPATCH_MAPPING">
            <servlet-name>RDSDispatchServlet</servlet-name>
            <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>flex</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
         </servlet-mapping>
    </web-app>
    FooProject.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:services="services.*">
        <fx:Declarations>
            <s:CallResponder id="sayHelloResult"/>
            <services:FooService id="fooService">
                <services:channelSet>
                    <s:ChannelSet>
                        <s:AMFChannel uri="http://mctg.yoyo.pl/WebContent/messagebroker/amf"/>
                    </s:ChannelSet>
                </services:channelSet>
            </services:FooService>
        </fx:Declarations>
        <s:TextInput id="ti" x="10" y="13"/>
        <s:Label x="10" y="43" text="{sayHelloResult.lastResult}"/>
        <s:Button x="146" y="14" label="Send" click="sayHelloResult.token = fooService.sayHello(ti.text)"/>
    </s:Application>
    The problem is in my opinion in the line wchich is bold. If I change it to <s:AMFChannel uri="http://localhost:8080/WebContent/messagebroker/amf"/> and run on localhost everything is fine. If I upload app on server and call Java method I can only wait for response but I never will get it.
    I realize that similar threads are currently on this forum. I read a few o them but finally I haven't solved my problem yet. I would be grateful for any help.

    Hi ,
    Please check the imapproxy component is in active or inactive state by using the below mentioned command.
    Get-ServerComponentState -identity "servername"
    If it is inactive in state please make it as active.
    Set-ServerComponentState -Identity "server name" -Component imapProxy -Requester HealthAPI -State Active
    Thanks & Regards S.Nithyanandham

  • FLEX+CAIRNGORM+BLAZEDS+JAVA+DATABASE

    A very simple example for FLEX+CAIRNGORM+BLAZEDS+JAVA+DATABASE.
    http://vijaaay.limewebs.com/forum/viewthread.php?tid=26&extra=page%3D1
    or
    visit  www . flexindia . tk >> Flex Examples
    The attachment zip contains the source  files[ FLEX and JAVA ] and Readme.txt which helps you to setup this  example.
    Regards,
    Vijay

    Yeah i registered, but i couldn't find zip file. Could you please tell me where is that example
    Thanks,
    ApacheFlex.

  • Problem in RPC call (flex,blazeds,spring,H2,tomcat,eclipse)

    Hi, I've problem displaying value from backend onto the flex UI. I'm using Flex,BlazeDS, Spring, H2 in my applicaiton (testdrive app).  
    I've basically added another flex project to the testdrive app i downloaded. everything is working fine except the intended rpc invoke. 
    pls find the code snippets for the related change below :  
    1. FlexHelloWorld.mxml 
    private function resultHandler(event:ResultEvent):void 
    //used for debugging - shows details about result 
    //returned by the Java class method 
    Alert.show("success... in flex"); 
    Alert.show( ObjectUtil.toString(event.result) ); 
    <mx:RemoteObject id="ro" destination="helloServiceDestination" result="resultHandler(event)" fault="faultHandler(event)"/> 
    <mx:Panel x="25" y="10" width="653" height="407" layout="vertical" title="Test Flex 3 Using Java" borderColor="#008040" fontFamily="Arial" fontWeight="bold" fontSize="13"> 
    <mx:Text text="Click The Button To Test Getting Data Into Flex From A Java Class" fontWeight="bold" width="250"/> 
      <mx:Button label="Get Hello World Mesg From Java!" click="ro.getHelloWorld()"/> 
    </mx:Panel> 
    2. remoting-config.xml in flex 
    <destination id="helloServiceDestination" channels="my-amf"> 
         <properties> 
             <source>org.springframework.flex.samples.example.HelloWorld</source> 
         </properties> 
      </destination> 
    3. flex-servlet.xml in spring 
    <flex:remoting-destination ref="helloServiceDestination" /> 
    4. app-config.xml in spring 
    <bean id="helloServiceDestination" class="org.springframework.flex.samples.example.HelloWorld">   
      </bean> 
    5. HelloWorld.java 
    package org.springframework.flex.samples.example; 
      * TODO Document HelloWorld 
      * <p /> 
      * @author Vinod.Jayakumar 
    public class HelloWorld { 
    public String getHelloWorld(){ 
         return "HelloFromJava"; 
    expected result : http://localhost:1977/testdrive/FlexHelloWorld.html on click of button in the screen a alert message "HelloFromJava" should be shown but i get the following error message :  
    (mx.rpc::Fault)#0 
       content = (null) 
       errorID = 0 
       faultCode = "InvokeFailed" 
       faultDetail = "Couldn't establish a connection to 'helloServiceDestination'" 
       faultString = "[MessagingError message='Destination 'helloServiceDestination' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" 
       message = "faultCode:InvokeFailed faultString:'[MessagingError message='Destination 'helloServiceDestination' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']' faultDetail:'Couldn't establish a connection to 'helloServiceDestination''" 
       name = "Error" 
       rootCause = (null) 
    Request you all to provide your valuable inputs. I know there's really something silly which has gone wrong

    Hi jvk180:
    Firstly, you should either need to define the destination in remoting-config.xml or in app-context.xml, but and in both places.
    Secondly, the error indicates that it is missing the channel information.
    Option 1:
    Assuming your bean "helloServiceDestination" uses other Spring beans, then:
    1. The right place to declare the destinations is in app-context.xml.
    2. In that case, you need to also define the channels that the destination will be exposed over. See documentation for how to do that.
    3. In your remote object declaration, you need to pass the channel set that gets used as well.
    <mx:ChannelSet id="cs">
       <mx:AMFChannel url="http://<yourServerName>:<yourServerPort>:/<yourContextRoot>/messagebroker/amf"/>
    </mx:ChannelSet>
    <mx:RemoteObject id="ro" destination="helloServiceDestination" channelset="{cs}" result="resultHandler(event)" fault="faultHandler(event)"/>
    Option 2:
    If you declare your destination, in remoting-config.xml, then you need to compile your swf with services-config.xml. Refer to documentation for how to do that.
    Hope that helps.
    Rohit

  • BlazeDS Java Client + Android

    Has anyone gotten the BlazeDS Java Client running on an android device? I have a amfphp server that I want to talk to from my android app. But I'm getting errors linking the jar files to my project.
    The 2 errors when I import the flex-messaging jar files are below:
    [2010-01-07 12:14:45 - test1]warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)
    [2010-01-07 12:14:45 - test1]Error generating final archive: duplicate entry: flex/messaging/version.properties
    Thanks
    Phil

    Hi. This looks like an Android issue. I found a couple people with issues that sounded similar to this and they were all trying to build Android apps. Here is one such posting. . .
    http://www.mail-archive.com/[email protected]/msg11579.html//www.mail-archive.com/[email protected]/msg11579.html
    Unfortunately, I didn't see anyone offering a good solution to this problem.
    I still think removing all but one of the version.properties files from the BlazeDS modules/jars will workaround this problem.
    Since you are new to BlazeDS and Java, it might be easier for you to just modify the BlazeDS jars directly rather than rebuilding from source. You can try opening the .jar files in a archiving/extraction tool such a WinZip and removing/deleting the version.properties files from the jars.
    Try that and see if that error you are getting goes away.
    Hope that helps.
    -Alex

  • Flex + BlazeDS

    Hello, friends!
    I'm new to both Flex and Java.
    I'm trying the most simple tutorials (
    http://www.adobe.com/devnet/livecycle/articles/blazeds_gettingstarted.html),
    and doing everything according, but I can't put the Flex working
    with the BlazeDS.
    I post my doubt on BlazeDS forum, but no one has even
    answered.
    The question is, when I run my MXML application, I can see
    through the Firebug that the 404 (not found) error occurs on "
    http://localhost:8080/myfirst/messagebroker/amf".
    Until now, I don't even know if the problem is on my MXML
    app, on my Java classes, on the config xml files or in my server.
    Does anyone know where could be the problem? Or could someone
    point out a beginners Flex + BlazeDS tutorial?
    Thank you,
    CaioToOn!

    http://localhost:8080/myfirst/messagebroker/amf
    is the servlet mapping that should be defined in web.xml
    make sure tomcat is running, blazeDS is deployed and most
    imporantly try accessing
    http://localhost:8080/myfirst/messagebroker/amf".
    with browser, if blazeDS is deployed you get blank page, if not
    than servlet and or/tomcat is not running
    based on url :
    http://localhost:8080/myfirst/messagebroker/amf".
    conclusions are following :
    you have webapplication context named "myfirst" deployed
    inside webapps directory of tomcat,
    (assuming you use tomcat).

  • Sending photo of flex to java

    I have a variable in the flex-type byte array.
    I send this variable to java through RemoteObject (BlazeDS), but do not know what type the variable should be the parameter passed to the java.
    Has anyone worked with picture between flex and java shooting in the database?

    I have a variable in the flex-type byte array.
    I send this variable to java through RemoteObject (BlazeDS), but do not know what type the variable should be the parameter passed to the java.
    Has anyone worked with picture between flex and java shooting in the database?

  • Sample application of Flex using java

    Can anybody tell or send any URL regarding sample applcation i.e.
    developed using Flex and java
    I am confused abt web.xml
    means how to integrate that flex application.

    Thx Dear,
    At least I got some reply from someone.
    Actually I m trying to search it but not getting any help.
    My prob is.
    I want to develop sample application using Flex and Spring framework.
    Let say there is form called
    Employee.mxml & there are 2 text boxes for username & password .I want to read values entered by user in these text boxes from flex form using Spring framework.
    so can u send me any URL sothat i can get help for this.
    Please help me ASAP.

  • Flex and Java on Desktop

    Hi
    We are having this requirement , we want to develop a
    application using flex for adobe AIR runtime which will communicate
    with java in the desktop, we are not having any servers here, so
    flex application want to communicate with java classes with out the
    help of any server so I can't use httpservice, webservice or
    remoting .
    I like to know the ways to communicate from flex 3.0(Adobe
    AIR) to java files (java takes care of splitting PowerPoint
    files and converting it into serious of jpeg files, and
    creating ppt files from the objects returned from flex ).
    Is there any other way to communicate form between flex and
    java in the desktop ??? please give inputs
    Thiru

    Hi,
    you could use XMLSocket or Socket classes depending on the
    type of communication you want to stablish.
    I have been testing this for a while although not for a
    project.
    However my impression is that you need to install the AIR app
    which is self-extracted and installed, but in second hand, you have
    to install the Java app, that acts as a server, and it must be
    executed every time your AIR app is, and the other way around.
    Untill now I haven't got any idea on doing this without too
    much work, but you can take a look at the Merapi project.
    Manu

  • Flex with Ruby or Flex with Java

    Hi,
    I need to use SNMP/SLP protocols in my application.
    So i have plan to develop the Applcation using Flex and Ruby or Flex and Java(HttpServices). In future the applicaiton may need enhanced.
    please any one of you help me , which one is the bset way to develop the applcation.
    Thanks,
    Ravi

    I would go with whatever backend is more familiar to the developers and to the ones who will have to updates the application.

  • Firefox 22 -30 Slowly open uploads of Shared Windows Folders with Russian symbol

    Starting with version Firefox 22-30 , slowly open uploads of Shared Windows Folders with Russian symbol. In version Firefox 20 and older, open uploads without freeze in Shared Windows Folders with Russian symbol.Win7/Xp/Vista/Win2008.
    Demonstration problem video 1. Firefox 22 Freeze open uploads of Shared Windows Folders with Russian symbol. + Process Monitor
    http://youtu.be/jXBQ6OmKyeE
    Demonstration problem video 2. Firefox 20 NO Freeze open uploads of Shared Windows Folders with Russian symbol. Firefox 30 Freeze open uploads of Shared Windows Folders with Russian symbol + Process Monitor
    http://youtu.be/DHVRjFmDa8c

    Nightly good version 2013-03-27 (No freeze)
    Nightly bad version 2013-03-28(Freeze open uploads of Shared Windows Folders with Russian symbol)
    Nihgtly bad version 2014-06-29 (Freeze open uploads of Shared Windows Folders with Russian symbol)
    http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=178a4a770bb1&tochange=962f5293f87f

  • Flex 2 / Java

    I am creating an application that will use Flex2/Data
    Services and Java/Spring. Communication will be via RPC.
    I will be using Eclipse with the Flex2 plugin.
    Should I create 2 separate projects. One for Flex and one for
    Java?
    Can the source code for the Flex part and Java part be in the
    same directory structure or should I contain each project
    separately and deploy each project separately?
    I haven't been able to find any info on this so if you can
    point me to some I would appreciate it.
    Thanks

    Hi,
    i would reccomnd using only 1 project and put all your code
    into it. You can use maven2 to build/deploy your application that
    way. Furthermore you will have all syntax highlighting available to
    you this way.
    if you are interested, you can download my (
    http://www.wowww.nl/wordpress/?p=58)
    example project. It is fully based upon a maven2 structure and
    combines the flex and java parts into 1 project.
    regards,
    Marc

  • NLS_NCHAR_CHARACTERSET=UTF8 and Russian symbols

    Hello,
    I'm developing a APEX application in our single-byte charset (Baltic BLT8MSWIN1257) database which should from now also store russian symbols. As i mentioned in subject, we have NLS_NCHAR_CHARACTERSET=UTF-8 .
    I made a table with NVARCHAR2-type field (i.e. is should now be able to store characters in UTF-8) and inserted a few russian symbols
    insert into vene_taht values (unistr('\045E'))
    insert into vene_taht values (unistr('\040F\045F'));
    In my Apache's dads.conf i have PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    I made a small report-page (in APEX) on that table, but when I execute it, it shows me "??" signs, even when I change
    PlsqlNLSLanguage AMERICAN_AMERICA.UTF8 in dads.conf, it wont matter, still "??" signs.
    Databse is 10.2.0.3, Apex is 3.0.1.00.08
    And, when I try to execute the following SQL in APEX's Sql Workshop:
    SELECT UNISTR('\0436\0416') FROM dual;
    it also returns "??" signs.
    But in other database(version 11.1.0.7) , where primary charset is AL32UTF8 and in my dads.conf i also have PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8, all works well and I see russian symbols through APEX.
    So, what and how should I do, and is it even possible to work with russian symbols in APEX, when my NLS_NCHAR_CHARACTERSET=UTF8
    Janno

    Janno,
    I fully realize that you can store essentially any character in an NVARCHAR2, regardless of underlying database character set. But due to the architecture of mod_plsql and the PL/SQL Web Toolkit, the NVARCHAR2 will be converted to a VARCHAR2 at the time of writing to the output OWA buffer. And it is during this conversion that your characters are being corrupted.
    You need to use a database character set which can natively store these characters in a VARCHAR2.
    Joel

  • [svn] 1376: eclipse projects: added a flex-flextasks Java project

    Revision: 1376
    Author: [email protected]
    Date: 2008-04-23 17:22:58 -0700 (Wed, 23 Apr 2008)
    Log Message:
    eclipse projects: added a flex-flextasks Java project
    * If you are going to work on flex-flextasks, you need an additional Classpath variable: ANT17_JAR which should point to an appropriate ant.jar on your system (since we don't keep an ant.jar checked into lib).
    Modified Paths:
    flex/sdk/trunk/development/eclipse/readme.txt
    Added Paths:
    flex/sdk/trunk/development/eclipse/java/flex-flextasks/
    flex/sdk/trunk/development/eclipse/java/flex-flextasks/.classpath
    flex/sdk/trunk/development/eclipse/java/flex-flextasks/.project

    Hi Yair
    It appears that WLS only supports mapping a directory to a jar in APP-INF/lib/
    C\:/runtime-New_configuration/Common/bin = APP-INF/lib/Common.jar
    but NOT to a jar in WEB-INF/lib.
    Engineering will look into it sometime to fix it.
    Workaround Suggested:
    As a workaround, you can include the Java/Utility project as part of the EAR and set as dependent J2EE module to the Web project.
    Hope this helps.
    Vimala-

Maybe you are looking for

  • How can I export photos from iPad Air to PC?

    I purchased the iPad especially for a 3 month holiday to Europe rather than carry about a heavier and more valuable laptop PC. I used the iPad to store my 25000 plus photos (taken on a Nikon camera and imported via an SD card reader) from the holiday

  • PO Output For communication does not Show 'Purchase Order Layout' parameter

    Hi, I am working on Implementing PO PDF with XML data and RTF Template. I have created a new template in XML Publisher and followed the following set up steps Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF' s

  • Problem with JavaMail: don't work after I made it a jar

    Hi, My program works fine if I use -classpath to mail.jar and activation.jar but when I jar it i get: javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.MessagingException: IOException while sending message; nested

  • I have an older 30 gb classic ipod.Can the 3.5mm"jack" be replaced inside?

    I have an older 30gb classic ipod. Can the "jack" sleeve inside be replaced or fixed? the prong connection inside has broke off and you need to push the jack to one side to get both sides of the earbuds to work. Thanks

  • ARD sees remote computer but won't connect

    I previously used ARD 2 to connect to my Mom's Mac and all worked well. She recently had to replace her router due to a bad power supply and during that time frame I also upgraded to ARD 3. Ever since I have been unable to gain access to her computer