Results 1 to 7 of 7
  1. #1
    Camzie is offline Member
    Join Date
    Nov 2009
    Location
    Pretoria
    Posts
    12
    Rep Power
    0

    Exclamation Struggling with java .ini files

    Hi there :)

    Iam a junior IT Developer

    Iam struggling with .ini files

    Iam busy creating an .ini file for an application, but it is throwing a null pointer exception the whole time and can't seem to figure out what the problem is.

    Why would it throw such an error and what does it mean?

    Could you please help me?
    Will appreciate it...

    Here is the code for the .ini file InteractiveScreen.ini:

    ;@InteractiveScreen
    ;
    ;This interactive screen shows the general information on SmartVillage and Neotel.
    ;Smart Village
    ;
    ;Set page properties
    [PortalPage]
    OnShow=focus:buttonInformation
    Type=com.mca.portal.PortalPage
    ;
    ;Places the logo onto the screen
    ;
    ;Create the complex logo image
    [iconLogo1]
    Graphic=Normal, images/smartVillage.jpg
    Location=50, 50
    Size=150, 150
    Type=org.havi.ui.HStaticIcon
    ;
    ;Places text content on to the screen
    ;
    ;Set the page header
    [textHeader1]
    Text=Smart Village
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent1]
    Text=Smart Village™ is South Africa’s leading, next generation network and infrastructure solutions provider.
    Location=50, 60
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent2]
    Text=By utilising state-of-the-art fibre optic networks, Smart Village is able to deliver fully integrated multimedia,telecommunication and security solutions to residential, commercial and hospitality developments.
    Location=50, 61
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent3]
    Text=Our competitive advantage draws its strength from the diversity and technical capabilities of our networks, which guarantees a solid base for our core and value added service offerings.
    Location=50, 62
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent4]
    Text=From humble beginnings in 2004, the company has grown from a small start-up venture, into South Africa’s premier multi-play service provider.
    Location=50, 63
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent5]
    Text=Smart Village has a very strong national footprint, with over a thousand homes and businesses already connected.
    Location=50, 64
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent6]
    Text=Having already secured a significant portion of the market, accelerated growth is expected as Multichoice has acquired a controlling stake in Smart Village to broaden its core DStv offerings, by using Smart Village's next generation networks.
    Location=50, 65
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent7]
    Text=By providing a totally unique turnkey solution, Smart Village enables clients to deal with a single provider for multimedia, telecommunication, data and security services.
    Location=50, 66
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent8]
    Text=Smart Village also offers all the necessary service, maintenance and support that clients require, ensuring complete and total peace of mind.
    Location=50, 67
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Contact details
    ;
    ;Set the page text content
    [textContent9]
    Text=Smart Village Head Office
    Location=50, 68
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent10]
    Text=Tel : +27 (0) 12 679 3400
    Location=50, 69
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent11]
    Text=Fax : +27 (0) 12 679 3401
    Location=50, 70
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent12]
    Text=Post Box : ///////////////throws an error right here!!!!!!!!!!!!!!!!!!!!!!!
    Location=50, 71
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent13]
    Text=Postnet Suite 422
    Location=50, 72
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent14]
    Text=Privatebag x 108
    Location=50, 73
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent15]
    Text=Centurion
    Location=50, 74
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent16]
    Text=0046
    Location=50, 75
    Size=90, 90
    Type=otg.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent17]
    Text=Physical Address :
    Location=50, 76
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent18]
    Text=Centurion Gate Complex
    Location=50, 77
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent19]
    Text=2nd Floor
    Location=50, 78
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent20]
    Text=Cnr John Vorster & Akkerboom Street
    Location=50, 79
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;
    ;Set the page text content
    [textContent21]
    Text=Centurion
    Location=50, 80
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;

    Thanx
    Camzie

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    What is the Java code trying to do at that point?

  3. #3
    Camzie is offline Member
    Join Date
    Nov 2009
    Location
    Pretoria
    Posts
    12
    Rep Power
    0

    Default

    Hi there

    Thanx for responding

    The code is suppose to place the content on the application page, but i doesn't, it just shows an empty page, and it throws an exception

  4. #4
    Camzie is offline Member
    Join Date
    Nov 2009
    Location
    Pretoria
    Posts
    12
    Rep Power
    0

    Default

    I want to know what does it mean when it throws a null pointer exception error in this code

    ;Set the page text content
    [textContent12]
    Text=Post Box :
    Location=50, 71
    Size=90, 90
    Type=org.havi.ui.HStaticText
    ;

  5. #5
    Camzie is offline Member
    Join Date
    Nov 2009
    Location
    Pretoria
    Posts
    12
    Rep Power
    0

    Default

    I mean there is content in the text, not that it is null, why does it throw an exception then
    Camzie

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

  7. #7
    Camzie is offline Member
    Join Date
    Nov 2009
    Location
    Pretoria
    Posts
    12
    Rep Power
    0

Similar Threads

  1. Moving files in Java
    By techbossmb in forum Advanced Java
    Replies: 1
    Last Post: 10-09-2009, 01:55 PM
  2. struggling with creating a GUI
    By tuwannu in forum Advanced Java
    Replies: 2
    Last Post: 12-01-2008, 02:53 PM
  3. .java files comparsion
    By rhub in forum Eclipse
    Replies: 4
    Last Post: 09-22-2008, 02:55 PM
  4. conversion of java .class files to .java files
    By kotturupraveen in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 12:58 PM
  5. error in Java files
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 12:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •