IDOCs (Multiple Types) Collection in BPM---string index out of range
Hi
I am following this weblog
IDOCs (Multiple Types) Collection in BPM
1.
In Step 4
Below mapping is for N:1 transformation. (Here input will be having three different types of Abstract IDOCs and target will be having Abstract Target File type)
(iv) MM_ISU_UKGAS_NOM_to_NOM_ABS"
when I tried to 3 idoc as sender and My Message Type as the receiver
I am getting the following error message
String index out of range: 0
so how can I do this message Mapping
2.
and in Step 3.
I have just mapped
Source Idoc 1 with Source Idoc 1
Source Idoc 2 with Source Idoc 2
Source Idoc 3 with Source Idoc 3
is it right way ?
thanks
manian
Edited by: manian on Dec 8, 2008 10:49 AM
Manian,
Multiline option should be on for receiver message .
Mapping seems to be o.k.
Regards,
Similar Messages
-
Error in IDOCs (Multiple Types) Collection in BPM
Hi
I am following this scenario
IDOCs (Multiple Types) Collection in BPM
But in BPM i am getting the following error (Pls check this link)
http://www.flickr.com/photos/33169400@N05/3095091883/
where should I have to check for the errors
thanks
mainan
Edited by: manian on Dec 9, 2008 10:45 AMThe source message should be a single line container variable and the target should be a multiline container variable.
VJ -
All -
I'm new to consuming web services in JDeveloper. I'm using Oracle JDEV 10.1.3.3/OC4J. I'm using this version since it is compatible with Oracle EBS 12.1.3. My intent is to pull data from our third party recruitment app (Success Factors) and load that data into Oracle HRIS. I'm already doing this through a .NET application. I'm converting it to be a Java Concurrent Program in EBS. The code listed below is a stub call to verify I'm on the right track. I created a JDeveloper Web Services proxy project. I'm testing it locally on my windows desktop. When I'm able to consume the service successfully, then I'll think about moving it to the EBS server.
I'm getting the following error when I invoke the following service:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
End point is: https://api4.successfactors.com/sfapi/v1/soap?wsdl
Any help/assistance would be much appreciated.
Below is my code and output of my test:
package emsc.oracle.apps.emscper.sfapi.proxy;
import HTTPClient.HTTPConnection;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSession;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.IsValidSessionResponse;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Login;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResponse;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LoginResult;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Logout;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.LogoutResponse;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFCredential;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.SFParameter;
import emsc.oracle.apps.emscper.sfapi.proxy.types.sfobject_sfapi_successfactors_com.Error;
import java.io.File;
import javax.xml.rpc.ServiceFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;
import javax.xml.ws.BindingProvider;
import javax.xml.soap.SOAPException;
import java.util.Map;
import oracle.security.ssl.OracleSSLCredential;
public class SFAPITest {
// Declare members:
private String companyId;
private String userName;
private String password;
private String developerKey;
private Date effDt;
private String greaterThanEffDt;
private String lessThanEffDt;
// Declare constants:
final static private String breakLine = "+---------------------------------------------------------------------------+";
final static private String format = "yyyy-mm-dd";
private enum ReqId {
PrimaryReq(25),
PrimaryReqCEO(26),
EmCarePrimary(27),
RTI(28),
EmCareClinical(29);
private int reqId;
private ReqId() {
private ReqId(int value) {
reqId = value;
public int getReqId() {
return reqId;
// Getters and Setters:
protected String getCompanyId() {
return this.companyId;
protected void setCompanyId(String value) {
this.companyId = value;
protected String getUserName() {
return this.userName;
protected void setUserName(String value) {
this.userName = value;
protected String getPassword() {
return this.password;
protected void setPassword(String value) {
this.password = value;
protected String getDeveloperKey() {
return this.developerKey;
protected void setDeveloperKey(String value) {
this.developerKey = value;
protected Date getEffDt() {
return this.effDt;
protected void setEffDt(Date value) {
this.effDt = value;
protected String getGreaterThanEffDt() {
return this.greaterThanEffDt;
protected void setGreaterThanEffDt(String value) {
this.greaterThanEffDt = value;
protected String getLessThanEffDt() {
return this.lessThanEffDt;
protected void setLessThanEffDt(String value) {
this.lessThanEffDt = value;
public void runProgram()
SFAPIService mySFAPIService;
String CompletionText = "";
String effDtStr2 = null;
/* Code your program logic here.
* Use getJDBCConnection method to get the connection object for any
* JDBC operations.
* Use CpContext provided commit,rollback methods to commit/rollback
* data base transactions.
* Don't forget to release the connection before returning from this
* method.
/* Call setCompletion method to set the request completion status and
* completion text.
* Status values are ReqCompletion.NORMAL,ReqCompletion.WARNING,
* ReqCompletion.ERROR.
* Use Completion text message of length 240 characters. If it is more
* than 240 then full string will appear in log file and truncated 240
* characters will be used as request completion text.
try
ServiceFactory factory = ServiceFactory.newInstance();
mySFAPIService = (emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService)factory.loadService(emsc.oracle.apps.emscper.sfapi.proxy.SFAPIService.class);
SFAPI api = mySFAPIService.getSFAPI();
/// SFAPI api = new SFAPI();
//Map<String, Object> requestContext = ((BindingProvider) api).getRequestContext();
//requestContext.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
System.out.println("ServiceName => " + mySFAPIService.getServiceName().toString());
System.out.println("End Point => " + mySFAPIService.getServiceName().toString());
System.out.println(breakLine);
// Authentication: Login to SFAPI:
SFCredential credential = new SFCredential();
// Fake credentials being passed in for this post:
credential.setCompanyId("XXX");
credential.setUsername("XXX");
credential.setPassword("XXX");
credential.setDeveloperKey("XXX");
HTTPConnection httpsConnection = null;
OracleSSLCredential _credential = new OracleSSLCredential();
_credential.setWallet("\\\\\\C:\\Program Files\\Java\\jdk1.6.0_33\\jre\\lib\\security", "ParkEstes3");
/*System.setProperty("javax.net.ssl.trustStore","C:\\\\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\keystore");
System.setProperty("javax.net.ssl.trustStorePassword","changeit");
System.out.println(System.getProperty("javax.net.ssl.trustStore"));*/
// SFParameter: Define a generic SFParameter List. This is a necessary parameter
// to invoking calls in SFAPI:
/*System.setProperty("javax.net.ssl.keyStore",
"file:\\\C:\\jdk1.4.1\\jre\\lib\\security\\client.keystore");
System.setProperty("javax.net.ssl.keyStorePassword","welcome"); */
/* System.setProperty("oracle.net.wallet_location",
"(SOURCE=(METHOD=file)(METHOD_DATA=(DIRECTORY=\\\C:\Users\dparrish\Oracle\WALLETS)))"); // (2) */
File kstore = new File("C:\\OraHome_1\\jdev\\jdevbin\\jdk\\jre\\lib\\security\\jssecacerts");
boolean exists = kstore.exists();
if (!exists) {
System.out.println("Keystore does not exist");
else {
System.out.println("Keystore does exist");
System.setProperty("javax.net.ssl.trustStore", kstore.getAbsolutePath());
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
//System.setProperty("proxySet", "false");
//System.setProperty("http.proxyHost", "127.0.0.1");
//System.setProperty("http.proxyPort", "8080");
System.out.println(kstore.getAbsolutePath());
List<SFParameter> lst = new ArrayList<SFParameter>();
SFParameter param = new SFParameter();
param.setName("");
param.setValue("");
lst.add(param);
SFParameter[] sfParam = lst.toArray(new SFParameter[lst.size()]);
Login login = new Login();
try {
login.setCredential(credential);
System.out.println("1");
login.setParam(sfParam);
System.out.println("2");
LoginResponse loginResponse = new LoginResponse();
LoginResult loginResult = new LoginResult();
try {
loginResponse = api.login(login);
catch (Exception e ) {
System.out.println(e.getMessage());
System.out.println("3");
try {
loginResult = loginResponse.getResult();
catch (Exception e ) {
System.out.println(e.getMessage());
System.out.println("4");
IsValidSession vs = new IsValidSession();
IsValidSessionResponse isValidSessionResponse = api.isValidSession(vs);
System.out.println("5");
if (isValidSessionResponse.isResult()) {
System.out.println("Session is valid");
System.out.println("Result => " + loginResult.getSessionId());
System.out.println(breakLine);
Logout logout = new Logout();
LogoutResponse logoutResponse = api.logout(logout);
if (logoutResponse.isResult()) {
System.out.println("Logout of SFAPI Successful");
else {
System.out.println("Logout of SFAPI Unsuccessful");
else {
System.out.println("Session is invalid");
List<Error> errors = new ArrayList<Error>();
for (int i = 0; i < loginResult.getError().length; i++) {
errors.add(loginResult.getError()[i]);
for (int i = 0; i < errors.size(); i++) {
System.out.println("Error Indice => " + i);
System.out.println("Error Code: => " + errors.get(i).getErrorCode());
System.out.println("Error Message: => " + errors.get(i).getErrorMessage());
System.out.println(breakLine);
} // end for loop of SFObject errors
} // end InvalidSession
catch (Exception e)
System.out.println("Session Credential Exception");
System.out.println("Exception => " + e.getMessage());
System.out.println(breakLine);
catch (Exception e)
System.out.println("Parameter List Exception");
System.out.println("Exception => " + e.getMessage());
System.out.println(breakLine);
} // end runProgram
// Constructor:
public SFAPITest() {
} // end constructor
public static void main (String args[]) {
try
SFAPITest test = new SFAPITest();
test.runProgram();
catch (Exception e) {
System.out.println("main exception => " + e.getMessage());
} // SFAPITest
Here is the output with trace:
WARNING: Unable to connect to URL: https://api4.successfactors.com:443/sfapi/v1/soap due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
Session Credential Exception
Exception => ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: String index out of range: -7
+---------------------------------------------------------------------------+
Process exited with exit code 0.The other end is throwing back a programming error.
That might be because you are sending incorrect data and the other end fails to validate it.
You might be able to guess based on your C# code. But, since you are using soap one generic solution is available to you.
- Get an http proxy interceptor like wireshark.
- Run it while your C# app runs, collect the http requests from that.
- Run it while running your java code, collect the http requests from that.
Compare the two. -
BI Publisher : view Template HTML with graph=String index out of range: -1
Hello,
Do you have the same problem : I have made an rtf template with graphics, I have published it and when I edit it with BI Publisher as HTML model, I have the error :
String index out of range: -1
but I am able to see it as RTF model ? As PDF model, I don't have error but the graphics are empty.
Another thing, when I am under Word, I can preview in HTML but the graphics are empty.
If you have any idea that would be great.
Thanks in advance for your help.mtbdude40 wrote:
What I need is this: The ability to create a PDF report with a custom header defining the data (example - select * from emp where deptno = :deptno and the header includes the department name).
I use this white paper as my source: http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf
You need to build and use a Shared Resource -> Report Queries.
The Report Query will have two queries associated with it (see below).
one query will be for the header information, the other will be for the data.
use the "download" of the "xml data" as your source for Altova/other tools.
If you add/remove/change queries, You'll have to redo your report (from scratch) as that changes the XML Schema required. (at least, with my experience)
Once you get the hang of it, 2x queries is easy (Header, data)
I've experimented with 3x queries (header, master,details) but have been unsuccessful. I have some ideas though ("link" master->detail info via XPath stuff within Altova) but haven't gotten around to testing it.
If you want to run the report for multiple departments....That might require some finesse.
Unfortunately, the Source of the Queries can't be a scalar SQL that returns 1 row of 1 column of data type XMLType....
MK -
String index out of range: -1 occuring while deploying a JDBC connection pool
Hi,
I'm getting the below error (Sorry for the enormity.i got it from the log file
.all nested exceptions are included)
when i deploy my connectionpool onto a weblogic 6.1
server with the following entries in the config.xml
<JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver" InitialCapacity="4"
LoginDelaySeconds="1" MaxCapacity="10" Name="CabinBeanPool" Properties="user=sa;password=sa;"
RefreshMinutes="10" SupportsLocalTransaction="true" Targets="myserver" TestConnectionsOnRelease="true"
TestConnectionsOnReserve="true" TestTableName="CabinBeanTable" URL="weblogic:jdbc:mssqlserver4:pubs@bsl2002"
/>
The below one i think is the core exception.Rest are nested.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at weblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
Grateful if u could provide the solution?
####<Feb 7, 2002 3:25:47 PM IST> <Error> <JDBC> <bsl2002> <myserver> <ExecuteThread:
'8' for queue: 'default'> <system> <> <001060> <Cannot startup connection pool
"CabinBeanPool" String index out of range: -1>
####<Feb 7, 2002 3:25:47 PM IST> <Error> <Management> <bsl2002> <myserver> <ExecuteThread:
'8' for queue: 'default'> <system> <> <141001> <Error updating deployments on
target mydomain:Name=myserver,Type=Server, component mydomain:Name=CabinBeanPool,Type=JDBCConnectionPool,
deployments: old values: mydomain:Name=myserver,Type=Server>
weblogic.management.DistributedManagementException: Distributed Management [1
exceptions]
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:534)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Distributed update exception
- remote object: mydomain:Location=myserver,Name=myserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
- actionName: addDeployment
- params: [Ljava.lang.Object;@5e474b
- signature: [Ljava.lang.String;@1aaeb5
Distributed update exception
- remote object: mydomain:Location=myserver,Name=myserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at weblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
at weblogic.jdbc.mssqlserver4.ConnectDriver.parse(ConnectDriver.java:337)
at weblogic.jdbc.mssqlserver4.ConnectDriver.acceptsURL(ConnectDriver.java:181)
at java.sql.DriverManager.getDriver(DriverManager.java:238)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:94)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:122)
at weblogic.jdbc.common.internal.ConnectionPool.getResourceFactory(ConnectionPool.java:691)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:610)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DeploymentException: Error creating connection pool - with
nested exception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1448)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:858)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:810)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:288)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:89)
at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:116)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creating connection
pool - with nested exception:
[weblogic.management.DeploymentException: Error creating connection pool - with
nested exception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]]
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:494)
at weblogic.management.internal.Con####<Feb 7, 2002 4:09:22 PM IST> <Notice>Hi Saju,
There is an error in the URL definition. It should be
jdbc:weblogic:mssqlserver4 instead of weblogic:jdbc:mssqlserver4.
Regards,
Slava Imeshev
"Saju Thomas" <[email protected]> wrote in message
news:[email protected]...
>
Hi,
I'm getting the below error (Sorry for the enormity.i got it from the logfile
all nested exceptions are included)
when i deploy my connectionpool onto a weblogic 6.1
server with the following entries in the config.xml
<JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"InitialCapacity="4"
LoginDelaySeconds="1" MaxCapacity="10" Name="CabinBeanPool"Properties="user=sa;password=sa;"
RefreshMinutes="10" SupportsLocalTransaction="true" Targets="myserver"TestConnectionsOnRelease="true"
TestConnectionsOnReserve="true" TestTableName="CabinBeanTable"URL="weblogic:jdbc:mssqlserver4:pubs@bsl2002"
/>
The below one i think is the core exception.Rest are nested.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
atweblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
>
Grateful if u could provide the solution?
####<Feb 7, 2002 3:25:47 PM IST> <Error> <JDBC> <bsl2002> <myserver><ExecuteThread:
'8' for queue: 'default'> <system> <> <001060> <Cannot startup connectionpool
"CabinBeanPool" String index out of range: -1>
####<Feb 7, 2002 3:25:47 PM IST> <Error> <Management> <bsl2002> <myserver><ExecuteThread:
'8' for queue: 'default'> <system> <> <141001> <Error updating deploymentson
target mydomain:Name=myserver,Type=Server, componentmydomain:Name=CabinBeanPool,Type=JDBCConnectionPool,
deployments: old values: mydomain:Name=myserver,Type=Server>
weblogic.management.DistributedManagementException: Distributed Management[1
exceptions]
atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:534)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:354)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1448)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:858)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:810)
atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:288)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:89)
atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:116)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:167)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Distributed update exception
- remote object:mydomain:Location=myserver,Name=myserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
- actionName: addDeployment
- params: [Ljava.lang.Object;@5e474b
- signature: [Ljava.lang.String;@1aaeb5
Distributed update exception
- remote object:mydomain:Location=myserver,Name=myserver,Type=ServerConfig
- remote server: weblogic.management.internal.RemoteMBeanServerImpl@19b1ca
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
atweblogic.jdbc.mssqlserver4.ConnectionInfo.<init>(ConnectionInfo.java:63)
at weblogic.jdbc.mssqlserver4.ConnectDriver.parse(ConnectDriver.java:337)
atweblogic.jdbc.mssqlserver4.ConnectDriver.acceptsURL(ConnectDriver.java:181)
at java.sql.DriverManager.getDriver(DriverManager.java:238)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
actory.java:94)
atweblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
ry.java:122)
atweblogic.jdbc.common.internal.ConnectionPool.getResourceFactory(ConnectionPo
ol.java:691)
atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:610
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:608)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
92)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:352)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:484)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:354)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1448)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:858)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:810)
atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:288)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:89)
atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:116)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:167)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DeploymentException: Error creating connection pool -with
nested exception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:110)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:608)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
92)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:352)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:484)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:354)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
at $Proxy7.addDeployment(Unknown Source)
atweblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBean
Impl.java:1448)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:858)
atweblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:810)
atweblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:288)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
atcom.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
atweblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:303)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:185)
at $Proxy19.setTargets(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanA
ttribute.java:89)
atweblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
eanAction.java:116)
atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:167)
atweblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.DistributedOperationUpdateException: Error creatingconnection
pool - with nested exception:
[weblogic.management.DeploymentException: Error creating connection pool -
with> nested exception:> [java.lang.StringIndexOutOfBoundsException: String index out ofrange: -1]
atweblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:494)
at weblogic.management.internal.Con####<Feb 7, 2002 4:09:22 PM IST><Notice>
> -
Error "String index out of range:6" while opening Webi fromBI java Lauchpad
Dear All,
I have installed BO 4.0 recently. When I open BI Java Lauch Pad URL I can see Web Intelligence under the applications list. When I click it, a pop up getting opened with message " String index out of range: 6" When I click "Details" icon in the pop up, it is showing this description.
Detected from bootclasspath: C:
PROGRA~1
Java
jre7
lib
deploy.jar
Java Plug-in 10.0.0.147
Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM
User home directory = C:\Users\RT89363
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
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>
I have tried this in a machine where i logged as a normal user. But when i open the same link from a machine where i logged as administrator, it is working fine.
Could any one help me in sorting out the issue ??
Thanks in advance.
Regards
Ravi.Hi Ravi,
the error is due to the componet JAVA(TM) 7 which is not supported.
Better to run JAVA 6, I'm running the update 33, you can download it from http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html
Remeber to remove JAVA &
Go to control panel --> add remove programs and remove JAVA (TM) 7.
It will solve the problem.
Ciao,
Massimo -
String index out of range: -1
I am making a program which takes screenshots and uploads them to imageshack.us, I have got the following code.
import java.awt.image.BufferedImage;
import java.awt.*;
import java.io.*;
import java.net.*;
import javax.imageio.ImageIO;
public class Screenshot extends Thread {
public static void main(String[] args)
new Screenshot().start();
public void run()
try {
Robot robot = new Robot();
BufferedImage screenShot = robot.createScreenCapture(new Rectangle(
Toolkit.getDefaultToolkit().getScreenSize()));
ImageIO.write(screenShot, "PNG", new File("screenshot.png"));
String image = uploadToIs("screenshot.png");
System.out.println(image);
} catch (Exception e) {
e.printStackTrace();
private static String uploadToIs(String fffffile) {
HttpURLConnection conn = null;
DataOutputStream dos = null;
DataInputStream inStream = null;
String lineEnd = "\r\n";
String twoHyphens = "--";
String boundary = "*****";
int bytesRead, bytesAvailable, bufferSize;
byte[] buffer;
int maxBufferSize = 1 * 1024 * 1024;
String urlString = "http://www.imageshack.us";
try {
String strFilename = fffffile;
try {
FileInputStream fileInputStream = new FileInputStream(new File(
strFilename));
URL url = new URL(urlString);
conn = (HttpURLConnection) url.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod("POST");
conn.setRequestProperty("Connection", "Keep-Alive");
conn.setRequestProperty("Content-Type",
"multipart/form-data;boundary=" + boundary);
dos = new DataOutputStream(conn.getOutputStream());
dos.writeBytes(twoHyphens + boundary + lineEnd);
dos
.writeBytes("Content-Disposition: form-data; name=\"fileupload\";"
+ " filename=\"" + strFilename + "\"" + lineEnd);
dos.writeBytes(lineEnd);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
buffer = new byte[bufferSize];
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
while (bytesRead > 0) {
dos.write(buffer, 0, bufferSize);
bytesAvailable = fileInputStream.available();
bufferSize = Math.min(bytesAvailable, maxBufferSize);
bytesRead = fileInputStream.read(buffer, 0, bufferSize);
dos.writeBytes(lineEnd);
dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd);
fileInputStream.close();
dos.flush();
dos.close();
} catch (MalformedURLException ex) {
System.out.println("Got a malformed URL:" + ex);
} catch (IOException ioe) {
System.out.println("Got an IO issue:" + ioe);
} catch (Exception e) {
System.out
.println("Sorry, could not find the file to upload. Skipping...");
try {
inStream = new DataInputStream(conn.getInputStream());
int ii;
String returnd = "";
while ((ii = inStream.read()) != -1) {
returnd += (char) ii;
int pos = returnd.indexOf("Include details");
returnd = returnd.substring(pos);
pos = returnd.indexOf("[IMG]");
returnd = returnd.substring(pos + 5);
pos = returnd.indexOf("[/IMG]");
returnd = returnd.substring(0, pos);
inStream.close();
return (returnd);
} catch (IOException ioex) {
System.out
.println("Got an IO issue from (ServerResponse): " + ioex);
return "";
}When I start the thread by doing:
new Screenshot().start();I get the String index out of range: -1 error.
StackTrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at java.lang.String.substring(Unknown Source)
at Screenshot.uploadToIs(Screenshot.java:93)
at Screenshot.run(Screenshot.java:23)
But when I add a main method into that class and start the thread it runs fine.
I would appritiate help, thanks alot:)I understand that part, I was just wondering why my string isn't read when I try and start the thread from another class, but when I run this class on its own and start the thread, it runs fine..
-
MP Error: StringIndexOutOfBoundsException: String index out of range: -1
Hi All,
We are using PI 7.1 EHP1, Where in we would like to see the capabilty of User-Module for Conversion of IDoc Messages Between Flat and XML Formats. Gone thru the blog (/people/sap.user72/blog/2005/07/04/get-into-the-zone - Part 2) and maintained the necessary NWA configurations and maintained the necessary module parameters (SAPRelease, SourceJRA, TargetDestination) in Sender File Adapter.
Now the file is not been picked by file adapter upon checking the Comm Channel Monitoring below error:
MP: exception caught with cause java.lang.StringIndexOutOfBoundsException: String index out of range -1
Any help would be highly appreciated.
Thanks in advanceHi Ramani,
I hope you must have found a solution on this, if not then kindly consider changing your source files, as this error corresponds to only one thing: i.e. DATA Issue. You need to correct the data which you providing to the module for conversion.
I faced this problem and corrected it by just correcting my test file.
Regards,
Nipun Shedhani -
Getting error: RC-50004 String index out of range when running adclonectx.pl
Hi,
I'm trying to clone a RAC database on the same host. I'm using the MOS note:
Cloning Oracle E-Business Suite Release 12 RAC-Enabled Systems with Rapid Clone ( Doc ID 559518.1 )
I run the command from Step 5.1.3:
perl adclonectx.pl ......
But getting error:
"RC-50004: Error occurred in CloneContext:
String index out of range: 38
ERROR: context creation not completed successfully."
From the Clone Context logfile:
PROMPT :
Number of DATA_TOP's on the Target System [3]
ANSWER :
1
PROMPT :
Target System DATA_TOP Directory 1
ANSWER :
+DATA/prod/datafile
ASM Path, not Validating: +DATA/prod/datafile
Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.
StackTrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 38
at java.lang.String.substring(String.java:1765)
at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6681)
at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1114)
at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5260)
RC-50004: Error occurred in CloneContext:
String index out of range: 38
Context file creation not succesful
And workaround/solution will be much appreciated. Thanks very much.FYI, I'm cloning on the same host as target. This is 2 node EBS RAC setup.
PATH is OLD source for contextfile.xml
Latest clone patches applied.
Here is the complete output from the log file...
[oracle@PPDBS11 bin]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin/CloneContext_0908210110.log
Using admin directory: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/bin
#------Log File time stamp: 0908210110------------
# $Header: CloneContext.java 120.92.12010000.26 2013/05/06 12:02:01 mmanku ship $
# Running on - ppdbs11
# Source Host - null
# Domain Name - <xxxx.yyyy.zz>
# Context Location - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/PREPROD1_ppdbs11.xml
# Context Type - null
# Context Template - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/template/adxdbctx.tmp
# Clone Stage Area - null
# Pairs File - /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
# Destination Context - null
# Validation - false
# Platform Migration - false
# no prompt - false
Variables extracted from pairsfile: /u01/app/oracle/product/11.2.0/dbhome_1/appsutil/clone/pairsfile.txt
****************************************************/n
s_undo_tablespace = APPS_UNDOTS1
s_dbClusterInst = 2
s_db_oh = /u01/app/oracle/product/11.2.0/dbhome_1
**************************************************** PROMPT :
Target System Hostname (virtual or normal) [ppdbs11]
ANSWER :
ppdbs11 PROMPT :
It is recommended that your inputs are validated by the program.
However you might choose not to validate them under following circumstances: -If cloning a context on source system for a remote system.
-If cloning a context on a machine where the ports are taken and
you do not want to shutdown the services at this point.
-If cloning a context but the database it needs to connect is not available. Do you want the inputs to be validated (y/n) [n] ?
ANSWER :
n PROMPT :
Target Instance is RAC (y/n) [y]
ANSWER :
y PROMPT :
Target System Database Name
ANSWER :
PROD PROMPT :
Host name [ppdbs11]
ANSWER :
ppdbfmisscan PROMPT :
Virtual Host name [null]
ANSWER :
ppdbs11-vip PROMPT :
Instance number [1]
ANSWER :
1 PROMPT :
Private interconnect name [ppdbs11]
ANSWER :
ppdbs11-priv PROMPT :
Target System Base Directory
ANSWER :
/u01/app/oracle PROMPT :
Oracle OS User [oracle]
ANSWER :
oracle PROMPT :
Oracle OS Group [oinstall]
ANSWER :
oinstall PROMPT :
Target System utl_file_dir Directory List
ANSWER :
/usr/tmp/PROD PROMPT :
Number of DATA_TOP's on the Target System [3]
ANSWER :
1 PROMPT :
Target System DATA_TOP Directory 1
ANSWER :
+DATA/prod/datafile
ASM Path, not Validating: +DATA/prod/datafile
Creating ../data/stage/addbhomtgt.xml which will contain Target system database mount points.
StackTrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 38
at java.lang.String.substring(String.java:1765)
at oracle.apps.ad.context.CloneContext.gen_iFile(CloneContext.java:6687)
at oracle.apps.ad.context.CloneContext.getInputFromUsers(CloneContext.java:1120)
at oracle.apps.ad.context.CloneContext.doClone(CloneContext.java:601)
at oracle.apps.ad.context.CloneContext.main(CloneContext.java:5266) RC-50004: Error occurred in CloneContext:
String index out of range: 38
Context file creation not succesful -
Curve 8310 error Unc.Exception: string index out of range: 0
I'm getting the following error message: "Uncaught Exception: string index out of range: 0" and no way to clear that message.
Could someone help me to fix it? Actually the only way to get BB-8310 back working is remove the battery.
Thanks in adavance
Solved!
Go to Solution.Hi and Welcome to the Community!!
There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
If it won't boot up cleanly, then you may need to try Safe Mode:
KB17877 How to start a BlackBerry smartphone in safe mode
There might be an updated code set from the carrier -- check them via this portal:
http://na.blackberry.com/eng/support/downloads/download_sites.jsp
The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
String index out of range: 0 error when sending to SOAP Receiver
Hi experts,
I have an interface
IDOC -> XI -> SOAP
Occasionally I will get this error message from RWB when sending to the SOAP service:
Delivery of the message to the application using connection AFW failed, due to: String index out of range: 0
To trace the soap message, I sent the message through a TCPMonitor, the error does not occur anymore.
Has anyone met with this problem before?
How do I resolve this?
Thanks!
Ron> Wee,
>
> The error states there is some problem in your
> message mapping. Have you used any substring function
> in your mapping. If yes can you check the message for
> which you have got error in message mapping. For this
> open sxmb_monin and open your message and then right
> click and then view source. Then copy this source and
> test in message mapping test tab. Then you will come
> to know whether you have any mapping error or not?
>
> ---Satish
I did not do any substring in the mappings.
The strange thing is, with the same message, I can re-send without any error if I send this message through the SOAP TCP Monitor. -
StringIndexOutOfBoundsException: String index out of range: 185
Hi Guys,
I am getting below mentioned runtime error in my java program.
The message is: Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 185] in class com.sap.xi.tf._MM_RSPD_INFILE_RSPD_OUTFILE_ method SplitRow$[]
I am writing this program in SAP PI for a User defined function.
Structure of my file is,
String contractNo = x.substring(0,10); //1-10 SAP contract reference
String quantity = x.substring(10,25); //11-25 Quantity
String price = x.substring(25,40); //26-40 Price
String delperiod = x.substring(40,46); //41-46 Delivery period e.g. YYYYMM
String condate = x.substring(46,54); //47-54 Contract date e.g. YYMMDD
String shipwts = x.substring(54,57); //55-57 Shipped weights e.g. DWT/EWT
String mtype = x.substring(57,58); //58 Market Type D/E
String cif = x.substring(58,73); //59-73 CIF price
String comtype = x.substring(73,77); //74-77 comtype e.g. ZRAW
String rejreason = x.substring(77,97); //78-97 Reject reason
String type = x.substring(97,98); //98 Type, A =create, B=amend, C= delete
String usrname = x.substring(98,110); //99-110 User Name
String impdate = x.substring(110,118); //111-118 Date, e.g. YYYYMMDD, imported as Quote date
String imptime = x.substring(118,124); //119-124 Time e.g. HHMMSS, imported as Quote time HH:MM
String vafrdate = x.substring(177,185); //177,185 Date, e.g. YYYYMMDD, valid from date
Example Lines of code used for offsetting,
if ( delperiod.substring(4,6).equals("01") && vafrdate.substring(181,185).equals("0101") )
Structure of input file,
0040000305 -153000.000 20.00020110120100817DWTD 0.000ZRAW ANHUK 20100817165602 20110101
Guys,
any idea, what mistake i am doing in above code(probably some offsetting mistake).....
regards.
santosh.When posting code, make sure you use the CODE tags to preserve formatting. Like this:
System.out.println("Look how pretty I am!");But just looking at this line:
if ( delperiod.substring(4,6).equals("01") && vafrdate.substring(181,185).equals("0101") )Try printing out vafrdate.length() before you make this call. It better be at least 185. I bet it's not.
Why are you hardcoding the positions of data in the String like that? That's almost definitely not the way to go. -
UC500 CCA 3.23 String Index out of range
I am trying to make changes to phones registered to a UC520 running 8.62 software bundle. When I click on a phone to change the username or to add or delete an extension on it, I get the following error message pop up.
It is: String Index Out of Range: -1
I have uninstalled the CCA 3.23 from my PC, and re-installed it to no avail. I think this is a Java - CCA issue, but I am not sure how to fix it.I experienced the same exact problem as this. The same solution shown here fixed it for me. The "String index out of range" is indeed a cryptic error message for this condition unless you are deeply familiar with what is going on behind the scenes in toplink ( I guess ).
Thanks for the responses.
I figured out the problem... it was a typo.
I have declared a Collection object without
identifying what it is.
For future users, if you have similar problem, ensure
that you have declared Arrays/Collections/Lists
properly .
Wrong way to declare:
private Collection custPhoneNumbers;
in above declaration, I have missed out what
collection it is.
Right way to declare:
private Collection<Phone>
custPhoneNumbers; -
ERROR: String index out of range -1
When I submit a form, CF throws an error:
String index out of range: -1
(Line 2)
2 : <cfinsert datasource="Logbook" dbtype="odbc"
tablename="Flights" formfields="*">
3 : <cflocation url="index.cfm">
Im not sure what the problem is. I checked the database to
see if it was the content type, and everything checked out to be
ok, I also checked the NAME attributes on the HTML on the origonal
form. They all match. Please help.
--StephenI never use cfinsert, but formfields = "*" doesn't look
right. -
Network Access Not working - String index out of range -1
All of our Storm handhelds are working great for network file access through the BES server. I just got a Curve 2 and tried the same access and anything you type into the file application in the go to box gives a String index out of range -1 error.
Any ideas or fixes that anyone knows for this one? I will try another file manager in the meantime.I am unable to locate any other file manager that allows network file access through BES. Anyone locate the reason for this error or any managers that allow network access?
Thanks!
Maybe you are looking for
-
This file does not have a program associated with it for performing this ac
Hi all, After creating an application for a WebDynpro project, when I execute the project (Deploy New Archive and Run) the application I am receiving then following error message. "This file does not have a program associated with it for performing t
-
I am getting a new Macbook Pro and I don't know which one to get. I will either get the high-end 13" or the low-end 15". I am a high school student that will be running Photoshop Elements, Microsoft Office, and heavy Internet browsing, such as buildi
-
How can I merge with specific sheets in an xlsm file?
I have adobe acrobat XI standard. I often work with macro excel files. How can I pull specific sheets from xlsm files into a pdf document?
-
Output raw (CR2) to Photoshop 5.1 from LR4?
(On OS X 10.7) Lightroom 3 had (and has) no problems outputting CR2's to photoshop for editing. I want to do it this way because I hate messing about with all the pointless Tiff's and PSD - in short, I have my own system. LR4 doesn't do this yet, it
-
Weirdest Problem I've Encountered With An Ipod
I just bought a new Ipod and its been working great for the past couple of days then out of nowhere today I hook up my Ipod to my PC and wait for the usual "Do Not Disconnect" sign, but it doesnt come nor does the Ipod charging icon at the top right