Java.lang.NullPointerException when connecting to DB
Running what I think is the latest version of Oracle SQL Developer, 2.1.0.63.73 on JDK 1.6.0_17, Windows XP. Every 2nd or 3rd time I run SQL Dev, I get the following when I go to connect: Error Connecting, with the below in the "Details"
java.lang.NullPointerException
at oracle.dbtools.raptor.utils.TNSHelper$2.compare(TNSHelper.java:349)
at java.util.Arrays.mergeSort(Arrays.java:1270)
at java.util.Arrays.sort(Arrays.java:1210)
at java.util.Collections.sort(Collections.java:159)
at oracle.dbtools.raptor.utils.TNSHelper.getTNSEntries(TNSHelper.java:355)
at oracle.dbtools.raptor.utils.TNSHelper.getEntry(TNSHelper.java:216)
at oracle.dbtools.raptor.utils.Connections.populateConnectionInfo(Connections.java:645)
at oracle.dbtools.raptor.standalone.connection.RaptorConnectionCreator.getConnection(RaptorConnectionCreator.java:62)
at oracle.dbtools.raptor.dialogs.conn.ConnectionPrompt.promptForPassword(ConnectionPrompt.java:67)
at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:321)
at oracle.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:254)
at oracle.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:60)
at oracle.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:534)
at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:208)
at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:607)
at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:562)
at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:145)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:874)
at oracle.dbtools.raptor.utils.Connections.getConnection(Connections.java:855)
at oracle.dbtools.raptor.navigator.DatabaseConnection.openConnectionImpl(DatabaseConnection.java:117)
at oracle.dbtools.raptor.navigator.AbstractConnectionNode.getConnection(AbstractConnectionNode.java:30)
at oracle.dbtools.raptor.navigator.ConnectionFilter.getFactory(ConnectionFilter.java:92)
at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:117)
at oracle.dbtools.raptor.navigator.ConnectionFilter$1.doWork(ConnectionFilter.java:102)
at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:492)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Other times, it works fine. Anything I might have done wrong in installing this guy? Any thoughts?
Thanks, Michael
I'm agree ... His behavior is very strange.
At the first time, I decompressed zip file into a new dir and at the first run I agreed to import setup from previous version. From the beginning the v2.1 worked wrong.
After that, I removed all, new and previous versions. I deleted sqldeveloper folder and also service folder (under \Documents and Settings\...\Application data\...)
Also I searched into registry ...
Nothing to do ... also new installation hangs ...
So, perhaps I have to wait new release ... (perhaps the exceptions or the environment conflict will be fixed).
Thanks again.
Regards.
PS: Please, if you have other suggestions, let me know. Many Thanks.
Similar Messages
-
Java.lang.NullPointerException when connect to the J2EE engine
I want to connect to the J2EE engine ,but the error message "java.lang.NullPointerException" is displayed in the console. Please help me ! Thank you !! The full error exception like this:
java.lang.NullPointerException
at com.sap.engine.services.adminadapter.gui.tasks.LoginTask.connectActio
n(LoginTask.java:191)
at com.sap.engine.services.adminadapter.gui.tasks.LoginTask.run(LoginTas
k.java:79)
at java.lang.Thread.run(Thread.java:534)Hi:
The whole errror message like this:(deploy aborted error message)
2009/4/27 上午 08:53:52 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : 10.138.6.10
SDM port : 50118
URL to deploy : file:/C:/DOCUME1/F3221789/LOCALS1/Temp/temp53268foxconn.com~bbs_demo.ear
Result
=> deployment aborted : file:/C:/DOCUME1/F3221789/LOCALS1/Temp/temp53268foxconn.com~bbs_demo.ear
Aborted: development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.27.08.53.22':
Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter valid login information in the Filesystem Secure Store using the SAP J2EE Engine Config Tool. For more information, see SAP note 701654.
com.sap.sdm.serverext.servertype.inqmy.extern.DeployManagerAuthExceptionWrapper: Wrong security credentials detected while trying to obtain connection to the J2EE Engine.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMAUTHEXC)
Deployment exception : The deployment of at least one item aborted
The Log infomation is like this:
2009/4/27 上午 08:53:52 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
[001]Additional log information about the deployment
<!LOGHEADER[START]/>
<!HELP[Manual modification of the header may cause parsing problem!]/>
<!LOGGINGVERSION[1.5.3.7185 - 630]/>
<!NAME[D:\usr\sap\SCM\DVEBMGS01\SDM\program\log\sdmcl20090427005331.log]/>
<!PATTERN[sdmcl20090427005331.log]/>
<!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
<!ENCODING[MS950]/>
<!LOGHEADER[END]/>
Apr 27, 2009 8:53:32 AM Info: -
Starting deployment -
Apr 27, 2009 8:53:32 AM Info: Error handling strategy: OnErrorStop
Apr 27, 2009 8:53:32 AM Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
Apr 27, 2009 8:53:32 AM Info: Update strategy: UpdateAllVersions
Apr 27, 2009 8:53:32 AM Info: Starting deployment prerequisites:
Apr 27, 2009 8:53:36 AM Info: Loading selected archives...
Apr 27, 2009 8:53:36 AM Info: Loading archive 'D:\usr\sap\SCM\DVEBMGS01\SDM\program\temp\temp53268foxconn.com~bbs_demo.ear'
Apr 27, 2009 8:53:37 AM Info: Selected archives successfully loaded.
Apr 27, 2009 8:53:37 AM Info: Actions per selected component:
Apr 27, 2009 8:53:37 AM Info: Update: Selected development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.27.08.53.22' updates currently deployed development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.23.14.34.21'.
Apr 27, 2009 8:53:37 AM Info: Ending deployment prerequisites. All items are correct.
Apr 27, 2009 8:53:39 AM Error: Unable to compare host[sidcsms.foxconn.com] and host[GDS-SF-F21789] Throwable: java.net.UnknownHostException Throwable message: GDS-SF-F21789: GDS-SF-F21789
Apr 27, 2009 8:53:39 AM Info: Saved current Engine state.
Apr 27, 2009 8:53:39 AM Info: Starting: Update: Selected development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.27.08.53.22' updates currently deployed development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.23.14.34.21'.
Apr 27, 2009 8:53:39 AM Info: SDA to be deployed: D:\usr\sap\SCM\DVEBMGS01\SDM\root\origin\foxconn.com\bbs_demo\LOKAL\0.2009.04.27.08.53.22\temp53268foxconn.com~bbs_demo.ear
Apr 27, 2009 8:53:39 AM Info: Software type of SDA: J2EE
Apr 27, 2009 8:53:40 AM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
Apr 27, 2009 8:53:43 AM Error: Unable to compare host[sidcsms.foxconn.com] and host[GDS-SF-F21789] Throwable: java.net.UnknownHostException Throwable message: GDS-SF-F21789: GDS-SF-F21789
Apr 27, 2009 8:53:44 AM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Apr 27, 2009 8:53:44 AM Error: Aborted: development component 'bbs_demo'/'foxconn.com'/'LOKAL'/'0.2009.04.27.08.53.22':
Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter valid login information in the Filesystem Secure Store using the SAP J2EE Engine Config Tool. For more information, see SAP note 701654.
com.sap.sdm.serverext.servertype.inqmy.extern.DeployManagerAuthExceptionWrapper: Wrong security credentials detected while trying to obtain connection to the J2EE Engine.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMAUTHEXC)
Apr 27, 2009 8:53:44 AM Info: Starting to save the repository
Apr 27, 2009 8:53:44 AM Info: Finished saving the repository
Apr 27, 2009 8:53:44 AM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Apr 27, 2009 8:53:44 AM Error: -
At least one of the Deployments failed -
Edited by: sap-abap-tw on Apr 27, 2009 3:01 AM -
Java.lang.NullPointerException when trying to start UM
I get java.lang.NullPointerException when I try to start Unified Messaging using EM on a new Windows 2000 single-box installation. Has anyone enountered this problem?
I have also encountered same issue. Please let me know the solution in case you find it.
In fact after configuiring Oracle files as per the document provided at Oracle OTN site 'Collaboration handbook', I am unable to connect OID. As per log it says
2003/04/01:20:37:58[Oidmon]: Unable to connect to database, will retry after 20 sec
2003/04/01:21:20:21Starting Monitor Process, PID=2920
2003/04/01:21:20:21ORACLE_SID not set, setting to iasdb
2003/04/01:21:41:22Failed to fetch Process Table. ORA-12571: TNS:packet writer failure
I checked Listener, which was found ok, then I checked TNSPING, which executed ok.
I have dowloaded documents troubleshooting OID, but no success. The document itself says that architecture of OID is fairly complex and the log does not suggest much insight.
Any solution?
Regards,
Vipul -
Java.lang.NullPointerException when doing SQL on ms access
I am trying to perform Insert and delete commands on an access database and I continue to get a java.lang.NullPointerException when performing the action. Everything is fine when i do a Select * FROM..., I am able to read all of the information I ask for, but when performing the Insert/Delete commands I get the error. Any help would be appreciated, I will copy and past a portion of my code below. All of the fields and variable types match with what is in the database.
public void executeAddSecretary() throws SQLException{
String a,b;
a= txtSecLname.getText();
b= txtSecFname.getText();
statement.execute("INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values ('" + a + "', '" + b + "')");
System.out.println("updated Secretary");
public void executeDeleteContact() throws SQLException{
String a = "a";
statement.execute("DELETE FROM Contact WHERE Lname = ('" + a + "')");
System.out.println("deleted contact");
Thanks to anyone who can help me out.1) Use prepared statement instead of statement.
2) Do like this ...
PreparedStatement prepStmt = null;
try
String query="INSERT INTO Contact_Sec (Sec_Lname,Sec_Fname) Values (?,?)");
prepStmt = connection.prepareStatement(query);
prepStmt.setString(1, value1);
prepStmt.setString(2, value2);
prepStmt.executeUpdate();
catch (SQLException e)
throw e;
catch (Exception e)
throw e;
finally
try
if (prepStmt != null)
prepStmt.close();
} catch (Exception e) {}
try
if (connection != null)
connection.close();
} catch (Exception e) {}
}3) If you still get the null exception then put step wise System.out's
and debug it.
-Rohit -
Java.lang.NullPointerException when trying to compile
Hi everybody!
I'm trying to compile a file using javax.tools.JavaCompiler but I get a java.lang.NullPointerException when running the program.
Here is my code:
public boolean CompExecFile(File filename){
boolean compRes = false;
try {
System.out.println(filename.getAbsolutePath());
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null); //line where I get the error
Iterable<? extends JavaFileObject> compilationUnits2 = fileManager.getJavaFileObjects(filename);
compRes = compiler.getTask(null, fileManager, null, null, null, compilationUnits2).call();
fileManager.close();
if (compRes) {
System.out.println ("Compilation was successful");
} else {
System.out.println ("Compilation failed");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return compRes;
}There error on the line "StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);":
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException+
I've seen several examples using the parameters "null,null,null" but I don't know if it's good :(
Many thanks for your help.I've found something which could maybe be what I need to do but I'm not sure:
// Build a new ClassLoader using the given URLs, replace current Classloader
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
ClassLoader newCL = new URLClassLoader(myClasspathURLs, oldCL);
Thread.currentThread().setContextClassLoader(newCL);
System.out.println("Successfully replaced ClassLoader");
Class fooClass = newCL.loadClass(appClass); //which replaces the line "Class<?> tempFileClass = Class.forName("TempFile");" ?!Is that what I need to do?
EDIT: I've tried that but I still have the same problem:
File classFile = new File ("TempFile.class");
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
ClassLoader newCL = new URLClassLoader(new URL[] {classFile.toURL()}, oldCL);
Thread.currentThread().setContextClassLoader(newCL);
System.out.println("Successfully replaced ClassLoader");
Class tempFileClass = newCL.loadClass("TempFile");
Method main = tempFileClass.getMethod("main", String[].class);
main.invoke(null,new String[0]); Edited by: Foobrother on Jul 28, 2008 8:18 AM -
Java.lang.NullPointerException when deploying a PIA
I am having a problem deploying a PIA on PeopleTools 8.45.18 on Solaris 8 using WebLogic 8.1 sp 3. The error I experience is java.lang.NullPointerException when I run this command:
./setup.solaris -console -is:log /var/temp/piainstall.log
InstallShield Wizard
Initializing InstallShield Wizard...
Searching for Java(tm) Virtual Machine...
Welcome to the InstallShield Wizard for PeopleSoft Internet Architecture.
Using the InstallShield Wizard you will install PeopleSoft Internet
Architecture on your computer.
Version: 8.45.18
Note: If installing onto a BEA WebLogic Server, make sure to shutdown any
running web servers to avoid web server corruption.
Select Next to continue or Cancel to exit.
Press 1 for Next, 3 to Cancel or 4 to Redisplay [1]
Choose the setup type that best suits your needs.
[X] 1 - BEA WebLogic Server
[ ] 2 - IBM WebSphere Server
To select an item enter its number, or 0 when you are finished: [0]
Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]
Please select the configuration to install.
[X] 1 - Single Server Domain
[ ] 2 - Multi Server Domain
[ ] 3 - Distributed Managed Server
To select an item enter its number, or 0 when you are finished: [0] 2
Enter 0 to continue or 1 to make another selection: [0]
Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1]
java.lang.NullPointerException
An error occurred during wizard bean change notification:
java.lang.NullPointerException
at PSChangeSharedLibPermission.PSSearchAndSet(PSChangeSharedLibPermission.java:67)
at PSChangeSharedLibPermission.execute(PSChangeSharedLibPermission.java:53)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1564)
any thoughts...please let me know if you have configured any RPS for the same.i faced a similar issue while i was trying to create an instance taken from oracle export dump taken from one of our client.our error got resolved when we changed the web profile to PROD. More often than not this is an issue with the webprofile. try changing the web profile one by one from dev to test to prod and kiosk.
if none of these resolves the issue, try ruuning version app engine program. this will update the ppltools version. in correct version may also some times cause this issue.
Please let me know if you have configured ldap. -
Hi Guys
I am having some problem as I am using a DataSource for connections and randomly
the CallableStatements and PreparedStatements created from this DataSource becomes
null and everytime I get NullPointerException with this message.
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialPreparedStatement.setString(SerialPreparedStatement.java:210)
at .........
Help will be appreciated..Hi Guys
I am having some problem as I am using a DataSource for connections and randomly
the CallableStatements and PreparedStatements created from this DataSource becomes
null and everytime I get NullPointerException with this message.
java.sql.SQLException: java.lang.NullPointerException
at weblogic.jdbc.rmi.SerialPreparedStatement.setString(SerialPreparedStatement.java:210)
at .........
Help will be appreciated.. -
Java.lang.NullPointerException: When Get the PDF File Name
Hi,
i try to follow the blog on <b>Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S</b> on /people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
as i create a fileupload and i wish to get the file name and the pdf, then i to run and deploy it but i get <b>java.lang.NullPointerException</b>
the code are as below when i click on send email button
IPrivateEmail.IFileUploadNodeNode node = wdContext.nodeFileUploadNode();
IPrivateEmail.IFileUploadNodeElement fileUploadEle = node.createFileUploadNodeElement();
try{
IWDResource resource = WDResourceFactory.createResource(wdContext.currentContextElement().getFileUploadUI().read(true), wdContext.currentContextElement().getFileUploadUI().getResourceName(), WDWebResourceType.PDF, true);
fileUploadEle.setFileUploadAttr(resource);
fileUploadEle.setFileUploadName(wdContext.currentContextElement().getFileUploadUI().getResourceName());
node.addElement(fileUploadEle);
}catch(Exception e){
wdComponentAPI.getMessageManager().reportSuccess("ERROR"+e.getMessage());
but i wonder which part of the code i did wrongly.. as i wish to insert into my send email code
Properties props = new Properties();
String host = "SMTP HOST";
props.put("mail.smtp.host", host);
Session session = Session.getInstance(props, null);
MimeMessage message = new MimeMessage(session);
Address toAddress = new InternetAddress();
Address fromAddress = new InternetAddress();
Address ccAddress = new InternetAddress();
Address bccAddress = new InternetAddress();
try
MimeMultipart multipart = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
if (! wdContext.currentEmailElement().getFrom().equals(""))
fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());
message.setFrom(fromAddress);
if (! wdContext.currentEmailElement().getTo().equals(""))
toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
message.setRecipient(Message.RecipientType.TO, toAddress);
if (! wdContext.currentEmailElement().getCc().equals(""))
ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
message.setRecipient(Message.RecipientType.CC, ccAddress);
if (! wdContext.currentEmailElement().getBcc().equals(""))
bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
message.setRecipient(Message.RecipientType.BCC, bccAddress);
if (! wdContext.currentEmailElement().getSubject().equals(""))
message.setSubject(wdContext.currentEmailElement().getSubject());
if (! wdContext.currentEmailElement().getBody().equals(""))
messageBodyPart.setText(wdContext.currentEmailElement().getBody());
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();
String filename = IWDResource.getResourceName();
DataSource source = new FileDataSource(filename);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(source.getName());
messageBodyPart.setHeader("Content-Type","application/pdf");
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
catch (AddressException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
catch (SendFailedException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
catch (MessagingException e)
wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
e.printStackTrace();
so i wonder could anyone help me out.. as i need to get the pdf filename order to put into the variable call <b>filename</b> at the send mail code.
below is the error message
java.lang.NullPointerException
at com.sap.example.uploademail.Email.wdDoInit(Email.java:124)
at com.sap.example.uploademail.wdp.InternalEmail.wdDoInit(InternalEmail.java:146)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)facing same issue.
jdev 10.1.3.3.0, on expanding the database connection, I get a null pointer exception.
On the testing the connection it says 'success' though.
any inputs ? -
Java.lang.NullPointerException when creating portal Rule Collection
Dear SDNs,
We have upgraded recently our portal ssytem from 6.0 to 7.0 SR3 (sp14), it went well, but when i am trying to create a new Rule collection in the Portal Display, it is throwing a Null pointer excception.
Please find the exact error below.
java.lang.NullPointerException
* at com.sap.portal.resolving.ui.RuleEditorEditModeEnabler.enableEditMode(RuleEditorEditModeEnabler.java:38)*
* at com.sap.portal.admin.editor.Editor.handleEditModeEnabling(Editor.java:614)*
* at com.sap.portal.admin.editor.Editor.handleEditMode(Editor.java:543)*
* at com.sap.portal.admin.editor.Editor.initEditor(Editor.java:505)*
* at com.sap.portal.admin.editor.pane.EditorPaneWrapper.initPane(EditorPaneWrapper.java:82)*
* at com.sap.portal.admin.editor.pane.EditorPaneWrapper.mySetupComponent(EditorPaneWrapper.java:122)*
* at com.sapportals.admin.wizardframework.components.FlowContainer.setupComponent(FlowContainer.java:129)*
* at com.sapportals.admin.wizardframework.core.TrivialPaneFactory.getComponent(TrivialPaneFactory.java:35)*
* at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:229)*
* at com.sap.portal.admin.editor.Editor.doWizard(Editor.java:605)*
* at com.sap.portal.admin.editor.Editor.run(Editor.java:150)*
* at com.sap.portal.admin.editor.AbstractEditorComponent.doContent(AbstractEditorComponent.java:59)*
* 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:240)*
* at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)*
* at java.security.AccessController.doPrivileged(Native Method)*
* at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)*
* 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: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:1039)*
* 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:102)*
* at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)*
Let me know your suggestions to solve to this.
Your inputs will be appericated.
Thanks,
SireeshaHi Sireesha.
This exception means that you don't have enough permissions to edit the master rule collection. Add your user to a super admin user group or, if it is not applicable due to your company policy, provide full control rights (not only read/right).
Best regards,
Aliaksandr Zhukau -
Java.lang.NullPointerException when shutting down database
Hello
I am using sqldeveloper 1.5.1.
I created a connection as sysdba . When I click on "Shutdown" button (in "manage database"), I get the following exception :
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at java.util.Properties.setProperty(Properties.java:128)
at oracle.dbtools.raptor.status.StatusPanel.shutdown(StatusPanel.java:104)
at oracle.dbtools.raptor.status.StatusPanel.access$100(StatusPanel.java:43)
at oracle.dbtools.raptor.status.StatusPanel$1.doWork(StatusPanel.java:132)
at oracle.dbtools.raptor.controls.progress.DelayedProgressRunnable$RunnerThread.run(DelayedProgressRunnable.java:163)
Is it a known issue, or how can I fix it ?
In advance thank you for your help
Message was edited by:
pverbois
Message was edited by:
pverbois
Message was edited by:
pverboisdid anybody get any solution to this because I am facing the same problem.
I have installed oracle 10g on my machine where OS has no username password and when I try to shutdown the database I get screen of Host Credentials and I do not what username and password it is asking for I get stuck up there ?
any advise
please reply asap -
Java.lang.NullPointerException when capture schema
When I try to capture schema from MySQL (WIN) to Oracle 10G R2 (unix), I have a exeption error: java.lang.NullPointerException
The tables are captured in the repository but columns and others objects don't.
The last line in the java log is:
unnable.run(AbstractMigrationProgressRunnable.java:159)
at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(M
igrationProgressBar.java:532)
Message was edited by:
user567049I have also encountered same issue. Please let me know the solution in case you find it.
In fact after configuiring Oracle files as per the document provided at Oracle OTN site 'Collaboration handbook', I am unable to connect OID. As per log it says
2003/04/01:20:37:58[Oidmon]: Unable to connect to database, will retry after 20 sec
2003/04/01:21:20:21Starting Monitor Process, PID=2920
2003/04/01:21:20:21ORACLE_SID not set, setting to iasdb
2003/04/01:21:41:22Failed to fetch Process Table. ORA-12571: TNS:packet writer failure
I checked Listener, which was found ok, then I checked TNSPING, which executed ok.
I have dowloaded documents troubleshooting OID, but no success. The document itself says that architecture of OID is fairly complex and the log does not suggest much insight.
Any solution?
Regards,
Vipul -
Urgent - java.lang.NullPointerException when deploying a WAR file
Hello
I am trying to deploy a WAR file on 9iAS rel 2 using the Enterprise Manager. On the web page, I provide the .war file along with application name and url mapping. When I click on deploy, i get an error back which just says java.lang.NullPointerException. There is no stack trace.
Until now, I have been working on my own PC using tomcat, and the war file works fine in tomcat.
I am presuming that there will be a log file where more information will be available, but I do not know where the log file is kept. The Oracle 9iAS is installed on Solaris.
Any help with this would be greatly appreciated.
Thanks.
JayProblem Solved
The problem was the web.xml file which contained some elements that are only valid for servlet 2.4 (used on tomcat) but not on 2.2(used in oracle).
Jay. -
Error: java.lang.nullPointerException when process is complete
Hello,
I keep getting the below error in the log file when the process is complete, does any one has this error before? The error does not affect the process but it is kind of annoying when looking at the log file. I try to use the other component beside the Foundation>DecisionPoint>execute but I still get the same error.
[5/16/11 14:57:19:047 CDT] 00000047 AWS E com.adobe.workflow.engine.ProcessEngineBMTBean stallAction stalling action-instance: 40746 with message: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: java.lang.NullPointerException
Can any one please advise on how to fix the error above to stop showing in the log file. I am still using LC ES 8.2.1 with SP3.
Thanks,
Han DaoIf you could give a little more info it would help. The web.xml for example, if your mapping it correctly, etc...
-
Hi guys,
I'm getting a java.lang.NullPointerException (with no other details of error) when i try to write to a textfield on my GUI. the line: TF1.setText("F"); is where the problem is occurring. that line is within a loop ->
if(freq >87 && freq < 100)
System.out.println("Note =F" +freq);
TF1.setText("F");
the textfield has been constructed and initialised and given an initial value. what i need to happen is the string in the textfield to be constantly updated (overwritten) with the new string.
the initial value from TextField TF1= new TextField("", 10);
TF1.setText("blank");
works fine, but one the loop above is entered, the current frequency is printed to the command line and then "java.lang.NullPointerException" is thrown.
I'm struggling with this, and have a deadline to meet so I would much appreciate some help.The Gui class is this:
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.TextField;
import javax.swing.JFrame;
import javax.swing.*;
public class Gui extends JFrame{
public static void main(String args[])
Project project = new Project();
project.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
project.setSize( 250, 200 ); // set frame size
project.setVisible( true ); // display frame
// new Project(){//constructor
Panel p, p1;
p = new Panel();
p.setLayout (new FlowLayout(FlowLayout.LEFT,5,5));
project.add(p, BorderLayout.NORTH);
p1 = new Panel();
p1.setLayout (new FlowLayout(FlowLayout.LEFT,5,5));
p1.setLayout (new GridLayout(4,1));
project.setTitle("Guitar Tuner Prototype");
TextField TF1= new TextField("", 10);
TF1.setText("blank");
p1.add(TF1);
TF1.setVisible(true);
p1.setVisible(true);
p.add(p1);
//Capture input data from the microphone
project.captureAudio();
project.captureThread();
}//end constructor
//end main
The project.java class has the "private TextField TF1; at the top. the project.java class also contains the loop thats writing to the texfield as specified in th original post.. -
Java.lang.NullPointerException when trying to preview an iVew in EP
We have set up a portal federation with a BI portal as the producer and a enterprise portal as the consumer. When we try to do a preview on iView which is based on BW 7 based contents from producer portal, we get java.lang.NullPointerException. The 3x based reports are being displayed fine on the consumer side. I have put excerpt from the default_trace from producer portal that gives some error messages but I am not able to figure out where the problem might be.
Any help is greatly appriciated.
Thanks
-Sujeet
default_trace:
l.ivs.globalPortal.com.sap.portal.ivs.global.jndibridge.serializers.runtime.plugins.GetPropertyAttributeSer.execute#snaru#769##
ashland.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_21##0#0#Debug##Java#
##Found for attribute of property the value #3#inheritance#System#NONFINAL#
#1.5^H#001A4B084CCA007C0000001000006F9100045FFE190F0017#1231444853688#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
om.sap.portal.ivs.semantic.systemLandscape.SystemLandscapePlugin: handleRequest()#snaru#769##ashland.namerica_BID_106146150#sna
ru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Request for System Landscape plu
gin received##
#1.5^H#001A4B084CCA007C0000001100006F9100045FFE190F00B6#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
om.sap.portal.ivs.semantic.systemLandscape.SystemLandscapePlugin: handleRequest()#snaru#769##ashland.namerica_BID_106146150#sna
ru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Request for handleGetSystemId()
received##
#1.5^H#001A4B084CCA007C0000001200006F9100045FFE190F017E#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
om.sap.portal.ivs.semantic.systemLandscape.get alias registry entry#snaru#769##ashland.namerica_BID_106146150#snaru#0837f580ddb
f11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###Failed to get alias '' from the Portal Regi
stry#1#SAP_BW#
#1.5^H#001A4B084CCA007C0000001300006F9100045FFE190F0206#1231444853689#com.sap.portal.ivs.semantic.systemLandscape#sap.com/irj#c
om.sap.portal.ivs.semantic.systemLandscape.getSystemId#snaru#769##ashland.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a
4b084cca#SAPEngine_Application_Thread[impl:3]_19##0#0#Debug##Java###System could not be resolved dynamically, use default PCD r
esolution##
#1.5^H#001A4B084CCA00700000002200006F9100045FFE190FA7F5#1231444853731#com.sap.portal.ivs.globalPortal#sap.com/irj#com.sap.porta
l.ivs.globalPortal.com.sap.portal.ivs.global.jndibridge.processor.getaspect.BaseGetAspectProcessor.getProcessor#snaru#769##ashl
and.namerica_BID_106146150#snaru#0837f580ddbf11dd9ba5001a4b084cca#SAPEngine_Application_Thread[impl:3]_22##0#0#Debug##Java###Fo
und processor: #1#com.sap.portal.pcm.Administration#I've found something which could maybe be what I need to do but I'm not sure:
// Build a new ClassLoader using the given URLs, replace current Classloader
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
ClassLoader newCL = new URLClassLoader(myClasspathURLs, oldCL);
Thread.currentThread().setContextClassLoader(newCL);
System.out.println("Successfully replaced ClassLoader");
Class fooClass = newCL.loadClass(appClass); //which replaces the line "Class<?> tempFileClass = Class.forName("TempFile");" ?!Is that what I need to do?
EDIT: I've tried that but I still have the same problem:
File classFile = new File ("TempFile.class");
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
ClassLoader newCL = new URLClassLoader(new URL[] {classFile.toURL()}, oldCL);
Thread.currentThread().setContextClassLoader(newCL);
System.out.println("Successfully replaced ClassLoader");
Class tempFileClass = newCL.loadClass("TempFile");
Method main = tempFileClass.getMethod("main", String[].class);
main.invoke(null,new String[0]); Edited by: Foobrother on Jul 28, 2008 8:18 AM
Maybe you are looking for
-
Speakers not working correctly
I have a hp laptop, under a year old, my speakers only work when i have my earphones plugged in. But I can sometimes click on the speaker icon and I will get sound for a second or two and then shuts off again.
-
Desktop app, getting a search result as XML/JSON from any website. How?
Heya! I have a java program that im fiddling with whenever im bored. It's purpose is basically for me to learn new things and possibly make a nifty piece of software for me and my friends. Say, I have a list of entries (movies). Each entry has an iMD
-
PLEASE HELP! importing from illustrator
i made a drawing in adobe illustrator and have imported it as a .pict file to fcp. it looks great in the viewer when i double click it from the bin. but when i put it on the timeline, and double click it, it looks horrible - blurred, jagged and broke
-
Won't disconnect after syncing
iPod won't disconnect after sync. Says it's in use by another program. How do I find out what program is using it and why?
-
I have a LabWindows 2010 application using RS232 reception with ComRd function. It works well on a windows XP with a RS233 port. I have a usb-rs232 converter, it also works. Now, I have to use a new PC with windows 7 and no RS232 port, so I have to u