Results 1 to 7 of 7
Thread: Struggling with java .ini files
- 11-24-2009, 01:31 PM #1
Member
- Join Date
- Nov 2009
- Location
- Pretoria
- Posts
- 12
- Rep Power
- 0
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
- 11-24-2009, 01:45 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
What is the Java code trying to do at that point?
- 11-24-2009, 01:53 PM #3
Member
- Join Date
- Nov 2009
- Location
- Pretoria
- Posts
- 12
- Rep Power
- 0
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
- 11-24-2009, 02:08 PM #4
Member
- Join Date
- Nov 2009
- Location
- Pretoria
- Posts
- 12
- Rep Power
- 0
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
;
- 11-24-2009, 02:10 PM #5
Member
- Join Date
- Nov 2009
- Location
- Pretoria
- Posts
- 12
- Rep Power
- 0
I mean there is content in the text, not that it is null, why does it throw an exception then
Camzie
- 11-24-2009, 02:32 PM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
- 11-24-2009, 03:13 PM #7
Member
- Join Date
- Nov 2009
- Location
- Pretoria
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
Moving files in Java
By techbossmb in forum Advanced JavaReplies: 1Last Post: 10-09-2009, 01:55 PM -
struggling with creating a GUI
By tuwannu in forum Advanced JavaReplies: 2Last Post: 12-01-2008, 02:53 PM -
.java files comparsion
By rhub in forum EclipseReplies: 4Last Post: 09-22-2008, 02:55 PM -
conversion of java .class files to .java files
By kotturupraveen in forum New To JavaReplies: 2Last Post: 06-09-2008, 12:58 PM -
error in Java files
By ai_2007 in forum Advanced JavaReplies: 1Last Post: 07-31-2007, 12:14 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks