Create plugin / component fails with could not find resource bundle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Create plugin / component fails with could not find resource bundle

Robert Wynkoop
I created a test plugin / component.  Without making any changes when I
tried to access it and get a resource bundle error.

The log says: Invalid byte 3 of 3-byte UTF-8 sequence.

Running release 18 branch.

If I delete the non EN lines from the message file, it works.

Local Dev environment is: Java 1.8 u231, Netbeans 8.2(for now)

--
Robert Wynkoop
Reply | Threaded
Open this post in threaded view
|

Re: Create plugin / component fails with could not find resource bundle

Jacques Le Roux
Administrator
Hi Robert,

What do you call "EN lines" and what is your "message file"

Thanks

Jacques

Le 03/11/2019 à 03:39, Robert Wynkoop a écrit :

> I created a test plugin / component.  Without making any changes when I
> tried to access it and get a resource bundle error.
>
> The log says: Invalid byte 3 of 3-byte UTF-8 sequence.
>
> Running release 18 branch.
>
> If I delete the non EN lines from the message file, it works.
>
> Local Dev environment is: Java 1.8 u231, Netbeans 8.2(for now)
>
Reply | Threaded
Open this post in threaded view
|

Re: Create plugin / component fails with could not find resource bundle

Robert Wynkoop
I created a plugin/component called "helloWorld".

The following message file was created(attached to this message):
ofbiz\ofbiz-framework\plugins\helloWorld\config/HelloWorldUiLabels.xml

In the generated labels file, my system only likes the lang="en" lines.
       <value xml:lang="en">HelloWorld Application</value>
        <value xml:lang="zh">HelloWorld应用程åº?</value>
        <value xml:lang="zh-TW">HelloWorld應用程å¼?</value>

I had this same problem when playing/testing with V16 also.  V16 was done on Java 8 u32, V18 was done on Java 8 u231.

Could be a issue on my windows(8.1) system?  If I need too, I could try this on a Fedora 29 box.

Thought this might be a simple know issue, possibly a config issue on my end.

Robert Wynkoop

On Sun, Nov 3, 2019 at 3:18 AM Jacques Le Roux <[hidden email]> wrote:
Hi Robert,

What do you call "EN lines" and what is your "message file"

Thanks

Jacques

Le 03/11/2019 à 03:39, Robert Wynkoop a écrit :
> I created a test plugin / component.  Without making any changes when I
> tried to access it and get a resource bundle error.
>
> The log says: Invalid byte 3 of 3-byte UTF-8 sequence.
>
> Running release 18 branch.
>
> If I delete the non EN lines from the message file, it works.
>
> Local Dev environment is: Java 1.8 u231, Netbeans 8.2(for now)
>


--
Robert Wynkoop
Google Voice: <a href="tel:314-380-0046" value="+13143800046" target="_blank">314-380-0046
Cell: 314-606-3079
Home: 314-846-7638

2904 Woodbridge Estates Dr.
Saint Louis, MO 63129

HelloWorldUiLabels - Copy.xml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Create plugin / component fails with could not find resource bundle

Jacques Le Roux
Administrator
Yes, it's a Windows encoding issue.

In such case I use the Scite editor which has a convenient Encoding option in File menu. Most of the time encoding to UTF-8 with BOM works.

It exist also in Notepad++: https://community.notepad-plus-plus.org/topic/14355/encoding-without-bom-where/2

HTH

Jacques


Le 04/11/2019 à 14:37, Robert Wynkoop a écrit :

> I created a plugin/component called "helloWorld".
>
> The following message file was created(attached to this message):
> ofbiz\ofbiz-framework\plugins\helloWorld\config/HelloWorldUiLabels.xml
>
> In the generated labels file, my system only likes the lang="en" lines.
>        <value xml:lang="en">HelloWorld Application</value>
>         <value xml:lang="zh">HelloWorld应用程åº?</value>
>         <value xml:lang="zh-TW">HelloWorld應用程å¼?</value>
>
> I had this same problem when playing/testing with V16 also.  V16 was done on Java 8 u32, V18 was done on Java 8 u231.
>
> Could be a issue on my windows(8.1) system?  If I need too, I could try this on a Fedora 29 box.
>
> Thought this might be a simple know issue, possibly a config issue on my end.
>
> Robert Wynkoop
>
> On Sun, Nov 3, 2019 at 3:18 AM Jacques Le Roux <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Robert,
>
>     What do you call "EN lines" and what is your "message file"
>
>     Thanks
>
>     Jacques
>
>     Le 03/11/2019 à 03:39, Robert Wynkoop a écrit :
>     > I created a test plugin / component.  Without making any changes when I
>     > tried to access it and get a resource bundle error.
>     >
>     > The log says: Invalid byte 3 of 3-byte UTF-8 sequence.
>     >
>     > Running release 18 branch.
>     >
>     > If I delete the non EN lines from the message file, it works.
>     >
>     > Local Dev environment is: Java 1.8 u231, Netbeans 8.2(for now)
>     >
>
>
>
> --
> Robert Wynkoop
> Google Voice: 314-380-0046 <tel:314-380-0046>
> Cell: 314-606-3079
> Home: 314-846-7638
>
> 2904 Woodbridge Estates Dr.
> Saint Louis, MO 63129