Finding java.util.MissingResourceException exception
I want to access the parameters which are set in the '.properties' file using "ResourceBundle" .
I am accessing this in '.jsp' file but I am finding the exception as -
'Exception while Downloadingdoc:java.util.MissingResourceException: Can't find bundle for base name Newsdb, locale en_US'
so plz help me out.
Thanks
manvik
Why not just use a Properties class.....
Then do a properties.load()
Similar Messages
-
Hi All,
We are on Netweaver 7.01 SP14. (well I understand we are way behind patch levels, but a simple file upload should be working ?/)
We are trying to upload (HTML &/ Image) a file in one of the KM's public folder.
As and when we select folder and click on upload we get the below message:
Below is the error trace details:
Full Message Text
com.sapportals.wdf.WdfException
at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:688)
at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
--- Nested WDF Exception -----------------------
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xtlt_Required
at java.util.ResourceBundle.getObject(ResourceBundle.java:327)
at java.util.ResourceBundle.getObject(ResourceBundle.java:324)
at java.util.ResourceBundle.getString(ResourceBundle.java:287)
at com.sapportals.wcm.util.resource.ResourceBundles.getString(ResourceBundles.java:55)
at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:150)
at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:176)
at com.sapportals.wcm.control.edit.ResourceUploadControl.renderUploadFileContent(ResourceUploadControl.java:773)
at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:655)
at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)Hi Vijay,
Thanks for the quick reply.
I have gone through the notes 1535201 & now on 1606563 after your advise.
Both the notes says the fix is available on 7.01 after SP 07 and we are on SP 14 already.
Also just in case I did checked with our basis and they confirmed we are a head and we have the above notes in our release already.
Unfortunately the notes are not the solution to the investigation till date.
Thanks,
Sai -
Java.util.MissingResourceException: Can't find bundl :ERROR plz Help
hey guys am trying to connect to my data base and view data toa jsp page but i got this error :
Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.util.MissingResourceException: Can't find bundle for base name DataBase, locale en_US
root cause
java.util.MissingResourceException: Can't find bundle for base name DataBase, locale en_US
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.
here is the code database _proper
drivername=oracle.jdbc.driver.OracleDriver
dataSourceName=jdbc/orcl/WOH
dsLookupPrefix=WOH.getstring("dslookupprefix");
user=SYSTEM
password=SYSTEM
location=192.168.1.3
port=1521
sid=ORCL
and here is the Dao connection class
package version.dao;
import java.util.*;
//to provide JDBC classes
import java.sql.*;
* @author freddy
public class DAODirect {
* Insert the type's description here.
* Creation date: (12/25/2006 12:13:56 PM)
* @author: Administrator
private Connection connection = null;
private Statement statement = null;
private String driverName =null;// "oracle.jdbc.driver.OracleDriver";//null;
private String url =null;//"jdbc:oracle:thin:scott/tiger@localhost:1521:ORCL";//null;
private ResultSet rs = null;
private String columnNames[];
private int columnCount;
private Object[] record;
* PFSDataBase constructor comment.
public DAODirect() {
super();
ResourceBundle database = ResourceBundle.getBundle("DataBase");
//1 get the driver name
driverName = database.getString("drivername");
String user = database.getString("user");
String password = database.getString("password");
String location = database.getString("location");
String port = database.getString("port");
String sid = database.getString("sid");
//String dataSourceName=database.getString("dataSourceName");
//2- get the Connection url
url =
"jdbc:oracle:thin:"
+ user
+ "/"
+ password
+ "@"
+ location
+ ":"
+ port
+ ":"
+ sid;
System.out.println("++++++++"+url);
System.out.println("++++++++"+url);
public void closeStatement() {
try {
if (statement != null) {
statement.close();
statement = null;
} catch (Exception e) {
public void commitDB() throws Exception{
connection.commit();
public boolean connect() throws Exception {
try {
if (connection == null) {
//1- loading of JDBC Drivers
Class.forName(driverName);
System.out.println(url);
//this line =conn = DriverManager.getConnection(
// "jdbc:oracle:thin:@noizmaker:1521:osiris",
// "scott", "tiger");
//2- Establish Connection
connection = DriverManager.getConnection(url);
return true;
} else {
throw (
new Exception("connection is not disconnected, you have to disconnect this connection before reconnecting it again"));
} catch (SQLException e) {
e.printStackTrace();
throw (new Exception("Unable to connect to database,Error Loading Driver"));
public void createStatement() throws Exception {
if (statement != null) {
closeStatement();
if (connection == null) {
throw (new Exception("database is not connected"));
statement = connection.createStatement();//3-bulit_in funnction that create and send sql statment
public void disconnect() throws Exception {
if (connection != null) {
try {
connection.close();
connection = null;
} catch (Exception e) {
//isConnected = false;
} else {
throw (new Exception("can not disconnect database"));
// ResultSet is: A table of data representing a database result set, which is usually generated by executing a statement that queries the database
public ResultSet execute(String query) throws Exception {
if (connection == null) {
throw (new Exception("database is not connected"));
if (statement == null) {
throw (new Exception("statement is not created"));
return statement.executeQuery(query);//bulit_in funnction that 4-execute given sql statment
public void getColumnNames(ResultSet result) throws Exception {
try {
//An object that can be used to get information about the types and properties of the columns in a ResultSet object.
ResultSetMetaData resultsMetaData = result.getMetaData();
columnCount = resultsMetaData.getColumnCount();
columnNames = new String[columnCount];
for (int i = 1; i < columnCount + 1; i++) {
columnNames[i - 1] = resultsMetaData.getColumnName(i).trim();//trim to remove whaite space
} catch (Exception e) {
throw (new Exception("Result Set Columns " + e.getMessage()));
public Connection getConnection(){
return connection;
public void rollBack() throws Exception{
connection.rollback();
public Vector rsToVector(ResultSet rs) throws Exception {
getColumnNames(rs);
Vector resultSetData = new Vector();
resultSetData.addElement(columnNames);
try {
this.record = new Object[columnCount];
while (rs.next()) {
//ave each raw
Object[] record = new Object[columnCount];
for (int i = 1; i < columnCount + 1; i++) {
Object entry = rs.getObject(i);
record[i - 1] = entry;
// here we print the whole tabel after we save each record in record[]
resultSetData.addElement(record);
return resultSetData;
} catch (Exception e) {
resultSetData.clear();
throw (new Exception("Result Set : " + e.getMessage()));
public void setAutoCommit(boolean commitType) throws Exception{
connection.setAutoCommit(commitType);
public boolean update(String query) throws Exception {
if (connection == null) {
throw (new Exception("database is not connected"));
try {
//create query and execute it
createStatement();
statement.execute(query);
return true;
} catch (Exception e) {
throw (
new Exception(
"Error in manipulating query :" + e.getMessage()));
} finally {
closeStatement();
* To change this template, choose Tools | Templates
* and open the template in the editor.
package version.dao;
import java.sql.ResultSet;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.SQLException;
import javax.sql.DataSource;
import javax.naming.InitialContext;//unknown
import java.util.ResourceBundle;//unknown
* @author freddy
* This is the Data Access Object (DAO), which deals with all Database transactions,
* connections,and pooling (through Data Source implementation).
* This class configured through the database.properties file
* which contains all the database parameters
* @author: Tariq Qasem
public class DAO {
private Connection connection = null;
private Statement statement = null;
private String dataSourceName =null; //MyDataSource; //null;
private String dsLookupPrefix = null;//java:comp/env/;
//null;
private ResultSet rs = null;
* DAO constructor comment.
public DAO() {
super();
ResourceBundle database = ResourceBundle.getBundle("DataBase");
dataSourceName = database.getString("dataSourceName");
dsLookupPrefix = database.getString("dsLookupPrefix");
* @param request PortletRequest
* @return void
* this method close pooled statement
public void closeStatement() {
try {
if (statement != null) {
statement.close();
statement = null;
} catch (Exception e) {
* @param request PortletRequest
* @return boolean
* this method connects to the database
public boolean connect() throws Exception {
try {
if (connection == null) {
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(dsLookupPrefix+dataSourceName);
connection = ds.getConnection();
return true;
} else {
throw (
new Exception("connection is not disconnected, you have to disconnect this connection before reconnecting it again"));
} catch (SQLException e) {
e.printStackTrace();
throw (new Exception("Unable to connect to database"));
public void createStatement() throws Exception {
if (statement != null) {
closeStatement();
if (connection == null) {
throw (new Exception("database is not connected"));
statement = connection.createStatement();
* @param request PortletRequest
* @return void
* this method disconnect the database connection
public void disconnect() throws Exception {
if (connection != null) {
try {
connection.close();
connection = null;
} catch (Exception e) {
} else {
throw (new Exception("can not disconnect database"));
* @param request PortletRequest
* @return boolean
* this method updates (executes) Insert and Updates queries on the database
/* public boolean update(String query) throws Exception {
if (connection == null) {
throw (new Exception("database is not connected"));
try {
createStatement();
statement.execute(query);
return true;
} catch (Exception e) {
throw (
new Exception(
"Error in manipulating query :" + e.getMessage()));
} finally {
closeStatement();
public int update(String query) throws Exception {
int records = 0;
if (connection == null) {
throw (new Exception("database is not connected"));
try {
createStatement();
records = statement.executeUpdate(query);
return records;
} catch (Exception e) {
throw (
new Exception(
"Error in manipulating query :" + e.getMessage()));
} finally {
closeStatement();
* @param request PortletRequest
* @return ResultSet
* this method executes select queries on the database
public ResultSet execute(String query) throws Exception {
if (connection == null) {
throw (new Exception("database is not connected"));
if (statement == null) {
throw (new Exception("statement is not created"));
return statement.executeQuery(query);
* @param request PortletRequest
* @return void
* this method to set the commit transaction on the database to be auto
public void setAutoCommit(boolean commitType) throws Exception{
connection.setAutoCommit(commitType);
* @param request PortletRequest
* @return void
* this method commit database transaction
public void commitDB() throws Exception{
connection.commit();
* @param request PortletRequest
* @return void
* this method rollback database transaction
public void rollBack() throws Exception{
connection.rollback();
* @param request PortletRequest
* @return Connection
* this method return the database connection as java object
public Connection getConnection(){
return connection;
and this is my jsp page:
<%--
Document : index
Created on : Mar 16, 2008, 10:14:55 AM
Author : freddy
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h2>Hello World!</h2>
<%
version.dao.DAODirect dao=new version.dao.DAODirect();
try
boolean connected = dao.connect();
dao.createStatement();
String query = " SELECT ID,NAME FROM version";
java.sql.ResultSet rs = dao.execute(query);
while(rs.next()){
out.println(rs.getInt("P_ID")+" ");
out.println(rs.getString("P_FN")+"<BR>");
dao.closeStatement();
dao.disconnect();
catch(Exception e)
out.print(e.getMessage());
%>
</body>
</html>
plz guys help me i need this for my graduation project also if anyone know kind of tutorialsfor building J2me/J2EE application using wifi plzzzsend me links or anything ,thx in advanceThis can happen after modifying the calendar properties and not reloading the application. Try reloading or restarting the application. This could also mean the Calendar.properties file has been moved, deleted, or become corrupted. A default properties file can be found at:
"Tomcat-install-dir"\webapps\"your-web-application"\WEB-INF\classes\defaultPropFile\. Copy this file to: "Tomcat-install-dir"\webapps\"your-web-application"\WEB-INF\classes\. Stop and restart the web server. From a browser, run "hostname"/"your-web-application"/src/setupCalendar.jsp. -
Class java.util.MissingResourceException
Hi all -
I'm working on implementing the DocumentAccessReport =>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d28a67b-0c01-0010-8d9a-d7e6811377c0
I had this working for a while and recently decided to add some enhancements. However, my local install of EP7 expired. After a clean install of windows and a new installation of EP7, I am unable to get the above report to run. I get the following error.
Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US
Error log ==>
java.util.MissingResourceException: Can't find bundle for base name com.sap.netweaver.km.stats.reports.DocumentAccessReport, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:807)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:701)
at com.sapportals.wcm.util.resource.ResourceBundles.getBundle(ResourceBundles.java:152)
at com.sapportals.wcm.util.resource.ResourceBundles.getString(ResourceBundles.java:88)
at com.sapportals.wcm.util.resource.ResourceBundles.getString(ResourceBundles.java:106)
at com.sap.netweaver.km.stats.reports.DocumentAccessReport.getDescription(DocumentAccessReport.java:287)
at com.sapportals.wcm.repository.manager.reporting.monitor.ReportComponent$ReportWrapper.getDescription(ReportComponent.java:256)
at com.sapportals.wcm.repository.manager.reporting.types.RPReportHandler$DescriptionGen.getProperty(RPReportHandler.java:175)
at com.sapportals.wcm.repository.manager.reporting.types.RPPropHandler.getProperties(RPPropHandler.java:110)
at com.sapportals.wcm.repository.manager.reporting.types.RPPropHandler.getProperties(RPPropHandler.java:143)
at com.sapportals.wcm.repository.manager.reporting.RPPropertyManager.getProperties(RPPropertyManager.java:83)
at com.sapportals.wcm.repository.ResourceImpl.internalGetProperties(ResourceImpl.java:3653)
at com.sapportals.wcm.repository.ResourceImpl.internalGetPropertiesExtended(ResourceImpl.java:1313)
at com.sapportals.wcm.repository.ResourceImpl.getProperties(ResourceImpl.java:1278)
at com.sapportals.wcm.repository.CollectionImpl.getChildren(CollectionImpl.java:378)
at com.sapportals.wcm.service.resourcelistfilter.cm.ResourceListFilter.getChildren(ResourceListFilter.java:420)
at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.initialfilter(AbstractRendererStatus.java:329)
at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.initializeSelectionList(AbstractRendererStatus.java:299)
at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.initialize(AbstractRendererStatus.java:285)
at com.sapportals.wcm.rendering.collection.AbstractRendererStatus.setParent(AbstractRendererStatus.java:99)
at com.sapportals.wcm.rendering.collection.LightCollectionRenderer.createStatus(LightCollectionRenderer.java:861)
at com.sapportals.wcm.rendering.collection.LightCollectionRenderer.renderAll(LightCollectionRenderer.java:585)
at com.sapportals.wcm.rendering.control.cm.NeutralControl.render(NeutralControl.java:164)
at com.sapportals.wcm.rendering.layout.cm.MenuTreeListLayoutController.render(MenuTreeListLayoutController.java:127)
at com.sapportals.wcm.rendering.control.cm.WdfProxy.render(WdfProxy.java:1717)
at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
at com.sapportals.wdf.WdfCompositeController.doInitialization(WdfCompositeController.java:282)
at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:660)
at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.htmlb.Container.preRender(Container.java:120)
at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)
at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:130)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:75)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
I've seen similar threads on this forum ( https://www.sdn.sap.com/irj/sdn/thread?messageID=1145093� ), but I was not able to resolve my issue base on these suggestions.
I have tried to compile the par file using both j2sdk1.4.2_08 and j2sdk1.4.2_09.
Any suggestions ?
Thanks !Hello David,
This is a ResourceBundle exception, which can be solved by creating a new properties file DocumentAccessReport<b>_en</b>.properties by copying the exising
DocumentAccessReport.properties file from your <b>com.sap.km.service.AccessStatisticApplication.zip</b> file.
So files DocumentAccessReport.properties and DocumentAccessReport<b>_en</b>.properties are both with same contents residing under:
com.sap.km.service.AccessStatisticApplication.zip\AccessStatisticApplication\src.api\com\sap\netweaver\km\stats\reports\
So redeploying after this changes should solve your problem.
Greetings,
Praveen Gudapati
p.s. Points are always welcome for helpful answers -
JDK 8u40 Early Access Release - Build b12 - java.util.MissingResourceException
Hi guys,
we are developing a Java Web Start application which uses SOAP services and we get the following exception if we try to start our application with the current JDK 8u40 Early Access Release.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
at javax.xml.soap.FactoryFinder.find(Unknown Source)
at javax.xml.soap.FactoryFinder.find(Unknown Source)
at javax.xml.soap.SAAJMetaFactory.getInstance(Unknown Source)
at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
at com.sun.xml.internal.ws.api.SOAPVersion.<init>(Unknown Source)
at com.sun.xml.internal.ws.api.SOAPVersion.<clinit>(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseImport(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseImport(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
at javax.xml.ws.Service.<init>(Unknown Source)
Caused by: java.util.MissingResourceException: Can't find com.sun.xml.internal.messaging.saaj.soap.LocalStrings bundle
at java.util.logging.Logger.setupResourceInfo(Unknown Source)
at java.util.logging.Logger.<init>(Unknown Source)
at java.util.logging.LogManager$SystemLoggerContext.demandLogger(Unknown Source)
at java.util.logging.LogManager.demandSystemLogger(Unknown Source)
at java.util.logging.Logger.demandLogger(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit>(Unknown Source)
... 45 more
As you can see, the exception will be thrown when we try to initialize our Service class which uses the Service(java.net.URL paramURL, javax.xml.namespace.QName paramQName) constructor of the javax.xml.ws.Service class.
The problem exists only in case of Java Web Start and since Java 8u40. The exception will not be thrown if I start our application in eclipse.
Is this a known bug? I haven't found a related bug in the bug-database.
Thanks in advance!
Best Regards SteveAm I the only one with that problem?
-
JNDI Context.close() throws java.util.MissingResourceException
Our applet uses JNDI to find EJBs and I am porting from WL8.1 to WL10.5.3. Everything works well until we attempt to close the Context object, which throws the following exception:
java.util.MissingResourceException: Can't locate bundle for class 'weblogic.jndi.JNDILogLocalizer'
at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:429)
at weblogic.i18n.logging.CatalogMessage.<init>(CatalogMessage.java:48)
at weblogic.jndi.JNDILogger.logDiffThread(JNDILogger.java:75)
at weblogic.jndi.internal.WLContextImpl.close(WLContextImpl.java:107)
at com.tcm.cfm.client.dbclient.DBEntityClient.disconnect(Unknown Source)
at com.tcm.cfm.client.cfm.CfmDBClient.disconnect(Unknown Source)
Seems something is missing from the classpath... but what? Info on i18n suggests it can be used to localize error messages... but I think this error is generated in WL's own code, not ours.
Any suggestions how I can fix this?
TIA,
KenThis can happen after modifying the calendar properties and not reloading the application. Try reloading or restarting the application. This could also mean the Calendar.properties file has been moved, deleted, or become corrupted. A default properties file can be found at:
"Tomcat-install-dir"\webapps\"your-web-application"\WEB-INF\classes\defaultPropFile\. Copy this file to: "Tomcat-install-dir"\webapps\"your-web-application"\WEB-INF\classes\. Stop and restart the web server. From a browser, run "hostname"/"your-web-application"/src/setupCalendar.jsp. -
Java.util.MissingResourceException - A Bug?
Hi all,
I think there maybe an bug with the plugin /deploy.jar the JRE 1.5.0_06.
There is an exception at the end when my signed applet is trying to install an extension for the JRE, it seems to be caused by
java.util.MissingResourceException: Can't find resource for bundle com.sun.deploy.resources.Deployment, key security.dialog.buttonYes.acceleratorKey
the resources are defined in com.sun.deploy.resources.Deployment.java and it does not contain that key.
Is this a bug?
This happens in both Internet explorer and mozilla/firefox.
Thanks for any help,
Ashley
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\hayesac
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading proxy configuration from Netscape Navigator ...
network: Reading user preference file from C:\DOCUMENTS AND SETTINGS\HAYESAC\APPLICATION DATA\Mozilla\Profiles\default\c8ovvpcr.slt\prefs.js
network: network.proxy.ftp=192.168.50.8
network: network.proxy.ftp_port=8080
network: network.proxy.gopher=192.168.50.8
network: network.proxy.gopher_port=8080
network: network.proxy.http=192.168.50.8
network: network.proxy.http_port=8080
network: network.proxy.socks=192.168.50.8
network: network.proxy.socks_port=8080
network: network.proxy.ssl=192.168.50.8
network: network.proxy.ssl_port=8080
network: Proxy enable: 1
network: Done.
network: Loading browser proxy configuration ...
network: Done.
network: Proxy Configuration: Browser Proxy Configuration
basic: Cache is enabled
basic: Location: C:\Documents and Settings\hayesac\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
basic: Maximum size: unlimited
basic: Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
basic: Registered modality listener
security: Accessing keys and certificate in Mozilla user profile: C:\DOCUMENTS AND SETTINGS\HAYESAC\APPLICATION DATA\Mozilla\Profiles\default\c8ovvpcr.slt
security: JSS package is not found
security: JSS is not configured
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@480457, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@6b97fd
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
network: Connecting [manually removed] with proxy=DIRECT
security: Loading Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loaded Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loading SSL Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loaded SSL Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment session certificate store
security: Checking if SSL certificate is in Deployment permanent certificate store
security: Check if certificate can be verified using certificates in Root CA certificate store
security: Certificate to be verified:
[certificate trace stuff manually removed]
liveconnect: JavaScript: UniversalJavaPermission enabled
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@6b97fd
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@480457, refcount=0
basic: Caching classloader: sun.plugin.ClassLoaderInfo@480457
basic: Current classloader cache size: 1
basic: Done ...
basic: Joining applet thread ...
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Unregistered modality listener
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
liveconnect: JavaScript: UniversalBrowserRead enabled
liveconnect: JavaScript: UniversalJavaPermission enabled
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@288051, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@90cb03
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: httpCompression = true
network: Connecting [manually removed]
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment session certificate store
network: Connecting https://[manually removed]
basic: Downloading https://[manually removed]
basic: encoding = null for [manually removed]
basic: Cached file name: [manually removed]
extensions: Installing optional package Extension : title(null), name([manually removed]), spec vendor(Macalla Software), spec version(3.6.3), impl vendor(Macalla Software), impl vendor id(com.macalla), impl version(3.6.3), impl url([manually removed])
java.util.MissingResourceException: Can't find resource for bundle com.sun.deploy.resources.Deployment, key security.dialog.buttonYes.acceleratorKey
at java.util.ResourceBundle.getObject(Unknown Source)
at com.sun.deploy.resources.ResourceManager.getAcceleratorKey(Unknown Source)
at com.sun.deploy.util.DialogFactory.showDownloadDialogImpl(Unknown Source)
at com.sun.deploy.util.DialogFactory.access$200(Unknown Source)
at com.sun.deploy.util.DialogFactory$4.execute(Unknown Source)
at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)
extensions: Optional package download not granted by user
sun.misc.ExtensionInstallationException: User denied installation of [manually removed]
at sun.plugin.extension.ExtensionInstallationImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.extension.ExtensionInstallationImpl.installExtension(Unknown Source)
at sun.misc.ExtensionDependency.installExtension(Unknown Source)
at sun.misc.ExtensionDependency.checkExtension(Unknown Source)
at sun.misc.ExtensionDependency.checkExtensions(Unknown Source)
at sun.misc.ExtensionDependency.checkExtensionsDependencies(Unknown Source)
at sun.misc.URLClassPath$JarLoader.parseExtensionsDependencies(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getClassPath(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
basic: Modality pushed
basic: Modality popped
extensions: Optional package installation failed.
security: Loading certificates from Deployment session certificate storeGuys,
i am having almost the same problem with my signed applet, it was working on all previous jres, now it crashes when trying to download imageio, giving the error: sun.misc.ExtensionInstallationException: User denied installation of...
Is this the same bug? is it really a bug?
besides, Rita, you mentioned filing it as a bug, but i cannot find it in the bug database
Thanks guys,
Best,
Mohammad -
How to solve this error java.util.MissingResourceException
Hi Friends,
I had developed one web dynpro application by using Internationalization - I18N of WebDynPro (Java) Application (Blog) but I got one error that is
<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
Actually i created two properties file
1. lang_en.properties
2. lang_ta.properties
I stored this two properties file in this package com.sap.example.language
and this my code in DOInit()
sessionLocale = WDClientUser.getCurrentUser().getLocale();
resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
catch (WDUMException e)
e.printStackTrace();
wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
How to solve this error?
Guide me.
Advance Thanks,
BalajiHi Friends,
I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is
<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
Actually i created two properties file
1. lang_en.properties
2. lang_ta.properties
I stored this two properties file in this package com.sap.example.language
and this my code in DOInit()
sessionLocale = WDClientUser.getCurrentUser().getLocale();
resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
catch (WDUMException e)
e.printStackTrace();
wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
How to solve this error?
Guide me.
Advance Thanks,
Balaji -
Error : java.util.MissingResourceException
Hi Friends,
I had developed one web dynpro application by using Internationalization - I18N of WebDynPro (Java) Application (Blog) but I got one error that is
<b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b> Actually i created two properties file
1. lang_en.properties
2. lang_ta.properties
I stored this two properties file in this package com.sap.example.language
and this my code in DOInit()
sessionLocale = WDClientUser.getCurrentUser().getLocale();
resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
catch (WDUMException e)
e.printStackTrace();
wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
How to solve this error?
Guide me.
Advance Thanks,
Balaji1. Place your lang_en.properties, lang_ta.properties in dist/PORTAL-INF/classes
2. In PORTALAPP.XML add this property to your Component config:
<property name="ResourceBundleName" value="lang"/>
3. In your message class use this modified method to get resources:
public static String getString(IPortalComponentRequest request, String key) {
try {
return request.getResourceBundle().getString(key);
} catch (MissingResourceException e) {
return key; -
Java.util.MissingResourceException: Missing device property
Hi all.
I've installed:
Sun Java Wireless Toolkit 2.5.2 for CLDC
Java Platform Micro Edition Software Development Kit 3.0 Early Access ( i suposed that it isn't necessarly)
JDK 6 Update 13
NetBeans IDE 6.5.1 (All)
After instalation i run WTK - > open sample project -> run and get this:
Warning: Could not start new emulator process:
java.util.MissingResourceException: Missing device property
Project is building without problems but i can't run it ;/ In NetBeans i have similiar problem i can't run sample projects because i have this:
Starting emulator in execution mode
com.sun.kvem.midletsuite.InvalidJadException: Reason = 22
The manifest or the application descriptor MUST contain the attribute: MIDlet-1
I've re-installed everything many times without windows :) I tried to search solutions for that but i couldn't find anything usefull.
I will be very apreciate for helping me.
Edited by: grubasek on Apr 1, 2009 3:29 AM
i have of course more partitions and WTK, NetBeans, ME SDK 3.0 are installed on other than C: but JDK is installed on C: in program files where in path is space. It has any meaning?Did you figure this out? I've got exactly the same problem. Same error that is getting reported. The resource missing is the AMConfig.properties file which is required for the Access Manager Policy agent. Agent doesn't work until I get the WebSphere config correct.
Thanks in advance. -
Getting java.util.MissingResourceException in BPM Application
Hi All,
Can anyone please help me to say what is root cause of the below mentioned error message :
java.util.MissingResourceException: Can't find resource for bundle oracle.bpel.worklistapp.resource.WorklistResourceBundle, key BPM Worklist
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getObject(ResourceBundle.java:371)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
at oracle.bpel.worklistapp.util.I18nUtil.fmt(I18nUtil.java:140)
I am getting error at time of loading of the first page of HT(Human Task) task flow. I have created a simple BPM application, containing one Initiator activity. Using the .task file i have created a task flow and create the custom (Search page , fetching data from Database) page for the Initiator activity.
Any suggestion would be helpful to me.
Thanks in Adv.Hi
1. Some background information. Just like any other typical WebApp that allows internationalization (i18n), most of the times, the Label name are NOT hard coded in the UI jspx files. Instead we use standard ResourceBundle concepts and use Keys in the ui files. We have language specific properties file that have these keys and corresponding value in that language (based on country).
2. Coming back, looks like there is some discrepancy on your application and the domain. This word "BPM" or "TASK" is introduced (AFAIK) in Comments and Attachments Section to provide the scoping (Sharing) either to entire Process (BPM) or just to that Task alone (TASK). This was introduced only in Feature Pack release for SOA/BPM 11.5. So just plain old SOA 11.5 do not have this. But if you apply FP, you will see these 2 new stuff. And ofcourse latest SOA 11.6 etc. So most probably your domain is not applied with FP, but you are trying to deploy application from JDeveloper that had FP applied like that.
Permanent fix is, make sure that you have JDeveloper updated with FP. Also update your SOA Env with FP. Then deploy your Application. Thats when the new ResourceBundle gets added as part of FP and this issue will not be there.
Quick solution you can try is, open your taskDetails jspx file. Search for ALL occurences of word "BPM" and "TASKS". See those line to get an idea. Replace the label or code where it goes to ResourceBundle with hard coded value of like "BPM" or "TASK". This works in UI. But if backend JAVA throws error, then you have to follow above FP steps and fix it permanently.
Example in all taskDetails jspx file for "TASK" word:
<af:selectItem label="#{resources.TASK}" value="TASK" id="si14"/> ----->>> OLD CODE
<af:selectItem label="TASK" value="TASK" id="si14"/> ------>>> MODIFY FOR TEMP FIXThanks
Ravi Jegga -
What causes java.util.MissingResourceException?
Hi,
We execute our java program and get the followings errors. Any suggestions on what would cause these errors?
An error occurred during wizard bean change notification:
java.util.MissingResourceException: Can't find bundle for base name
PatchStings, locale en
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
12)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:683)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at
com.installshield.util.LocalizedStringResolver.resolve(LocalizedStringResolv
er.java:29)
at
com.installshield.util.LocalizedStringResolver.invokeWithValidation(Localize
dStringResolver.java:135)
at
com.installshield.util.LocalizedStringResolver.invoke(LocalizedStringResolve
r.java:148)
at
com.installshield.util.FunctionToken.getValue(StringResolver.java:235)
at
com.installshield.util.StringResolver.mergeTokens(StringResolver.java:90)
at
com.installshield.util.StringResolver.resolve(StringResolver.java:32)
at
com.installshield.wizard.service.AbstractWizardServices.resolveString(Abstra
ctWizardServices.java:254)
at
com.installshield.wizard.WizardBean.resolveString(WizardBean.java:447)
at SingleMessagePanel.initialize(SingleMessagePanel.java:45)
at
com.installshield.wizardx.panels.ExtendedWizardPanel.consoleInitialize(Exten
dedWizardPanel.java:115)
at
com.installshield.wizard.console.ConsoleWizardUI.currentBeanChanged(ConsoleW
izardUI.java:107)
at
com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardW
izardListener.java:78)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1535)
Thanks,
cssimcPlease copy/paste the EXACT code you are using. You have now posted two different lines in this thread with typos.ResourceBundle.getBundle("apprlicationresources", locale); // locale is en_USshould beResourceBundle.getBundle("applicationresources", locale); // locale is en_USif the file is calles applicationresources_en_US.properties
-
Java.util.MissingResourceException error
Hi experts
We have Installed ESS and all models are giving java.util.MissingResourceException error when I click on Language Resource. Please tell me it is problem with language settings, if so how to change the settings. I checked JCo language is set to english so can u guyz tell me where exactly is the problem.
Regards
soumyaHello,
I am having the same problem with PSS and xRPM UI. Have you identified a solution?
Thanks,
Dana -
Java.util.Data Exception when Testing Function
Hi All,
using VC I'm tring to test fuction HRPWC_RFC_AS_OVERVIEW. The field ViewId is the only one mandatory. When I've executed function I've obtained java.util.Date exception.
What does that mean? What should I set properly to test the function?
Regards,
MarekHi Marek,
I suppose you meant HRWPC_RFC_AS_OVERVIEW. This is an HR rfc that displays employees absence. I tested it in my VC and it works fine. Ill need some more details on how youve created the model in order to help you.
Regards,
Lisi -
JRE 1.6 missing/can't find java/util package
I installed Sun's JRE1.6 to mitigate the DST issue a couple
of months ago. In the past few days, my clients report when, trying
access web-services the Java Compiler throws an exception dealing
with the inability to access the java/util package.
One solution (in Japanese) purported to say that if one adds
the switch:
-Djmx.invoke.getters=true
This can help mitigate the issue (after a restart). I did for
a couple of hours but the services began failing again.
### Exception Code ###
coldfusion.jsp.CompilationFailedException: Errors reported by
Java compiler: Found 2 system errors: *** Error: Could not find
package "java/util" in:
/opt/coldfusionmx7/runtime/jre/bin/jre1.6.0/lib/ext/sunjce_provider.jar
[filepath]coldfusionmx7/runtime/jre/bin/jre1.6.0/lib/ext/sunpkcs11.jar
[filepath]coldfusionmx7/runtime/jre/bin/jre1.6.0/lib/ext/dnsns.jar
[filepath]coldfusionmx7/runtime/jre/bin/jre1.6.0/lib/ext/meta-index
[filepath]/coldfusionmx7/runtime/jre/bin/jre1.6.0/lib/ext/localedata.jar
/opt/coldfusionmx7/wwwroot/WEB-INF/classes
[filepath]/coldfusionmx7/wwwroot/WEB-INF/lib/cfmx_bootstrap.jar
/opt/coldfusionmx7/wwwroot/WEB-INF/lib/cfx.jar
[filepath]/coldfusionmx7/wwwroot/WEB-INF/lib/commons-beanutils.jar
[filepath]/coldfusionmx7/wwwroot/WEB-INF/lib/commons-collections.jar
/opt/coldfusionmx7/wwwroot/WEB-INF/lib/js.jar
[filepath]/coldfusionmx7/lib/updates/chf700003.jar
/opt/coldfusionmx7/lib/ant-launcher.jar ....
### EOF ###
SysInfo:
Solaris 2.8
CFMX Ent 7.0.0
Java Version 1.6.0b.105Thx Ian - you're correct. I've incepted 1.4.12 and
web-services are up and running *note to readers: watch your
permissons on the new files - ensure CFSvr "user" has access to new
files.
This technote details how to upgrade the JVM:
http://kb.adobe.com/selfservice/viewContent.do?externalId=2d547983&sliceId=2
Thank you both. DjlR
Maybe you are looking for
-
Alv report using templates........urgent
Hi all, Can anyone tell me what is meant by ALV report using template. I have worked on ALV reports. Can you throw some light on USING TEMPLATE. If anybody have some document. please send it to me.
-
.ai overload in Indesign (CS5.5)
We have an InDesign document that is comprised of a few dozen Illustrator line drawings (garments) that have been built individually using layers and are viewed/imported in InDesign through import options and turning off/on said individual layers. T
-
Outlook 2013 does not open after Windows / updates
Hi, I had installed Office 2013 on my Windows PC. I got updates for Office 2013 and after that my Outlook stoped working. It did not open except in safe mode. I checked similar problems and tried to remove add ins in safe mode but still does not work
-
How to tap non node area in a JTree
how can I trap area of a JTree which does not constitute the node rows???
-
Should I be able to play my itunes via my Samsund D5000 smart tv and if so how?? Can someone help please. I can see my photos from my ipod touch but cannot play the music. hould this be able to be done via wireless