Skip to main content

Error on compiling MIDP

5 replies [Last post]
rmagniere
Offline
Joined: 2008-05-02
Points: 0

Hi, the compilation of JavaCall, PCSL and CLDC work fine. But on the last part, i've got some trouble with MIDP, there's an error i don't understood at all.

I'v downloaded the phoneme_advanced-mr2 form repository.

My log :

=======================================
MIDP Subsystem and Module Configuration
=======================================

SUBSYSTEMS = configuration properties_port example example verifier jams example core i18n highlevelui lowlevelu
i rms security gcf file http serial serial_port socket socket_notify ssocket udp push events tool automation links media
SUBSYSTEM_AMS_MODULES = jams
SUBSYSTEM_EVENTS_MODULES = master_mode
SUBSYSTEM_PUSH_MODULES =
SUBSYSTEM_I18N_MODULES = common
SUBSYSTEM_LCDUI_MODULES = chameleon
SUBSYSTEM_GRAPHICS_MODULES = putpixel
SUBSYSTEM_MMAPI_MODULES =
SUBSYSTEM_PTI_MODULES = javapti
SUBSYSTEM_PROTOCOL_MODULES = ssocket
SUBSYSTEM_RMS_MODULES = common linear_index
SUBSYSTEM_SECURITY_MODULES = crypto file_digest internal_api_protection midp_permissions reference_permission_dialog pki publick
eystore secure_random
SUBSYSTEM_TOOL_MODULES = keytool jadtool imageutil skinromization l10n_generator

make[1]: Entering directory `D:/src/midp/build/javacall'
... searching updated .java files
... generating configuration files
... generating localized strings
... romizing skin
java.lang.IllegalArgumentException: invalid format
at com.sun.midp.imageutil.ImageToRawConverter.(ImageToRawConverter.java:110)
at com.sun.midp.skinromization.RomizedImageFactory.getFactory(SkinRomizationTool.java:1176)
at com.sun.midp.skinromization.SkinRomizer.romize(SkinRomizationTool.java:1427)
at com.sun.midp.skinromization.SkinRomizationTool.main(SkinRomizationTool.java:105)
make[1]: *** [d:/src/build_output/midp/classes.zip] Error 1
make[1]: Leaving directory `D:/src/midp/build/javacall'
make: *** [build_classes] Error 2

The java error seems to be an exception on ImageToRawConverter, but i don't understood anymore why it's caught.

If somebody can help, thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi, the compilation of JavaCall, PCSL and CLDC work fine. But on the last part, i've got some trouble with MIDP, there's an error i don't understood at all.
>
> I'v downloaded the phoneme_advanced-mr2 form repository.
>
> My log :
>
> =======================================
> MIDP Subsystem and Module Configuration
> =======================================
>
> SUBSYSTEMS = configuration properties_port example example verifier jams example core i18n highlevelui lowlevelu
> i rms security gcf file http serial serial_port socket socket_notify ssocket udp push events tool automation links media
> SUBSYSTEM_AMS_MODULES = jams
> SUBSYSTEM_EVENTS_MODULES = master_mode
> SUBSYSTEM_PUSH_MODULES =
> SUBSYSTEM_I18N_MODULES = common
> SUBSYSTEM_LCDUI_MODULES = chameleon
> SUBSYSTEM_GRAPHICS_MODULES = putpixel
> SUBSYSTEM_MMAPI_MODULES =
> SUBSYSTEM_PTI_MODULES = javapti
> SUBSYSTEM_PROTOCOL_MODULES = ssocket
> SUBSYSTEM_RMS_MODULES = common linear_index
> SUBSYSTEM_SECURITY_MODULES = crypto file_digest internal_api_protection midp_permissions reference_permission_dialog pki publick
> eystore secure_random
> SUBSYSTEM_TOOL_MODULES = keytool jadtool imageutil skinromization l10n_generator
>
> make[1]: Entering directory `D:/src/midp/build/javacall'
> ... searching updated .java files
> ... generating configuration files
> ... generating localized strings
> ... romizing skin
> java.lang.IllegalArgumentException: invalid format
> at com.sun.midp.imageutil.ImageToRawConverter.(ImageToRawConverter.java:110)
> at com.sun.midp.skinromization.RomizedImageFactory.getFactory(SkinRomizationTool.java:1176)
> at com.sun.midp.skinromization.SkinRomizer.romize(SkinRomizationTool.java:1427)
> at com.sun.midp.skinromization.SkinRomizationTool.main(SkinRomizationTool.java:105)
> make[1]: *** [d:/src/build_output/midp/classes.zip] Error 1
> make[1]: Leaving directory `D:/src/midp/build/javacall'
> make: *** [build_classes] Error 2
>
> The java error seems to be an exception on ImageToRawConverter, but i don't understood anymore why it's caught.
>
> If somebody can help, thanks.
>

Hi,

Did you ever figure this out?

It looked like an error that was because you weren't using the latest
trunk of the repository.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

rmagniere
Offline
Joined: 2008-05-02
Points: 0

Thank you Hinkmond for your answer, my problem is still here.
I follow you advice and dowload the phoneme_dev_mr2_dev_b26 version from the repository but the exception persists.

[i]file:///d:/src/tools/configurator/xsl/share/merge.xsl; Ligne #132; Colonne #71; Impossible de charger le document demandÚ : d:\d:\
src\tools\configurator\xsl\share\src\midp\src\configuration\configuration_xml\javacall\skin.xml (Syntaxe du nom de fichier, de rÚp
ertoire ou de volume incorrecte)
... generating configuration files
... generating localized strings
... d:/src/build_output/midp/tools_classes/SkinRomizationTool.manifest
... building SkinRomizationTool
... d:/src/build_output/midp/bin/i386/SkinRomizationTool.jar
... romizing skin
java.lang.IllegalArgumentException: invalid format
at com.sun.midp.imageutil.ImageToRawConverter.(ImageToRawConverter.java:110)
at com.sun.midp.skinromization.RomizedImageFactory.getFactory(SkinRomizationTool.java:1176)
at com.sun.midp.skinromization.SkinRomizer.romize(SkinRomizationTool.java:1427)
at com.sun.midp.skinromization.SkinRomizationTool.main(SkinRomizationTool.java:105)
make[1]: *** [d:/src/build_output/midp/classes.zip] Error 1
make[1]: Leaving directory `D:/src/midp/build/javacall'
make: *** [build_classes] Error 2[/i]

So, the problem doesn't come from my old version (b23), it appears to be in this new (b26) too.

If anybody have another idea from where this problem come from ?
Maybe I chekout the svn sources by a wrong way, i checkout it at the [i]https://phoneme.dev.java.net/svn/phoneme/builds/phoneme_feature-mr2-dev-b26/[/i] adresse.
I try to build it under Windows XP, I think i've correctly set all the environnement variables.
I follow the building guide at [i]http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEBuilding[/i] , it's help me on the three first step but the MIDP building always fails :-(.

I will be very happy if somebody has already met this problem and fix it.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> My problem is still here.
> I follow you advice and dowload the phoneme_dev_mr2_dev_b26 version from the repository but the exception persists.
>
> file:///d:/src/tools/configurator/xsl/share/merge.xsl; Ligne #132; Colonne #71; Impossible de charger le document demandÚ : d:\d:\
> src\tools\configurator\xsl\share\src\midp\src\configuration\configuration_xml\javacall\skin.xml (Syntaxe du nom de fichier, de rÚp
> ertoire ou de volume incorrecte)
> ... generating configuration files
> ... generating localized strings
> ... d:/src/build_output/midp/tools_classes/SkinRomizationTool.manifest
> ... building SkinRomizationTool
> ... d:/src/build_output/midp/bin/i386/SkinRomizationTool.jar
> ... romizing skin
> java.lang.IllegalArgumentException: invalid format
> at com.sun.midp.imageutil.ImageToRawConverter.(ImageToRawConverter.java:110)
> at com.sun.midp.skinromization.RomizedImageFactory.getFactory(SkinRomizationTool.java:1176)
> at com.sun.midp.skinromization.SkinRomizer.romize(SkinRomizationTool.java:1427)
> at com.sun.midp.skinromization.SkinRomizationTool.main(SkinRomizationTool.java:105)
> make[1]: *** [d:/src/build_output/midp/classes.zip] Error 1
> make[1]: Leaving directory `D:/src/midp/build/javacall'
> make: *** [build_classes] Error 2
>
> So, the problem doesn't come from my old version (b23), it appears to be in this new (b26) too.
>
> If anybody have another idea from where this problem come from ?
>
>

This looks like a tough problem. Can you tell us more details about
your build? Are you building on a Windows XP or Windows Vista system?
Is it configured to some other locale other than US/English (en_US)? If
so, which locale is it set to?

What is your full "make" command line? Which instructions are you
following? Can you give a URL pointing to the instructions you are using?

We'll try to help you sort it out.

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

rmagniere
Offline
Joined: 2008-05-02
Points: 0

I follow the build instruction for win32 apps on PhoneMe site. I also make modification to configuration files like written at this address [i]http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEBuilding[/i]
I try to build under a Windows XP system, my locale are set to French(FR).

For the last compilation part, I go on the : [i]%MEHOME%/midp/build/javacall [/i]directory and run the make command :
[i]make PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist TOOLS_DIR=%MEHOME%/tools USE_MULTIPLE_ISOLATES=true JAVACALL_PLATFORM=win32_i386_vc JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall[/i]

I follow the instruction on : [i]https://phoneme.dev.java.net/content/mr2/client_feature.html#win32[/i] address

I chekout only the latest MIDP module on svn, and will try to compile by including it on my b26 version of phoneMe.

Thank you.

Renaud.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I follow the build instruction for win32 apps on PhoneMe site. I also make modification to configuration files like written at this address [i]http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEBuilding[/i]
> I try to build under a Windows XP system, my locale are set to French(FR).
>
> For the last compilation part, I go on the : [i]%MEHOME%/midp/build/javacall [/i]directory and run the make command :
> [i]make PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist TOOLS_DIR=%MEHOME%/tools USE_MULTIPLE_ISOLATES=true JAVACALL_PLATFORM=win32_i386_vc JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall[/i]
>
> I follow the instruction on : [i]https://phoneme.dev.java.net/content/mr2/client_feature.html#win32[/i] address
>
> I chekout only the latest MIDP module on svn, and will try to compile by including it on my b26 version of phoneMe.
>
> Thank you.
>
> Renaud.
>

Hi Renaud,

I see part of the problem: You are posting on the phoneME Advanced forum
mailing list, but your question is about building phoneME Feature.

I'm cross-posting your message to the feature@phoneme.dev.java.net
mailing list so that someone there on the phoneME Feature project can
give you an answer.

Please let us know if you don't receive a reply.

Thanks,

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net