Kenny Devorak
asked on
Platform, Locale, and Platform Name must not be null - Error Help
Below is the actual error that I'm getting:
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values. Platform, Locale, and Platform Name must not be null
The error occurred in C:\ColdFusion9\wwwroot\fin ance\admin \creditapp 2.cfm: line 36
34 : <cfpdfformparam name="income" value="#qmyrecord.monthlyi ncome#">
35 : <cfpdfformparam name="othersource" value="#qmyrecord.othersou rce#">
36 : <cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc ome#">
37 :
38 : </cfpdfform>
Below is all of my code:
<cfif StructKeyExists(url,"recor did")>
<cfquery name="qMyRecord" datasource="users">
select * from creditapp
WHERE idcreditapp = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#">
</cfquery>
</cfif>
<cfpdfform source="c:\coldfusion9\www root\finan ce\admin\c reditapp.p df"
destination="c:\coldfusion 9\wwwroot\ finance\ad min\yourap p.pdf" action="populate" overwrite="true">
<cfpdfformparam name="name" value="#qmyrecord.lastname # / #qmyrecord.firstname# / #qmyrecord.middle#">
<cfpdfformparam name="generation" value="#qmyrecord.generati on#">
<cfpdfformparam name="birthdate" value="#qmyrecord.birthdat e#">
<cfpdfformparam name="social" value="#qmyrecord.soc1#-#q myrecord.s oc2#-#qmyr ecord.soc3 #">
<cfpdfformparam name="homephone" value="#qmyrecord.homephon e#">
<cfpdfformparam name="address" value="#qmyrecord.address# ">
<cfpdfformparam name="city" value="#qmyrecord.city#">
<cfpdfformparam name="state" value="#qmyrecord.state#">
<cfpdfformparam name="zip" value="#qmyrecord.zip#">
<cfpdfformparam name="timeaddress" value="#qmyrecord.resident years# Years #qmyrecord.residentyears# Months">
<cfpdfformparam name="email" value="#qmyrecord.email#">
<cfpdfformparam name="cellphone" value="#qmyrecord.cellphon e#">
<cfpdfformparam name="monthlyrent" value="#qmyrecord.monthlyp ayment#">
<cfpdfformparam name="residenttype" value="#qmyrecord.resident #">
<cfpdfformparam name="employer" value="#qmyrecord.employer #">
<cfpdfformparam name="occupation" value="#qmyrecord.occupati on#">
<cfpdfformparam name="timejob" value="#qmyrecord.ytimejob # #qmyrecord.mtimejob#">
<cfpdfformparam name="employerphone" value="#qmyrecord.business phone#">
<cfpdfformparam name="income" value="#qmyrecord.monthlyi ncome#">
<cfpdfformparam name="othersource" value="#qmyrecord.othersou rce#">
<cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc ome#">
</cfpdfform>
Any help with this would be great.
Thank you,
Ken
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values. Platform, Locale, and Platform Name must not be null
The error occurred in C:\ColdFusion9\wwwroot\fin
34 : <cfpdfformparam name="income" value="#qmyrecord.monthlyi
35 : <cfpdfformparam name="othersource" value="#qmyrecord.othersou
36 : <cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc
37 :
38 : </cfpdfform>
Below is all of my code:
<cfif StructKeyExists(url,"recor
<cfquery name="qMyRecord" datasource="users">
select * from creditapp
WHERE idcreditapp = <cfqueryparam cfsqltype="cf_sql_integer"
</cfquery>
</cfif>
<cfpdfform source="c:\coldfusion9\www
destination="c:\coldfusion
<cfpdfformparam name="name" value="#qmyrecord.lastname
<cfpdfformparam name="generation" value="#qmyrecord.generati
<cfpdfformparam name="birthdate" value="#qmyrecord.birthdat
<cfpdfformparam name="social" value="#qmyrecord.soc1#-#q
<cfpdfformparam name="homephone" value="#qmyrecord.homephon
<cfpdfformparam name="address" value="#qmyrecord.address#
<cfpdfformparam name="city" value="#qmyrecord.city#">
<cfpdfformparam name="state" value="#qmyrecord.state#">
<cfpdfformparam name="zip" value="#qmyrecord.zip#">
<cfpdfformparam name="timeaddress" value="#qmyrecord.resident
<cfpdfformparam name="email" value="#qmyrecord.email#">
<cfpdfformparam name="cellphone" value="#qmyrecord.cellphon
<cfpdfformparam name="monthlyrent" value="#qmyrecord.monthlyp
<cfpdfformparam name="residenttype" value="#qmyrecord.resident
<cfpdfformparam name="employer" value="#qmyrecord.employer
<cfpdfformparam name="occupation" value="#qmyrecord.occupati
<cfpdfformparam name="timejob" value="#qmyrecord.ytimejob
<cfpdfformparam name="employerphone" value="#qmyrecord.business
<cfpdfformparam name="income" value="#qmyrecord.monthlyi
<cfpdfformparam name="othersource" value="#qmyrecord.othersou
<cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc
</cfpdfform>
Any help with this would be great.
Thank you,
Ken
ASKER
I added <cfparam name="Platform" default=""> and I'm still getting the same error.
ASKER
I tried the following and I still get the same error:
<cfparam name="Platform" default="0">
<cfparam name="Platform" default="blank">
<cfparam name="Platform" default="0">
<cfparam name="Platform" default="blank">
where are you putting that - the code you've pasted makes no reference to Platform, Locale, and Platform Name
ASKER
Here is my code with the <cfparam name="Platform" default="nothing">
I'm not familar with this error so I don't understand how to fix it.
<cfif StructKeyExists(url,"recor did")>
<cfquery name="qMyRecord" datasource="users">
select * from creditapp
WHERE idcreditapp = <cfqueryparam cfsqltype="cf_sql_integer" value="#url.recordid#">
</cfquery>
</cfif>
<cfpdfform source="c:\coldfusion9\www root\finan ce\admin\c reditapp.p df"
destination="c:\coldfusion 9\wwwroot\ finance\ad min\yourap p.pdf" action="populate" overwrite="true">
<cfparam name="Platform" default="nothing">
<cfpdfformparam name="name" value="#qmyrecord.lastname # / #qmyrecord.firstname# / #qmyrecord.middle#">
<cfpdfformparam name="generation" value="#qmyrecord.generati on#">
<cfpdfformparam name="birthdate" value="#qmyrecord.birthdat e#">
<cfpdfformparam name="social" value="#qmyrecord.soc1#-#q myrecord.s oc2#-#qmyr ecord.soc3 #">
<cfpdfformparam name="homephone" value="#qmyrecord.homephon e#">
<cfpdfformparam name="address" value="#qmyrecord.address# ">
<cfpdfformparam name="city" value="#qmyrecord.city#">
<cfpdfformparam name="state" value="#qmyrecord.state#">
<cfpdfformparam name="zip" value="#qmyrecord.zip#">
<cfpdfformparam name="timeaddress" value="#qmyrecord.resident years# Years #qmyrecord.residentyears# Months">
<cfpdfformparam name="email" value="#qmyrecord.email#">
<cfpdfformparam name="cellphone" value="#qmyrecord.cellphon e#">
<cfpdfformparam name="monthlyrent" value="#qmyrecord.monthlyp ayment#">
<cfpdfformparam name="residenttype" value="#qmyrecord.resident #">
<cfpdfformparam name="employer" value="#qmyrecord.employer #">
<cfpdfformparam name="occupation" value="#qmyrecord.occupati on#">
<cfpdfformparam name="timejob" value="#qmyrecord.ytimejob # #qmyrecord.mtimejob#">
<cfpdfformparam name="employerphone" value="#qmyrecord.business phone#">
<cfpdfformparam name="income" value="#qmyrecord.monthlyi ncome#">
<cfpdfformparam name="othersource" value="#qmyrecord.othersou rce#">
<cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc ome#">
</cfpdfform>
I'm not familar with this error so I don't understand how to fix it.
<cfif StructKeyExists(url,"recor
<cfquery name="qMyRecord" datasource="users">
select * from creditapp
WHERE idcreditapp = <cfqueryparam cfsqltype="cf_sql_integer"
</cfquery>
</cfif>
<cfpdfform source="c:\coldfusion9\www
destination="c:\coldfusion
<cfparam name="Platform" default="nothing">
<cfpdfformparam name="name" value="#qmyrecord.lastname
<cfpdfformparam name="generation" value="#qmyrecord.generati
<cfpdfformparam name="birthdate" value="#qmyrecord.birthdat
<cfpdfformparam name="social" value="#qmyrecord.soc1#-#q
<cfpdfformparam name="homephone" value="#qmyrecord.homephon
<cfpdfformparam name="address" value="#qmyrecord.address#
<cfpdfformparam name="city" value="#qmyrecord.city#">
<cfpdfformparam name="state" value="#qmyrecord.state#">
<cfpdfformparam name="zip" value="#qmyrecord.zip#">
<cfpdfformparam name="timeaddress" value="#qmyrecord.resident
<cfpdfformparam name="email" value="#qmyrecord.email#">
<cfpdfformparam name="cellphone" value="#qmyrecord.cellphon
<cfpdfformparam name="monthlyrent" value="#qmyrecord.monthlyp
<cfpdfformparam name="residenttype" value="#qmyrecord.resident
<cfpdfformparam name="employer" value="#qmyrecord.employer
<cfpdfformparam name="occupation" value="#qmyrecord.occupati
<cfpdfformparam name="timejob" value="#qmyrecord.ytimejob
<cfpdfformparam name="employerphone" value="#qmyrecord.business
<cfpdfformparam name="income" value="#qmyrecord.monthlyi
<cfpdfformparam name="othersource" value="#qmyrecord.othersou
<cfpdfformparam name="othermonthly" value="#qmyrecord.otherinc
</cfpdfform>
I'm not familar with this error so I don't understand how to fix it.
We don't know how to fix it either since there's nothing in the code you've shown that even uses a variable named "Platform". Post the stack trace.
> <cfpdfform source="c:\coldfusion9\www root\finan ce\admin\c reditapp.p df"
> destination="c:\coldfusion 9\wwwroot\ finance\ad min\yourap p.pdf"
You realize that generates the same file for every request right? So you're potentially sharing someone else's financial info, social security number, etc... with the wrong party. Very bad ... Not that storing that info unsecured in a db or pdf file is a good idea either.
We don't know how to fix it either since there's nothing in the code you've shown that even uses a variable named "Platform". Post the stack trace.
> <cfpdfform source="c:\coldfusion9\www
> destination="c:\coldfusion
You realize that generates the same file for every request right? So you're potentially sharing someone else's financial info, social security number, etc... with the wrong party. Very bad ... Not that storing that info unsecured in a db or pdf file is a good idea either.
ASKER
Below is the stack trace:
java.lang.NullPointerExcep tion: Platform, Locale, and Platform Name must not be null
at com.adobe.fontengine.fontm anagement. platform.P latformFon tDescripti on.<init>( PlatformFo ntDescript ion.java:5 1)
at com.adobe.fontengine.font. opentype.O penTypeFon t.getPlatf ormFontDes cription(O penTypeFon t.java:253 8)
at com.adobe.fontengine.font. FontImpl.g etPlatform FontDescri ption(Font Impl.java: 428)
at com.adobe.fontengine.font. FontImpl.g etPlatform FontDescri ption(Font Impl.java: 415)
at com.adobe.fontengine.fontm anagement. platform.P latformFon tResolverI mpl.addFon t(Platform FontResolv erImpl.jav a:56)
at com.adobe.internal.pdftool kit.core.f ontset.imp l.PDFFontS etImpl.add Font(PDFFo ntSetImpl. java:164)
at com.adobe.internal.pdfm.ut il.FontSet Builder.lo adFontsPat h(FontSetB uilder.jav a:418)
at com.adobe.internal.pdfm.ut il.FontSet Builder.lo adSystemFo nts(FontSe tBuilder.j ava:346)
at com.adobe.internal.pdfm.ut il.FontSet Builder.ma kePDFFontS et(FontSet Builder.ja va:239)
at com.adobe.internal.pdfm.ut il.FontSet Builder.ge tPdfFontSe t(FontSetB uilder.jav a:93)
at com.adobe.internal.pdfm.PD FM7Factory .getPdfFon tSet(PDFM7 Factory.ja va:97)
at coldfusion.document.Docume ntServiceI mpl.getAss emblerFont Set(Docume ntServiceI mpl.java:5 12)
at coldfusion.pdf.PDFForm.pop ulateField s(PDFForm. java:292)
at coldfusion.tagext.lang.PDF FormTag.do EndTag(PDF FormTag.ja va:347)
at cfcreditapp22ecfm266578086 .runPage(C :\ColdFusi on9\wwwroo t\finance\ admin\cred itapp2.cfm :37)
at coldfusion.runtime.CfJspPa ge.invoke( CfJspPage. java:231)
at coldfusion.tagext.lang.Inc ludeTag.do StartTag(I ncludeTag. java:416)
at coldfusion.filter.Cfinclud eFilter.in voke(Cfinc ludeFilter .java:65)
at coldfusion.filter.Applicat ionFilter. invoke(App licationFi lter.java: 363)
at coldfusion.filter.RequestM onitorFilt er.invoke( RequestMon itorFilter .java:48)
at coldfusion.filter.Monitori ngFilter.i nvoke(Moni toringFilt er.java:40 )
at coldfusion.filter.PathFilt er.invoke( PathFilter .java:87)
at coldfusion.filter.LicenseF ilter.invo ke(License Filter.jav a:27)
at coldfusion.filter.Exceptio nFilter.in voke(Excep tionFilter .java:70)
at coldfusion.filter.ClientSc opePersist enceFilter .invoke(Cl ientScopeP ersistence Filter.jav a:28)
at coldfusion.filter.BrowserF ilter.invo ke(Browser Filter.jav a:38)
at coldfusion.filter.NoCacheF ilter.invo ke(NoCache Filter.jav a:46)
at coldfusion.filter.GlobalsF ilter.invo ke(Globals Filter.jav a:38)
at coldfusion.filter.Datasour ceFilter.i nvoke(Data sourceFilt er.java:22 )
at coldfusion.filter.CachingF ilter.invo ke(Caching Filter.jav a:53)
at coldfusion.CfmServlet.serv ice(CfmSer vlet.java: 200)
at coldfusion.bootstrap.Boots trapServle t.service( BootstrapS ervlet.jav a:89)
at jrun.servlet.FilterChain.d oFilter(Fi lterChain. java:86)
at coldfusion.monitor.event.M onitoringS ervletFilt er.doFilte r(Monitori ngServletF ilter.java :42)
at coldfusion.bootstrap.Boots trapFilter .doFilter( BootstrapF ilter.java :46)
at jrun.servlet.FilterChain.d oFilter(Fi lterChain. java:94)
at jrun.servlet.FilterChain.s ervice(Fil terChain.j ava:101)
at jrun.servlet.ServletInvoke r.invoke(S ervletInvo ker.java:1 06)
at jrun.servlet.JRunInvokerCh ain.invoke Next(JRunI nvokerChai n.java:42)
at jrun.servlet.JRunRequestDi spatcher.i nvoke(JRun RequestDis patcher.ja va:286)
at jrun.servlet.ServletEngine Service.di spatch(Ser vletEngine Service.ja va:543)
at jrun.servlet.http.WebServi ce.invokeR unnable(We bService.j ava:172)
at jrunx.scheduler.ThreadPool $Downstrea mMetrics.i nvokeRunna ble(Thread Pool.java: 320)
at jrunx.scheduler.ThreadPool $ThreadThr ottle.invo keRunnable (ThreadPoo l.java:428 )
at jrunx.scheduler.ThreadPool $UpstreamM etrics.inv okeRunnabl e(ThreadPo ol.java:26 6)
at jrunx.scheduler.WorkerThre ad.run(Wor kerThread. java:66)
java.lang.NullPointerExcep
at com.adobe.fontengine.fontm
at com.adobe.fontengine.font.
at com.adobe.fontengine.font.
at com.adobe.fontengine.font.
at com.adobe.fontengine.fontm
at com.adobe.internal.pdftool
at com.adobe.internal.pdfm.ut
at com.adobe.internal.pdfm.ut
at com.adobe.internal.pdfm.ut
at com.adobe.internal.pdfm.ut
at com.adobe.internal.pdfm.PD
at coldfusion.document.Docume
at coldfusion.pdf.PDFForm.pop
at coldfusion.tagext.lang.PDF
at cfcreditapp22ecfm266578086
at coldfusion.runtime.CfJspPa
at coldfusion.tagext.lang.Inc
at coldfusion.filter.Cfinclud
at coldfusion.filter.Applicat
at coldfusion.filter.RequestM
at coldfusion.filter.Monitori
at coldfusion.filter.PathFilt
at coldfusion.filter.LicenseF
at coldfusion.filter.Exceptio
at coldfusion.filter.ClientSc
at coldfusion.filter.BrowserF
at coldfusion.filter.NoCacheF
at coldfusion.filter.GlobalsF
at coldfusion.filter.Datasour
at coldfusion.filter.CachingF
at coldfusion.CfmServlet.serv
at coldfusion.bootstrap.Boots
at jrun.servlet.FilterChain.d
at coldfusion.monitor.event.M
at coldfusion.bootstrap.Boots
at jrun.servlet.FilterChain.d
at jrun.servlet.FilterChain.s
at jrun.servlet.ServletInvoke
at jrun.servlet.JRunInvokerCh
at jrun.servlet.JRunRequestDi
at jrun.servlet.ServletEngine
at jrun.servlet.http.WebServi
at jrunx.scheduler.ThreadPool
at jrunx.scheduler.ThreadPool
at jrunx.scheduler.ThreadPool
at jrunx.scheduler.WorkerThre
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Platform, Locale, and Platform Name must not be null
The easiest way to deal with this kind of error is
<cfparam name="Platform" default="">
which creates a variable with a zero length string as it's default value. The default value can be anything that's appropriate to your data type.
There are other ways to deal with this as well which have different effects depending on the situation