Personal Profile compile

Hi all,
I recently downloaded the cdc personal profile. I've managed to compile the profile on Red Hat 9 ( compiled cleanly...only some minor warnings ). When I try to run the HelloWorld example packaged within the democlasses.zip file ( should display a window with Hello World in big red letters ), I get the following exception:
java.lang.NullPointerException:
at java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;(Native Method)
at java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class;(Class.java:127)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;(GraphicsEnvironment.java:72)
So, I traced throught the code. After doing a little debugging, I discovered that the GraphicEnvironment retrieves null for the java.awt.graphicsenv environment variable. Noticing that a doPrivileged call is made, my first thought was that it was a security thing. So I added the java.awt.graphicsenv entry within my java.policy file. Reran the example and still the same exception. I'm baffled as to why a call to retrieve this environment variable is always returning null. I can add a call to System.getProperties() within the GraphicsEnvironment class and it shows that that entry is set to sun.awt.gtk.GdkGraphicsEnvironment. Has anyone encountered this problem? What I'm noticing is that when I call System.getProperty( String name ) it seems to always return null?? I tried:
System.getProperty( "java.awt.graphicsenv" );
System.getProperty( "awt.toolkit" );
System.getProperty( "java.awt.AlphaComposite.SRC_OVER.isRestricted" );
All returned null! Any suggestions or thoughts would be greatly appreciated. I know there is a rpm version of the personal profile - I've tried it and it works great - but I really need to be able to compile it for myself as I'm going to have to provide some porting libraries and classes.
Thanks in advance!
Best Regards,
Jeff

I figured it out!!
It had to do with the makefiles that were responsible for generating those environment variables. More specifically, personal/build/share/defs_basis.mk and personal/build/share/rules.mk. The defs.mk defined a SYSTEM_PROPERTIES variable. It goes through a bunch of if statements to determine which environment variables will be set. Statement looks like this:
SYSTEM_PROPERTIES += "name=value\n"
Well, its the rules.mk file that parses that SYSTEM_PROPERTIES variable to generate a system_properties.c file. The line that does this is:
$(AT) echo $(SYSTEM_PROPERTIES) | sed -e 's/ *\(.*\)=\(.*\)/     PUTPROP (props, "\1", "\2");/' >> .system_properties.c
This line echos SYSTEM_PROPERTIES and pipes that output to sed which will then parse out each "name=value". Then it will print out PUTPROP( props, "name", "value" );
The problem that I was encountering was when this line parsed the SYSTEM_PROPERTIES it was parsed as follows:
name1=value1n name2=value2n .... the \n characters were not being recognized! Therefore all of the name=value pairs were being output on one line. Sed is expecting these things to be on their own line. Therefore the environment variables were not being set correctly by the System. So I made a minor modification to the echo command to interpret the "/n":
$(AT) echo -e $(SYSTEM_PROPERTIES) | sed -e 's/ *\(.*\)=\(.*\)/     PUTPROP (props, "\1", "\2");/' >> .system_properties.c
The -e tells echo to interpret any escape characters within the String. Made the fix, recompiled, and everything works great!!
Regards,
Jeff

Similar Messages

  • Compiling CDC/ Foundation Profile  and Personal Profile in RedHat 7.3

    When I compile the CDC/Personal Profile,in RedHat 7.3,I get this message:
    ../share/rules.mk:235: ../../build/linux-i686/generated/empty.mk: No such file or directory
    ... mkdir ../../build/linux-i686/generated/javavm/runtime
    touch ../../build/linux-i686/generated/empty.mk
    ... mkdir ../../build/linux-i686/generated/flags
    error:compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null
    ,null,null,null,null,null,null
    100 errors
    make: ***[.compile.btclasses] Error1
    And with CDC/Foundation Profile ,the message is:
    error:compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null
    ,null,null,null,null,null,null
    100 errors
    make: ***[.compile.btclasses] Error1
    What can I do now!
    Can you help me to solve this error?

    Just do export LANG=en_US
    also edit the /etc/sysconfig/i18n file entry for LANG to en_US instead of the UTF.8 stuff
    I don't know the exact reason though.. this will work.
    --Prasanna Kumar                                                                                                                                                                                                                                                                                                                                                                                               

  • CANT CONNECT TO DB USING DATASOURCE ON J2ME PERSONAL PROFILE

    Having installed the optional JDBC package for J2ME and using the personal profile. I cant seem to connect using a datasource provided by HSQLDB. I keep getting the following error in WSDD:
    This compilation unit indirectly references the missing type javax.naming.Referenceable (typically some required class file is referencing a type outside the classpath)
    My classpath contains the database.jar file.
    Where am I going wrong?
    please please could some one help.
    Thanks

    Just a guess according to my Personal Java experience: maybe that optional JDBC package for J2ME is only JDBC1.2 compatible so that your should use HSQLDB JDB1.2 package? Thanks for correction.

  • Personal Profile configuration

    Hi...
    I Have source code runnuing with j2sdk1.4 i would like to run with personalprofile1.1 ....
    What i am doing is i am compiling the source code with j2sdk while running i am running with cvm ...cdc jvm...
    Is it man that i am running with personal profile...Please help me out..
    thanks,
    Krishna

    Ditto my iPhone4 and 6 month old MBP.....

  • Zaurus personal profile

    Hi,
    I'm trying Personal Profile for Zaurus on a SHARP SL-5600 running Embedix OS
    kernel 2.4.18 ROM 1.32V and equipped with a wireless connection.
    I'm trying to contact a web service using the axis.jar archive file.
    The following exception was reported:
    CA SOAP Proxy http://192.168.201.59/axis/ca.jws
    java.lang.NoClassDefFoundError: javax.naming.Referenceable
    at
    java.lang.ClassLoader.defineClass0(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Native
    Method)
    at
    java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    java.security.SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/CodeSource;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at java.net.URLClassLoader$1.run()Ljava/lang/Object;(Compiled
    Method)(Unknown Source) at
    java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Compiled
    Method)(Unknown Source)
    at
    java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    sun.misc.Launcher$AppClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at
    java.lang.ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;(Compiled
    Method)(Unknown Source)
    at org.apache.axis.client.Call.<init>(Ljava/lang/String;)V(Unknown
    Source)
    at CASOAProxy.signRequest([B[B)[B(Unknown Source)
            at SOAPca.main([Ljava/lang/String;)V(Unknown Source)
    bash-2.05$
    It seems that there isn't the interface javax.naming.Referenceable.
    In J2SE 1.3.1 this interface is supported and I thought in PP for Zaurus too (in
    CDC Specification javax.naming.* is specified as fully compatible with J2SE
    1.3.1)
    Can you help me?
    I have just found the RMI optional package. Could it have something to do with
    my problem?
    Looking forward to hearing you
    Luigi Coppolino
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    ok I have known that Personal Profile do not support javax.naming.* !!!

  • Getting started..on Personal Profile..please help

    Hello all,
    Iam new to j2me and iam in the learning process.
    I have certain issues of getting started.
    We are going to use Personal Profile in our project
    I want to develop and test in Windows 2000 os.Is that possible?
    How should i use Personal Profile ?
    Should i use pjee(PersonalJava Emulation Enviroment) ?because I have read
    that PersoanlJava is no more in active development and its been
    replaced by personal profile.
    If iam using pjee then is that i need to use JavaCheck..
    Does pjee does the JavaCheck process..
    Please advice.
    Thanks & Regards
    Dinakar

    IBM's J9 supports Personal Profile on various platforms. One is Win32. If you use the IDE that comes with WSDD you can create an Eclipse project targetting Personal Profile. You compile against only the PPro classes, therefore you do not need a JavaCheck like tool.
    You need to download the WSDD 5.6 Tech Preview found at:
    http://www-306.ibm.com/software/wireless/wsdd/
    comments/questions should be directed to the newsgroup (which you can also Google)
    news://news.software.ibm.com/ibm.software.websphere.studio.device-developer
    /Ken

  • Need Cisco Jabber Client in personal profile

    Cisco Jabber earlier it was there in appstore for BB8520 but after I done research I found that it was available now for Enterprise But problem here was I cannot enable workspace as currently our company or my client does not have BlackBerry Enterprise Services…
    Is there any way to install Cisco Jabber on personal profile?

    it was good to have 8520. Missing Jabber on z3.

  • ESS Personal Profile - Employee photo show as 'x'

    Dear experts
    I'm trying to find a conf. table the difference between Dev & QA to display employee photo in ESS personal profile.
    An image like hide photo (Not a actual employee photo) is display in Dev portal where as it show 'X' in QA. I'm trying to find the conf. table to show like hide in QA rather than 'x'. Attached the screenshot of two environment. Highly appreciate your input
    Thanks
    Babu

    run the report RPTMC_INDEX_EE_PIC_URL_TO_INDX  once
    EHP6 MSS Photo Issue
    EHP6 MSS Photo Issue
    1677344 - Poor performance when reading the photo URLs   ------ kindly do as per the steps  mentioned in this note
    1618938
    chk in  se11 > T77TMCPIC_URLS > click on display and do as below ...Activate Content server in SICF once and repeat .....can you check in  t-code ----CSADMIN  ......content repository a2 is runnning or not in overview chk once
    next click on below button and log off and log -in and refresh the team view in portal

  • Personal Profile service for Brazil - Type Conflict for infotype 0002

    Hello All,
    We are enabling personal profile service for Brazil. And we did all the required configuration for that.
    When I access the personal info service I can see the overview page with personal data. But when I click on display link, I get the error message saying -
    Type conflict with ASSIGN in program CL_HRPA_UI_CONVERT_0002_BR
    Is there any configuration missing?
    Thanks,
    Bhushan

    Short text
        Type conflict with ASSIGN in program "CL_HRPA_UI_CONVERT_0002_BR====CP".
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_HRPA_UI_CONVERT_0002_BR====CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        You attempted to assign a field to a typed field symbol,
        but the field does not have the required type.
    How to correct the error
        Adapt the type of the field symbol to the type of the field or use an
        untyped field symbol or use the "CASTING" addition.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "ASSIGN_TYPE_CONFLICT" " "
        "CL_HRPA_UI_CONVERT_0002_BR====CP" or "CL_HRPA_UI_CONVERT_0002_BR====CM003"
        "IF_HRPA_UI_CONVERT_STANDARD~OUTPUT_CONVERSION"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
    Line  SourceCde
        6   DATA: attributes           TYPE hrpad_field_attribute_tab.
        7   DATA: l_object_key         TYPE hcm_object_key.
        8   DATA: l_subrc              TYPE sysubrc.
        9
       10   FIELD-SYMBOLS <r0002_br>   TYPE hcmt_bsp_pa_br_r0002.
       11   FIELD-SYMBOLS <p0002_br>   TYPE p0002.
       12   FIELD-SYMBOLS <p0625>      TYPE p0625.
       13
       14   is_ok = if_hrpa_ui_convert_standard~true.
       15   ASSIGN screen_structure    TO <r0002_br>.
       16   l_object_key = <r0002_br>-object_key.
       17   MOVE-CORRESPONDING pnnnn TO super_screen_ref.
       18
       19   CALL METHOD super->if_hrpa_ui_convert_standard~output_conversion
       20     EXPORTING
       21       screen_structure_name = a_super_screen_structure_main
       22       pnnnn                 = pnnnn
       23       message_handler       = message_handler
       24       field_metadatas       = field_metadatas
       25     IMPORTING
       26       screen_structure      = super_screen_ref
       27       is_ok                 = is_ok
       28       field_attributes      = field_attributes.
       29
       30   MOVE-CORRESPONDING super_screen_ref TO screen_structure.
       31
       32   CASE a_super_screen_structure_main.
       33     WHEN 'HCMT_BSP_PA_XX_R0002'.
       34       ASSIGN pnnnn                  TO <p0002_br>.
       35       ASSIGN screen_structure       TO <r0002_br>.
    >>>>>       ASSIGN pnnnn2                 TO <p0625>.
       37       MOVE-CORRESPONDING <p0002_br> TO <r0002_br>.
       38       MOVE-CORRESPONDING <p0625>    TO <r0002_br>.

  • CDC Personal Profile and XML

    Hi everybody,
    does anyone here has any experiences with J9 (CDC Personal Profile) and XML document?
    Can I use SAX or Dom to parse XML files in CDC Personal Profile?
    Any help is appreciated!!

    Try kXML. It should work on any Java platform.

  • Show HTML in Personal Profile?

    i'd like to show HTML (from a file or from a string) in any kind of component in an app running on a PDA. Probably i will use Personal Profile (and WSDD).
    Are there any components I could use to show HTML. Maybe in AWT?
    I know there are components like that in swing, but I don't know if I can use swing on a PDA??

    hi slomoman,
    i am also interested in the answer. Here is my research:
    You can show HTML in swing components like JEditorPane, But not in AWT.
    Also I could not find a way, how to run swing app with WSDD on PDA.
    good luck
    -fatbrain73

  • Online chat, August 6, on J2ME Personal Profile

    The J2ME Personal Profile (JSR 62), which is now available as a proposed final draft, is a CDC-based profile for small devices that require a high degree of Internet connectivity and web fidelity. It's intended as the follow-on to the PersonalJava environment. Got a question about the J2ME Personal Profile? Then get answers in this chat with Spec Lead, Jon Courtney, and Reference Implementation Lead, Tony Wyant. They'll answer your questions on Tuesday, August 6, at 11 A.M.-to-noon Pacific time (6 P.M.-to-7 P.M. GMT).
    To join the chat, go to http://developer.java.sun.com/developer/community/chat/index.html and click on "Join the current session."

    When will the Transcript for this chat be available?

  • User Personal Profile Values

    Hello,
    We have a custom profile to set up the default printer at a user level for our shipping program (in R12).  Currently, our users do not have access to the Personal Profile Values form and I would like to give them the ability to change this themselves.
    The issue I have is allowing them to change other profiles.  I'd like to limit them only to the one profile for changing their default printer.
    Is it feasible to run an update statement like the one below to set this up:
    update applsys.fnd_profile_values
    set user_visible_flag = 'N',
    user_visible_flag = 'N'
    where profile_option_id <> 11632;
    Or is there a better script that we should run to update this.
    Regards,
    Matt

    You can use the above update to change the visibility of your custom profile option (or you can achieve the same from the application -- Application Developer or System Administrator > Define Profile Option).
    You may also see the docs in this thread https://forums.oracle.com/thread/2569789
    Btw, why are you setting user_visible_flag twice in your above update? And, I think you need to change "profile_option_id <> 11632;" to be "profile_option_id = 11632;" -- Assuming 11632 is the profile option if of your custom profile option.
    Thanks,
    Hussein

  • "Edit Personal Profile" - ESS Benefits

    Hi
    We have a requirement to open the "Edit Personal Profile" in ESS Benefits "New Hire Enrollment" (GAF) in place rather opening in external window. I changed the property in the launchpad ESS/MENU for the "Personal Profile" under Benefits Enrollment to Force Inplace or Inplace but it is not taking effect in portal. Still opens in the external window. Am I missing something or it is handled by the code? Any suggestions would help.
    Thanks, Raj

    typically its meant to launch a new window 1926925 - READ_ONLY_PERSONAL_PROFILE in ESS Benefit Enrollment WDA its coded in the code, so above changes wont take effect in ESS/MENU Webdynpro component:HRESS_C_BEN_ENRL_CONFIG met:ON_EDITCLICK ls_parameter-value = 'EXTERNAL'. change it to ls_parameter-value = 'EXT_HEAD' in both the places. check here if you can get more information on this http://scn.sap.com/thread/3508230

  • ESS Personal Profile -- NWBC

    Hi all ,
    In ESS Personal Profile,
    In one system which is currently using by client is like this.
    But I need to replace it like this.
    Here add details are there, but in older one that is missing.
    What I need to do.
    Waiting for everyones response,
    Namsheed.

    The add button option depends use case for which you will have to customize the view V_T7XSSPERSUBTY .
    Refer here for more details:
    http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2012/06/13/summary-of-configuration-options-in-ess-personal-information-scenario
    HCM EHP5, EHP6 and HR Renewal,Fiori Important links and documents
    http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2012/05/29/exciting-enhacements-to-ess-personal-information-scenario-in-enhancement-pack-6
    Regards.
    PS:
    Most of the queries you are posting are lalready answered - you would save time by searching for them before posting.

Maybe you are looking for

  • I'm trying to build an unique 2d array:

    It has 4 user inputs, x, y, width, height, width1, height1. What i'm trying to do is an array which is width by lenght in dimensions, but a small portion in the center (width1 by lenght1) consists of the y input, everything else x. would be grateful

  • Mystery markings at the end of the road- next to a...

    Hi, Have noticed some mystery markings at the end of the road, right next to BT's current equipment. Markings measure approx 1.2m x 45cm Infinity is due to be enabled on 1/03/2012 so looks like BT might have started the rollout. Exchange is Kempston

  • Problem with install oracle on OEL5.3 linux

    Hello, Have some strange problem with oracle enterpise linux 5.3 32 bit, during install Oracle 10gR2 got link errors, after founded what is problem with linking oracle executables: export LD_LIBRARY_PATH=$ORACLE_HOME/lib relink oracle /usr/bin/ld: ca

  • Trouble downloading the app manager

    I'm getting an error message saying the sevrer is not responding in a proper manner and to please retry in a few mintues.  I have retried many times.  What do I do?  Is Adobe experiencing problems?

  • Open Boot Firmware - nvalias backup_root - Command Behavior

    My configuration is, a Sun Fire 280R running Solaris 9 with two duplicate hard drives, setup as a software RAID1 mirror. I have also done the open boot command: OK nvalias backup_root /sbus@1,f8000000/esp@1,200000/sd@3,0:a (telling open boot that the