IBM Business Process Manager


CWLLG2015E Wrapped java.lang.NullPointerException


Any idea why I am getting exception in below code:-
//store the original value;
var temp = tw.system.serializer.toXml(tw.local.requirementGatheringData);
var count=0;
function removeCamma(dataref){
log.info("Count:"+count++);
if(dataref && dataref.listLength){ log.info("first if")
//log.info("dataref.listLength:"+dataref.listLength);
for ( var idx = 0 ; idx < dataref.listLength ; idx++ ) {
if(dataref[idx]){
removeCamma(dataref[idx]);
}
}
}
else{ log.info("first else")
if(dataref && dataref.propertyNames && dataref.propertyNames.length){
log.info("2nd if")
for(var i=0; dataref && dataref.propertyNames&&(i < dataref.propertyNames.length); i++){ log.info("for loop")
if(typeof dataref[dataref.propertyNames[i]] == 'object' ){ log.info("object if")
if(dataref[dataref.propertyNames[i]]){
removeCamma(dataref[dataref.propertyNames[i]]);
}
}
else{ log.info("else if")
if(typeof dataref[dataref.propertyNames[i]] == 'string'){
log.info("Before>>"+dataref.propertyNames[i]+">>>"+dataref[dataref.propertyNames[i]]+"<<<")
if(dataref[dataref.propertyNames[i]].indexOf("'") != -1){
dataref[dataref.propertyNames[i]] = dataref[dataref.propertyNames[i]].replace(/[']/g, "''");
}
log.info("After>>"+dataref.propertyNames[i]+">>>"+dataref[dataref.propertyNames[i]]+"<<<")
}
}
}
}
}
}
removeCamma(tw.local.requirementGatheringData);
Exception Below
[6/1/15 17:05:51:953 GST] 000002f2 wle_javascrip I first else
[6/1/15 17:05:51:953 GST] 000002f2 wle E CWLLG2015E: An unexpected runtime exception occurred. See exception for more details. Error: Wrapped java.lang.NullPointerException.
org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException
Details Exception and debug traces attached
Found similar error here:-
https://www.ibm.com/developerworks/community/forums/atom/download/SystemOut.txt?nodeId=87dbc681-505a-4264-8bd2-ee0b1f15090d
Please have a look at JR49928. The exception seems to be the same that you get.

Related Links

Junit with Coach
Embedding another web app into Coaches .
Token not moving from IME to the next component
Error while logging into prcess designer
Does this AJAX feature work any more?
Xpath Expression (IBM BPM 8)
Performance issue with XML Parsing
BPM 8.0 : Making link behave like button
Sorting Process Portal v7.5.1.1
Sorting Tasks Based on Priority in Process Portal BPM 8.0.1
Can we use Javascript / DOJO Script to go to the Next Coach on Clicking a Button
Images not displying in coach through the Process Portal
AIS - Business Object Dates being truncated to prior day
Installing process app: Failed to execute advanced transaction
eed to diasable the decurity for WAS admin
error while logging into process designer

Categories

DW
Compiler Cafe
IBM messaging
Jazz for Service Manag...
Tivoli Business Servic...
BigFix
ibm_ru
Italy
Partnerworld
Globalization
IBM Connections Meetin...
IBM Verse
IBM Kenexa LCMS
Tivoli Security Compli...
IBM Security Identity ...
Marketing Operations
Interact
Cloud resilience
IBM SmartCloud Applica...
Real Estate Management
IBM Tivoli Monitoring ...
Transportation Managem...
Cast Iron Web Manageme...
SPSS Community News
IBM SPSS Modeler
BI Strategies
WebSphere
Lotus
Rational DOORS DXL
db2
Insurance
HeapAnalyzer
RSDC
Partnerworld blogs
Networking
XML
IBM DB2 Express-C Forum
Part 2 - Challenge #12...
Công ty thiết kế website
WAPL and SOE - Workloa...
hrdf
Digital Advertising
IBM Integration Design...
IBM Monitoring and Dia...
IBM Visual Configurati...
AppScan Source
AppScan Standard
IBM Security Identity ...
General
Administration
Reports
QRadar Vulnerability M...
Investigating with QRadar
Network Surveillance, ...
Transportation Managem...
Gentran Mapping
Business Solutions Forums
Comments on the OMS Co...
Connect:Express Windows
Multi-Channel Fullfill...
Analytics & Reporting
Your Selling System So...
C3 Pricing
C3 Configurator
C3 Analyzer Q&A
C3 Analyzer Customization
Upgrade Issues
Platform Issues
Internationalization (...
Announcements -
Outbound planning
Inventory
IDE Tools
Extensibility
Oracle
WebSphere-MQ
WebSphere-Misc
Weblogic
Mathematical Programming
General Discussions
Radar charts
CPLEX Optimizers
Business Rules Best Pr...
Форумы ОС Linux
WebSphere MQ Family
Storage Management
IBM SmartCloud Cost Ma...
IBM i: Firmware
IBM SCORE
iPhone
PowerVM Forum
Performance Tools Forum
AIX Networking
System i Hardware Mana...
IBM Java Runtimes and ...
Server-side Java progr...
IBM WebSphere SDK for ...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile