7 Replies Latest reply on Jun 8, 2006 3:28 AM by Ritchie Koh

    Support for Internationalization

    Ritchie Koh Newbie

      Dear.

      I'm learning the Seam Framework following example.
      There is an error doing remote/helloworld example.

      When returning the I18N characters, the characters is broken.
      When the server send the I18N characters to client(browser) , how should I configure to get the normal characters.

      Regards.

      # Ritchie

        • 1. Re: Support for Internationalization
          Gavin King Master

          I guess this is a JSF question, not related to Seam.

          • 2. Re: Support for Internationalization
            Shane Bryzak Master

            I'm guessing that its something to do with how I'm encoding string values for transport (they're URL-encoded). I haven't tested this with anything other than ASCII characters but as far as I understand anything should work. Anyway I'll try it tonight with Russian characters and see how far I get.

            • 3. Re: Support for Internationalization
              Shane Bryzak Master

              I didn't get very far. Anyway, I've checked in some changes to CVS which should improve how international characters are handled. I'd be great if you could give this a try and let me know if it works for you.

              • 4. Re: Support for Internationalization
                Gavin King Master

                 

                "gavin.king@jboss.com" wrote:
                I guess this is a JSF question, not related to Seam.


                Oops, I did not see the bit about it being Seam Remoting...

                • 5. Re: Support for Internationalization
                  Ritchie Koh Newbie

                   

                  "sbryzak2" wrote:
                  I didn't get very far. Anyway, I've checked in some changes to CVS which should improve how international characters are handled. I'd be great if you could give this a try and let me know if it works for you.


                  There is an error running the remote/seam-hello example as below
                  When request is occurred, there is an error occurred.
                  =============================
                  2006-06-08 12:36:10,343 ERROR [org.jboss.seam.remoting.ExecutionHandler] Error during remote request
                  java.lang.reflect.InvocationTargetException
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.seam.remoting.Call.execute(Call.java:121)
                  at org.jboss.seam.remoting.ExecutionHandler.handle(ExecutionHandler.java:92)
                  at org.jboss.seam.remoting.SeamRemotingServlet.doPost(SeamRemotingServlet.java:56)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                  at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                  at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
                  at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
                  at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
                  at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
                  at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
                  at $Proxy62.sayHello(Unknown Source)
                  ... 27 more
                  Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
                  at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:128)
                  at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                  at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                  at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                  ... 42 more
                  Caused by: java.lang.NoSuchMethodError: javax.interceptor.InvocationContext.getTarget()Ljava/lang/Object;
                  at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:38)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                  ... 49 more
                  2006-06-08 12:36:10,375 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts

                  =================================

                  Can I configure the encoding or character set when calling remoting request?

                  # Ritchie

                  • 6. Re: Support for Internationalization
                    Gavin King Master

                    You must install EJB3 RC8 into JBoss.

                    • 7. Re: Support for Internationalization
                      Ritchie Koh Newbie

                      Thanks a lot. Gavin and sbryzak2.

                      It works and run very well with I18N.

                      Have a nice day!!

                      # Ritchie