This is a technology forum where we share our experiences with the Java Enterprise Edition Technologies. We have been working with Middleware Application Servers like JBoss, WildFly, WebLogic. While working on those application servers, design, planning, troubleshooting and coding we found that some of the information’s/posts/articles can be shared to a larger audience as part of this forum which can help other Middleware admins/engineers/developers and architects to make their life easier.
This is just an attempt to make a community where all of us can come together and share your findings, discuss your issues and can help others by responding to their queries.
August 17th, 2009 on 9:54 pm
Good work, Lage raho…
August 19th, 2009 on 5:20 pm
Joy Bhaiya,
U ROCK !!!!!
~Vincent
August 19th, 2009 on 7:55 pm
Good place to start.
August 20th, 2009 on 2:20 pm
Hey Jay,
Excellent work, appreciate it!!! My 2 cents to you 🙂
Some suggestions, please add the samples for the following:
a) How to use Shared Libraries in weblogic server
b) Retrieving Server details such as server name, listen address using JMX
c) EJBs using composite primary key class
d) Simple example of Hibernate/JPA
e) Internationalization
f) JTA using distributed transactions
Thanks
Ravikiran C
December 6th, 2009 on 3:52 am
You can see that recently i have uploaded many Examples Which you asked for like:
a) How to use Shared Libraries in weblogic server
b) Retrieving Server details such as server name, listen address using JMX
d) Simple example of Hibernate
Soon i am going to add remaining as well…Thanks for your Comments
August 27th, 2009 on 11:40 am
Wonderful platform chosen by you.
Thanks a lot for sharing this knowledge bank.:)
I am sure lots more will keep pouring in.
Wish u good luck.
August 30th, 2009 on 12:59 pm
Today for the first time i was going through your blog. i am not surprised though…
Cool stuff..
i post my views too…
October 21st, 2009 on 10:31 pm
Good Work Joy!..
All the best…
November 22nd, 2009 on 4:43 am
Terrific!
December 3rd, 2009 on 5:01 pm
Finally I found 🙂
December 9th, 2009 on 8:14 am
NullPointerException happening in application code when run on 64 bit JRockit 1.5.0_17.
Seeing NPE’s at places where we just check if the object itself is null (without accessing any of the object’s members). We suspect this maybe due to some HotSpot optimization techniques and need your help to resolve the issue.
Here are the server details:
================
Windows 2003 x64 SP2
8GB RAM
### Steps to Reproduce ###
Sample code that throws the NPE:
====================
public static List getValue() {
List ctrList = retrieveDateFromDB();
String oldStr = null;
boolean multiStr = false;
Iterator it = ctrList.iterator();
while (it.hasNext()) {
Container item = (Container)it.next();
if (multiStr == false) {
String newStr = item.getInvoiceNum();
if (newStr == null) {
newStr = “”;
}
if (oldStr == null) { // NPE happens on this line. Doesn’t make any sense //
oldStr = newStr;
} else if (oldStr.equals(newStr) == false) {
multiStr = true;
}
}
// Some more code….
return ctrList;
}
Upgraded from 32 bit JRockit to 64 bit JRockit
Product Versions
Weblogic 9.1
java version “1.5.0_17”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
BEA JRockit(R) (build R27.6.3-40_o-112056-1.5.0_17-20090318-2104-windows-x86_64, compiled mode)
Any pointers……
December 13th, 2009 on 1:39 pm
It Seems to be a BUG with JRockit 64-Bit version…As you have mentioned that the Same Code is working fine with JRockit 32-Bit version.
I tried to reproduce it at my end but i am not getting this kind of NullPointerException…May be My TestCase is not good…
Please get the Exact TestCase and File a JRockit BuG.
December 13th, 2009 on 2:06 pm
Thanks Joy,
Will request for exact test case and will try to to reproduce at my End.
Will even share the test case in the forum.
If able to reproduce i will file a bug.
Regards,
Anand
December 21st, 2009 on 5:08 pm
very gud work..osho ki kripa se…
December 24th, 2009 on 10:56 pm
Great work sir as expected
January 3rd, 2010 on 5:16 pm
Hi Jay,
I have a query, we are using Oracle 10.3 WLS with CLuster+Apacahe load balancer.
We are facing below error
1. Broken Pipe
2. Web logic thread stuck issues because of JDBC queries, but one thing I have observed is whenever we start facing thread stuck, it start impacting the WLS Connection pool, and also start causing problem to other threads/queries which are properly optimized, and after some time WLC connection pool goes out of connections or getting exhausted,
Please guide here.
January 4th, 2010 on 7:05 am
Hi Rakesh,
it is very difficult to findout the root cause without looking at the Thread Dump…And the ConnectionPool Setting(DataSourceName.xml) file. But Still As u have mentioned that U are observind STUCK THREAD on JDBC calls…Please recheck the Stack Trace If somewhere u can see “oracle.jdbc.driver.T4CPreparedStatement.doOall8“.
Are u using Oracle Thin JDBC Driver Version 10.2.x Or Later….Please try using WebLogic provided Driver Just for testing…I have seen Some Issues with “oracle.jdbc.driver.T4CPreparedStatement” Class of Oracle JDBC driver 10.2.x..Causes HANG And Stuck Thread….Anyway that is only one possibility.
Are you Getting “ResourceLimitException” as well …by chance?
———–
About the BrokenPipe Error : This error we usually see when there is a Network Fluctuation…Or network Issue…can u Please Specify Exactly when in Which Server Log u are able to See this Error? Going through the Log will really help a lot to Understand that Which Network we need to check…
Thanks
Jay SenSharma
January 4th, 2010 on 5:01 am
This is really helpful,please keep up good work
January 7th, 2010 on 8:05 pm
Hi Jay,
Do you have any sample struts application for WLS 11G, if so please post it.
Thank you very much
Ravikiran
January 8th, 2010 on 12:42 pm
Hi Ravikiran,
Please find the Struts2.0 Application…in the following Link:
http://jaysensharma.wordpress.com/2010/01/08/struts-2-0-in-weblogic/
Thanks
jay SenSharma
January 17th, 2010 on 7:03 am
Hi Jay, I have been on your website twice in the last 3-4 days. Your work is indeed very helpful and with time I hope it grows into a repository of resolutions. Anyway, I have an issue with Weblogic 10 right now, I have posted about it here. It would be super nice of you if you can help me with it by giving your inputs. Thanks and keep up the great work.
January 17th, 2010 on 6:02 pm
Hi Aditya,
In 95% cases i have seen that this issue occurs when we upgrade our application from WLS8.1 … If our Application Uses some Controls or WebLogic Specific Annotations …
I remember while upgrading my Application ….”annotations-manifest.xml” file was generated in “WAR/WEB-INF/” directory rather than …”EAR/META-INF” firectory in Workshop…When i pasted it in correct location (EAR/META-INF)…the issue got resolved..
When i was working for Oracle Support … Once i got the similar issue… Which was resolved by adding (Project—>Properties—>Java Annotation Processing Support 5.0) In workshop….At the same time i deployed the required WebLogic Shared Libraries to all the Servers/Clusters where we intended to Deploy our Applications.
Once i resolved this kind of issue by adding a Dummy “EAR/META-INF/weblogic-application.xml” file…By My Own…
I think this is an Issue with Oracle WebLogic Product when we use Workshop…They should fix it.
Keep Posting…
Thanks
Jay SenSharma
January 18th, 2010 on 5:07 am
Hi Aditya,
Please contact Oracle Support for “CR379826” Patch reported for the same issue…
Thanks
Jay SenSharma
January 21st, 2010 on 11:07 pm
Hi Jay,
Your site is really amazing and very helpful for me , now involved in Weblogic upgrade from 9.x to 10.3.
I just tried to use the upgrade utility to upgrade my domain to 10.3, but it did not work. I dont want to manually adjust my config.xml etc.
Is there any way we can achieve this task?
I am getting following exception when i run upgrade.sh
com.bea.plateng.plugin.PlugInException: Execute Exception … weblogic.management.ManagementException: Error during transform
ation: weblogic/upgrade/domain/directoryselection/SelectWebLogicVersion.xsl
at weblogic.upgrade.domain.directoryselection.DomainDirectorySelectionPlugIn.execute(DomainDirectorySelectionPlugIn.j
ava:257)
at com.bea.plateng.wizard.plugin.silent.tasks.ExecutePlugInTask.execute(ExecutePlugInTask.java:76)
at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
at java.lang.Thread.run(Thread.java:619)
Caused by: weblogic.management.ManagementException: Error during transformation: weblogic/upgrade/domain/directoryselection/S
electWebLogicVersion.xsl
at weblogic.management.upgrade.ConfigTransformer.transform(ConfigTransformer.java:82)
at weblogic.management.upgrade.ConfigParser.transform(ConfigParser.java:458)
at weblogic.management.upgrade.ConfigParser.parse(ConfigParser.java:296)
at weblogic.upgrade.domain.directoryselection.DomainDirectorySelectionPlugIn.execute(DomainDirectorySelectionPlugIn.j
ava:229)
… 3 more
Caused by: java.lang.RuntimeException: Namespace for prefix ‘xs’ has not been declared.
at com.sun.org.apache.xml.internal.serializer.SerializerBase.getNamespaceURI(SerializerBase.java:895)
at com.sun.org.apache.xml.internal.serializer.SerializerBase.addAttribute(SerializerBase.java:422)
at GregorSamsa.template$dot$4()
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$1()
at GregorSamsa.applyTemplates()
at GregorSamsa.template$dot$0()
at GregorSamsa.applyTemplates()
at GregorSamsa.transform()
at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:602)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:710)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at weblogic.management.upgrade.ConfigTransformer.transform(ConfigTransformer.java:80)
… 6 more
January 22nd, 2010 on 5:16 am
Hi Babu,
Please find your Answer in http://forums.oracle.com/forums/thread.jspa?messageID=4043143#4043143 . I am not able to Paste the XML Snippet here in the Blog .. it is now getting visible here in the Page…
It seems to be a WebLogic BUG…Which has not been reported by anyone…But the Workaround provided in the above Link works.
Keep Posting 🙂
Thanks
Jay SenSharma
January 29th, 2010 on 12:32 pm
Hi Joy,
It is a very good site that I have ever come across… I hereby request you to help me out in guiding / giving pointers in solving the two issues which is exactly similar to the ones posted in Oracle forums.
In short the errors are about – after creating a weblogic domain with two managed servers on two different machines, ( admin and one managed server are on one machine and the other managed server is on the other machine). I try starting the managed server from the admin console and overcome exceptions and the server never comes to running state. Similar posts in forums are here,
1. http://forums.oracle.com/forums/message.jspa?messageID=4060473#4060473
2. http://forums.oracle.com/forums/thread.jspa?threadID=1020130&tstart=0
Thanks, soumya
January 30th, 2010 on 1:17 pm
Hi SoumyaSree,
*OPTION-A)*
If you are able to start the Managed Server using …the Start Scripts then it means that the Missing class gets included in the Server Classpath ….when we use StartScripts to Start the Server.
If above one works fine…then Just try the following..
Step1). Open the “nodemanager.properties” file and then “startScriptEnabled=true” and “startScriptName=startWebLogic.cmd” ….provide these two entries there….remember if you are using any custom scripts to start your managed server …then give that scriptname in “startScriptName” parameter..
Step2). restart the Node Manager and then try to start the Managed Server from Admin Console.
—————————
*OPTION-B)*
Start the ManagedServer using the StartScripts and then open the server OUT file….
Find the value of CLASSPATH in that OUT File …copy the CLASSPATH Value and then Login to Admin Console….
Servers—>Click on ServerName (Example MS1)—> configuration Page —> ServerStart (TAB)
In this page Paste the CLASSPATH Value which u have copied….in the CLASSPATH Test Field…
Now restart your Server using AdminConsole.
Thanks
Jay SenSharma
February 4th, 2010 on 2:13 pm
Thank you very much. I could see the managed server running.
While I was creating a domain configuring the default sources cgpool
etc in Oracle …after the set up process is over , I started the admin server and noticed few exceptions ….
<> <Dynamic invocation while executing action updateDeployments on va_intdomain:Location=intAdminServer,Name=AdminServer,Type=ServerConfig MBean instance failed. The method updateDeployments with signature [] was invoked with parameters as [].
weblogic.management.AbortDeploymentException: weblogic.t3.srvr.FatalStartupException: Can't start server due to startup class failure WLI Startup Class – with nested exception:
[com.bea.wli.init.WLIDBCreateException: At least one WLI data base object (TABLE WLI_USER) was missing]
at weblogic.t3.srvr.StartupClassService.addDeployment(Lweblogic.management.configuration.DeploymentMBean;)V(StartupClassService.java:92)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Lweblogic.management.configuration.DeploymentMBean;)Z(DeploymentTarget.java:337)
Due to this exception the admin server doesnt start up . Can you help me out why this occured and how to fix this ?
Thanks,
Soumya
February 4th, 2010 on 4:37 pm
Hi Soumya,
The error which your are getting complaining about missing “WLI_USER” table. This is most important table in case of WLI domains. The WLI domains Startup class checks the presence of this table in the Database where cgPool datasource is configured.
So to debug this issue please follow the below mentioned steps:
Debug-1). In the Pointbase Database…Please check that the Table “WLI_USER” is existing or not?
If the Table doesn’t exist in the Database then Create all the required Tables in the database by running the script provided by WebLogic in the following location:
//integration/dbscripts/pointbase/wli_runtime.sql
//integration/dbscripts/pointbase/wli_archive.sql
Debug-2). If your server is running in Development mode and if the DataSource (cgPool) points to Pointbase database….then Please start Pointbase database before starting the AdminServer.
Keep Posting 🙂
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com/generalweblogic/#comment-159
February 4th, 2010 on 2:13 pm
Thank you very much!
February 8th, 2010 on 12:38 pm
Great work joy sir….!!!
All the Best.
Regards,
Prashant.
February 16th, 2010 on 3:24 am
Hi Jay,
Thanks for a wonderful blog. I need some thing on JMX in WLS 10.3.
How to access the custom MBeanServer out side of the server which was created using
MBeanServerFactory.createMBeanServer(“mydomain”);
I mean what is jmx url or what is the way to connect to that custom MBeanServer from outside.
Thanks
Sree
February 16th, 2010 on 6:01 am
Hi SreeCharan,
Please find the sample with procedure to “Register And Invok CustomMBeans” in WebLogic Server…http://jaysensharma.wordpress.com/2010/02/16/registering-and-invoking-custommbeans/
Keep Posting 🙂
Thanks
Jay SenSharma
February 16th, 2010 on 6:07 am
Thanks. But the sample whatever you pointed out is to register the custom Mbeans to the existing MBeanserver (Runtime MBeanServer in this case). But my usecase to create my own MBeanServer by using MBeanServerFactory.createMBeanServer(“mydomain”). If we create a MBeanServer like this, then how to get the connection for this MBeanServer from outside.
Thanks
Sree
February 16th, 2010 on 8:18 am
Hi SreeCharan,
Use the following code in
“index.jsp”
<%
MyCustomBean CustomBean = new MyCustomBean_Impl();
MBeanServer mbeanServer = null;
Hashtable env = new Hashtable();
env.put(Context.SECURITY_PRINCIPAL, “weblogic”);
env.put(Context.SECURITY_CREDENTIALS, “weblogic”);
InitialContext ic = new InitialContext(env);
mbeanServer = (MBeanServer) ic.lookup(“java:comp/env/jmx/runtime”);
MBeanServer myMBeanServer=MBeanServerFactory.createMBeanServer(“7001_Domain”);
System.out.println(“nt Created a New MBeanServer : “+myMBeanServer);
String MBEAN_OBJECT_NAME = “mymbeans:Name=MyCustomBean_Impl,Type=MyCustomBean”;
registerMBean(myMBeanServer,MBEAN_OBJECT_NAME,CustomBean);
out.println(“MBean Is Registered with ObjectName: “+MBEAN_OBJECT_NAME);
out.println(“Click Here To Invoke Above MBean“);
%>
———————–
and following code in
“invoke.jsp”
<%
MBeanServer mbeanServer = null;
Hashtable env = new Hashtable();
env.put(Context.SECURITY_PRINCIPAL, “weblogic”);
env.put(Context.SECURITY_CREDENTIALS, “weblogic”);
InitialContext ic = new InitialContext(env);
ArrayList arl=MBeanServerFactory.findMBeanServer(null) ;
try
{
for (Object tmp: arl)
{
com.sun.jmx.mbeanserver.JmxMBeanServer tmpServer=(com.sun.jmx.mbeanserver.JmxMBeanServer)tmp;
//System.out.println(“===>t MBeanServers: “+tmpServer);
String MBEAN_OBJECT_NAME = “mymbeans:Name=MyCustomBean_Impl,Type=MyCustomBean”;
ObjectName objName = new ObjectName(MBEAN_OBJECT_NAME);
Object[] params = new Object[] {“Java”};
String[] sigs = new String[] {“java.lang.String”};
try{
Object obj= tmpServer.invoke(objName, “helloWorld”, (Object[])params, sigs);
System.out.println(“nt obj : “+obj);
if (obj!=null)
{
out.println(“MBean Found.check The Server STDOUT the CustomBean is Invoked…”);
}
}
catch(javax.management.InstanceNotFoundException notFound)
{
System.out.println(“nt InstanceNotFound On MBeanServer: “+tmpServer);
}
}
}
catch(Exception e)
{
e.printStackTrace();
}
ic.close();
%>
Keep Posting 🙂
Thanks
Jay SenSharma
February 16th, 2010 on 8:30 am
Thank you so much. But If I want to invoke the custom MBeanServer from other application or from a standalone java client, how to do that? And if I want to connect to this custom MBeanServer from a third party JMX client say JConsole, then what JXM url i have to give.
Sorry bugging you too much 🙂
Thanks
Sree
February 23rd, 2010 on 9:05 am
Hi Joy,
I knew that whichever platform you choose you will simply rock.
My best wishes are alwz with you…
March 4th, 2010 on 12:48 pm
hi .. thats a great blog for weblogic .. keep it up ..
i have a problem with ejbs on weblogic ..
we are migrating from 9.2 to 10.3 weblogic version .
i have compiled all the classes and stubs with 10.3 version .
we call this ejb from a jsp and it throws a cast exception .
java.lang.ClassCastException: com.sync.ejb.ClusterSync_7ujwwg_HomeImpl_1032_WLStub cannot be cast to com.sync.ejb.ClusterSyncHome
interestingly it works from my standalone program in the workshop . can you help me out in this ?
March 4th, 2010 on 1:17 pm
Hi Pavzie,
I have few questions..
1). Which kind of EJBs are these? Like EJBs 2.x or EJB3.x
2). Stateless/Stateful….etc
3). Are u deploying these EJBs over Cluster?
4). The Jsp from which u are trying to access these EJBs is that part of the Same EAR or a Separete Client Application?
5). Can u Please provide the Deployment Descriptors of the EJBs…like “ejb-jar.xml” and “weblogic-ejb-jar.xml”?
6). The Code snippet of your JSP which access the EJB?
7). And Can u please paste the complete StackTrace of the ClassCastException sothat it will be easy to check that which APIs are getting involved here?
These informations will be really helpful to understand the actual issue.
Thanks
Jay SenSharma
March 9th, 2010 on 3:23 pm
Hi Jay,
Hope your are doing well
I have an issue wherein I am trying to use the SUN STAX implementation by putting following parameters in the java options.
-Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
-Djavax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
-Djavax.xml.stream.XMLEventFactory=com.sun.xml.internal.stream.events.XMLEventFactoryImpl
When I have these parameters the server takes forever to startup.
I believe the culprit to this situation is the following thread that is runs to validate the DTD for XML parsers.
“[ACTIVE] ExecuteThread: ‘1’ for queue: ‘weblogic.kernel.Default (self-tuning)'” daemon prio=6 tid=0x2d3cbc00 nid=0x5c4 runnable [
0x2e65e000..0x2e65fd14]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
– locked (a java.net.SocksSocketImpl)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:209)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:202)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:302)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:388)
– locked (a weblogic.net.http.HttpClient)
at weblogic.net.http.HttpClient.New(HttpClient.java:238)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:172)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:356)
– locked (a weblogic.net.http.SOAPHttpURLConnection)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:36)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1176)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1075)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:993)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:548)
at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60)
at weblogic.application.descriptor.DebugStreamReaderDelegate.next(DebugStreamReaderDelegate.java:89)
at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:441)
at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:317)
at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:207)
at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:460)
at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:403)
at weblogic.application.descriptor.VersionMunger.(VersionMunger.java:82)
at weblogic.application.descriptor.VersionMunger.(VersionMunger.java:58)
at weblogic.application.descriptor.VersionMunger.(VersionMunger.java:40)
at weblogic.application.internal.ApplicationReader.(ApplicationReader.java:24)
at weblogic.application.ApplicationDescriptor$MyApplicationDescriptor.createXMLStreamReader(ApplicationDescriptor.java:497
)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:402)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:
759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:311)
at weblogic.application.internal.ApplicationContextImpl.setApplicationDescriptor(ApplicationContextImpl.java:377)
at weblogic.application.internal.flow.DescriptorParsingFlow.parseDDs(DescriptorParsingFlow.java:112)
at weblogic.application.internal.flow.DescriptorParsingFlow.prepare(DescriptorParsingFlow.java:41)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
When we are using the sun parser, it’s trying to connect to the sun’s server to get the DTD for validation of the xml.
It could well be that the Sun Servers are down at that time or some problems at the Sun Servers end.
It’s actually an expected behavior, or rather, a shortcoming of the sun’s parser which should have allowed some config settings to save/use local copies of DTD for validation.
Is there any way in which we can turn-off the DTD validation?? Do we have any flag for that?
Regards,
Tanmay
March 11th, 2010 on 2:58 pm
Hi Jay,
I’m a trying run the example of JMS over JAX-WS but I can’t. I’ve working in this issue several days and not found the solution.
Maybe, is a small problem or some detail in a configuration file or XML (or someting about JMS), but I can’t find the solution to run this example sucessfully.
I’m reading some entries of your blog and I see that you are an expert in these issues. I write an entry in this forum but now nobody have a solution.
http://forums.oracle.com/forums/thread.jspa?threadID=1020087&tstart=0
Could you help me?
(if you have an example or something similar (a zip file with an example), or anything – I’m desperate and need some help )
jtintin@wanadoo.es
March 17th, 2010 on 9:29 pm
Hi
I am getting below error in 10.3 platform after deployment of ear.
Throwable: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNot
FoundException: rmsi103:Name=cgJMSServer,Type=JMSServer
Stack Trace:
java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundExcept
ion: rmsi103:Name=cgJMSServer,Type=JMSServer
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:671)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1029)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:950)
at com.bea.wli.bpm.runtime.transport.http.SyncAsyncServlet.dispatchMessage(SyncAsyncServlet.java:586)
at com.bea.wli.bpm.runtime.transport.http.SyncAsyncServlet.service(SyncAsyncServlet.java:517)
at weblogic.servlet.FutureResponseServlet.service(FutureResponseServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
March 18th, 2010 on 10:42 am
Hi Bob,
can you please try enabling the following Flags in the JAVA_OPTIONS of your server’s StartScript:
-Dwlw.iterativeDev=false
-Dwlw.testConsole=false
-Dwlw.logErrorsToConsole=false
Keep posting 🙂
Thanks
Jay SenSharma
March 18th, 2010 on 5:43 am
Jay,
Very good blog, in fact lot of technical knowledge. I had been watching your answers in Oracle Forums.
Thanks for sharing the knowledge.
Vijay Bheemineni.
March 18th, 2010 on 6:14 am
Jay… Today first time I had come to your blog. Its excellent with in detail explanation. There are many websites like myne, where we try to post solution but I need to agree that I don’t have as much technical knowledge as you. Looks like you know in and out of weblogic.
Thanks for sharing wonderful articles.
Vijay Bheemineni.
March 24th, 2010 on 2:39 pm
Hi jay,
Could you please throw some light on http://forums.oracle.com/forums/thread.jspa?threadID=1047914&tstart=0
I am NOT running on port 80 & 443, but still I am getting Cannot switch to user “XXXXX”. java.lang.IllegalArgumentException: Cannot initgroups(“XXXXX”), system error: ‘Not owner’
March 24th, 2010 on 6:01 pm
Hi Vijay,
This kind of problems happens only in Unix Based OS…
Please make sure that BEA_HOME is not specified in “.profile” file (you may find it in your $HOME) or in environment setup.
If the “Super User” has installed the BEA_HOME on your Box then you need that right to startWebLogic Server. Please check With which user account the BEA_HOME was installed.
Thanks
Jay SenSharma
March 24th, 2010 on 2:40 pm
Hi Jay,
I am getting Cannot switch to user “XXXXX”. java.lang.IllegalArgumentException: Cannot initgroups(“XXXXX”), system error: ‘Not owner’ even though if I am not Running on port 80 or 443
March 24th, 2010 on 8:15 pm
Hi Vijay,
You can try this as well….In the startScript of your WebLogic Server please set the following JAVA_OPTIONS
JAVA_OPTIONS=${JAVA_OPTIONS} -Dweblogic.system.nonPrivUser=yourusername
Then try to start your server.
Thanks
Jay SenSharma
April 2nd, 2010 on 9:54 pm
Jay,
I find your blogs extremely helpful ……Would you please post a Jax-RPC top down sample code that uses JMS transport for Weblogic 10.3 ?
Tia,
Sajitha
April 4th, 2010 on 7:54 pm
Hi Sanjitha,
Please find the Steps for Top to Bottom approach for JAXRPC JMS Based WebService… http://jaysensharma.wordpress.com/2010/04/04/building-jms-based-webservice-suing-top-to-bottom-appraoch/
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
April 8th, 2010 on 9:00 pm
I was very much impressed by reading your blog.
Great stuff and great dedication. Love it.
Keep it up.
April 8th, 2010 on 9:20 pm
Thanks Rajiv for appreciating.
April 8th, 2010 on 9:21 pm
And Thanks a Lot for Visiting the Blog
April 29th, 2010 on 2:35 am
Hi,
I am using wsimport to generate a service using a standard WSDL. The service itself is an EJB 3.0 based JAX-WS web service.
After generating the service we try to deploy it to WLS server and the deployed service is exposed using a URI which is not the expected one.
Expected service URI is http:///ARService. But the service URI after deployment comes out to be http:///ARService_ServiceImpl/ARService.
The main reason we want the URI to be same is because we need to deploy it to multiple servers i.e. Sun, JBoss and WLS.
Even when we try to deploy the same application on these three servers we get different service URIs.
Weblogic 10.3 => http://localhost:7001/DemoImpl/demo?wsdl
Glassfish 2.1 => http://localhost:7001/demo/DemoImpl?wsdl
(The order of the URI components demo and DemoImpl is flipped between glassfish and weblogic)
JBoss 5.1 => http://localhost:8080/webservice-webservice/DemoService?wsdl
I have already verified these behaviors.
Now as per these findings it seems as if there are no standard in terms of the end service URIs across these containers.
I have also confirmed that using JWSC is not an option since we want the same service to be deployed on multiple servers (the three mentioned above). I have also tried using the javax.jws.WebService.serviceName and javax.jws.WebService.name but it didn’t create any difference in the end behavior.
Do we have any option of specifying the service URI out-of-box in weblogic by which we can specify the required URL, without using WLS specific ant tasks?
Also please let me know why the same application has different URI’s? Are there no standard ways in which the different containers should behave to generate the service URI?
Any pointers will be of great help.
Regards,
May 13th, 2010 on 7:59 am
Good Job my dear friends.
May 13th, 2010 on 2:30 pm
Thanks Leo!
May 17th, 2010 on 6:30 pm
Hi Jay
I came across your website/bolg while I was looking for some information on issues tied to weblogic 8.1 and active directory authentication.
I hope you dont mind me asking you. We have 8 weblogic servers that all authenticate users using the active directory. Recently 4 out of the 8 weblogic servers were not allowing users to log to the application. I dont see any errors except for 403s in the access log.
Looks like something went wrong between those weblogic servers ( running on IBM AIX ) and the external active directory. Is there any setting in weblogic that I can turn on to see what might have been going on at that time? when the user types the id and password, the screen goes balnk for a few minutes and returns with the same login page.
I havent seen anything unusual in the logs and hence am looking at experts on weblogic to help me put here with any suggestion.
Please let me know
thanks
gautam
May 18th, 2010 on 7:00 pm
Hi, I found your articles are informative. Thanks for writing. I just wanted to check on my current requirement. I have to develop an application to configure domains / EAR deployments / JDBC creation using VB.Net as programming language. Can you suggest some ways on this?
Thank you, and have a good day
May 19th, 2010 on 4:44 am
Hi Karthi,
WebLogic Is a Java Based Application Server and most of it’s APIs/JMX implementations are also written and implemented in Java Language only. So far there is no API or extension available which will allow a VB.Net client to Create/Configure/Manage/Monitor the Servers/Domain/Deploy Apps/ or to create dataSources.
We need to use WebLogic’s Java based APIs to acheive this. Using Native code it can be achieved …to interact with WebLogic’s Java Code But it will require a very Big Framework to do so. So far there is no organization/team working on this kind of interoperability.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
June 9th, 2010 on 8:16 am
Hi Jay
What is the command to untarget the data source in wlst?
Thanks in advance.
SArath
June 9th, 2010 on 9:58 pm
Hi Sarath,
First of all i m very sorry for my late response…i was bit involved in some critical production issues…
Please try the below….
To Target AdminServer your can do the Following:
edit()
startEdit()
cd(‘/SystemResources/TestDS’)
set(‘Targets’,jarray.array([ObjectName(‘com.bea:Name=AdminServer,Type=Server’)], ObjectName))
save()
activate()
To Untarget you need to do the following pass the Null jarray like following:
edit()
startEdit()
cd(‘/SystemResources/TestDS’)
set(‘Targets’,jarray.array([], ObjectName))
save()
activate()
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 2nd, 2010 on 2:09 pm
Hi ,
Do we have any area where we can post our questions / or others if incase?
thanks.
August 2nd, 2010 on 3:29 pm
Hi Arun,
You can post your queries in the related Pages of the Forums MainPage: “http://middlewaremagic.com/weblogic/forums/“
Which has many Sub Pages. based on the Topic of your Post you can decide the right page in which you can post.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
September 16th, 2010 on 10:30 am
Hi Jay…..
You guys are doing a great job ….a good place for everyone who does not remember what have been done perhaps resolved in past…like me
Want to participate and post answer of unsolved issue…May I?
Thanks!
September 16th, 2010 on 11:35 am
Hi Webenthu,
Sure you can reply to any comment posted in “forums” page of wonders and all the comments posted on it’s Sub Pages. We Appreciate your help.
The Forums and It’s Sub Pages (http://middlewaremagic.com/weblogic/forums/) are specially provided for the same purpose.
.
.
Keep Posting 🙂 & Replying 🙂
Thanks
Jay SenSharma
October 4th, 2010 on 3:38 pm
Hi,
I am new to this site and do not know where to post my query.
we are considering to add a new component to our existing Swing application which enables to monitor JMS traffic. I heard it is easy to implement via JMX;I am new to JMX can you please provide some information on JMX. We are using Weblogic Server 10.0 MP1
1. Is JMX is part of JEE specification?
2. Is JMX code [instrumented to monitor JMS Destinations & EJBs] portable across various Application servers?
3. How much effort required adding new code or modifying existing code while porting to new App servers?
October 4th, 2010 on 4:01 pm
1. Is JMX is part of JEE specification?
YES
2. Is JMX code [instrumented to monitor JMS Destinations & EJBs] portable across various Application servers?
No, different aplication server ahve differnt Mbean Heirarchy. So the code is nto protable.
3. How much effort required adding new code or modifying existing code while porting to new App servers?
Quite a lot.
Let me know if you ahve further queries.
Thanks,
Faisal
October 13th, 2010 on 9:29 pm
Hi
Can you please tell me why connection pool has added inside data souce from weblogic version 9.x onwards (as we know weblogic 8.x it was separte) ,recently I have faced this question from interviewer .
how can I answer this question please tell me .
Thanks
Balaji kumar
October 14th, 2010 on 10:54 am
Hi Balaji,
DataSource and Connection Pool always work together. Functionality wise there is no change happened in DataSource/Connection Pool from WLS8.x to WLS9.x onwards. But then only Difference you will see that from WLS9.x onwards In the AdminConsole You need not to separately create the Connection Pool. In WLS8.1 We used to create the Connection Pool with all the Database details/Url/DBUsername/DBpassword…and then once the Connection Pool is created Successfully we used to create a DataSource to assign it a Unique JNDI name and then we used to assign the ConnectionPool to the DataSource.
But From WLS9.x Onwards to make it more simple and in One Sequence of Enevts…we made this changes. Now While creating the DataSource itself you need to provide all the Database details/Url/DBUsername/DBpassword as well as the JNDI name. So This change is only for Users Simplicity.
Apart from this there has been a Major Change in the JDBC Module of the WebLogic Container from WLS9.x onwards … That is called as “MultiDataSources”.This feature has been introduced In WebLogic 8.1 Similar feature was available with name “MultiPool” … So to made some enhancement in MultiPool feature they have introduced “MultiDataSource” concept from WLS9.x onwards. Which allows as to even control the Failover of MultiDataSource on our own by writing the our Own Handler….Please refer to : http://middlewaremagic.com/weblogic/2010/05/15/controlling-multidatasource-failover/ for more details.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
February 2nd, 2011 on 10:11 pm
Here i am practicing on Optional Packages which is posted by the jay sensharma.
getting some error while trying to deploy the HelloWorld.jar file by using weblogic.Deployer tool.
Error is:
java weblogic.Deployer -adminurl t3://10.98.98.4:7001 -user weblogic -password passowrd -deploy -targets Admin -library /JavaPreparation/Optional_weblogic/HelloWorld.jar
weblogic.Deployer invoked with options: -adminurl t3://192.168.1.2:7001 -user weblogic -deploy -targets Admin -library /JavaPreparation/Optional_weblogic/HelloWorld.jar
Task 10 initiated: [Deployer:149117]deploy library HelloWorld.jar on Admin.
Task 10 failed: [Deployer:149117]deploy library HelloWorld.jar on Admin.
Target state: deploy failed on Server paladmin
weblogic.application.library.LibraryDeploymentException: [J2EE:160141]Could not initialize the library /JavaPreparation/Optional_weblogic/HelloWorld.jar. Please ensure the deployment unit is a valid library type (war, ejb, ear, plain jar). invalid header field
I made the jar file as you said in the Optional Packages Post…
February 2nd, 2011 on 11:43 pm
Hi Hemanth,
I have uploaded a Simple TestCase of 4KB size in the following link : http://www.4shared.com/file/TkB0G1Wq/OptionalPackageTestCase.html
Please try the above TestCase and let us know if it works for you. It has “HelloWorld.jar” (OptionalPackage) and a Simple WebApplication “TestWebApp” which refers to the HelloWorld Optional Package.
Please read carefully the “META-INF/MANIFEST.MF” inside the TestWebApp as well as inside the “HelloWorld.jar” ..there is the actual trick 😉
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
February 4th, 2011 on 6:05 pm
Hi..Jay
The file which you uploaded is working fine…
Thank you very much Jay
March 1st, 2011 on 6:53 pm
Hi Jay,
I have found the below error in on of my instance on sun box. Due to this error the server went to unknown state.
[Unloading class sun.reflect.GeneratedMethodAccessor50]
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGBUS (0xa) at pc=0xfe5d2ef4, pid=10303, tid=47
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_10-b03 mixed mode)
# Problematic frame:
# C [libzip.so+0x2ef4]
#
# An error report file with more information is saved as hs_err_pid10303.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
As per my knowledge the error is in C [libzip.so+0x2ef4] and send the hs_err_pid10303.log to sun in the url provided ” http://java.sun.com/webapps/bugreport/crash.jsp” they might suggest some patch for this issue right ?
Could you please let know if any other way to avoid this issue
please reply to my id (k8.suresh@gmail.com)
March 1st, 2011 on 7:06 pm
HI sburavel,
The main cause of you issue/ crash is because of the SIGBUS signal.
SIGBUS:
SIGBUS is the signal sent to the process when a bus error occurs, now bus error can occurs when the hardware get a notification by the OS like (Unix-like Operating system) when it sense a memory access violation. The main issue for memory access violation can happen due to the following reasons
1) Invalid address alignment
2) Non-existent physical address
3) Object-specific hardware error
More information can be found in the below link:
http://en.wikipedia.org/wiki/SIGBUS
However JVM take cares of the memory allocation which is on top of any OS and on JVM any JAVA based application can run (like WLS) hence the main culprit here is the JDK which you are using. I can see that that you are using SUN JDK 1.5.0_10, hence would suggest you to upgrade your JDK with the latest JDK for 1.5 UPDATE.
July 2nd, 2011 on 5:25 pm
Hi Jay ,
Appreciate to get some input from you
March 20th, 2012 on 5:04 pm
Hi Jay/Ravish,
I am trying to prepare a script to monitor the JMS queue but I am unable to write proper syntax for like operator
Below is a piece of code
servers = domainRuntimeService.getServerRuntimes();
if (len(servers) > 0):
for server in servers:
jmsRuntime = server.getJMSRuntime();
jmsServers = jmsRuntime.getJMSServers();
for jmsServer in jmsServers:
destinations = jmsServer.getDestinations();
for destination in destinations:
if (destination.getName() like ‘%HTTP%’):
count=destination.getMessagesPendingCount()
dest = destination.getName()
strng = ‘Queue Exceeded the Pending Message Count ‘
getDetails(count , dest, strng)
Thanks
Amit Dey
March 21st, 2012 on 7:23 pm
Note that you are working on a Jython level in the if statement. To compare strings you can for example use match (http://www.jython.org/docs/library/re.html#matching-vs-searching)
March 22nd, 2012 on 7:30 pm
I checked with code mentioned in the website but of no luck.
March 25th, 2012 on 3:38 pm
Hi itsamitdey,
I would suggest you to have a look at the below article which an WLST scpit to monitor a queue
Topic: WebLogic JMS Monitoring Using WLST
http://middlewaremagic.com/weblogic/?p=4931
July 25th, 2012 on 2:04 am
Hi Jay/Ravish,
we are using weblogic 10.3.5 , Daily we gettng ticket as
execute queue thread reaches to 100% utilization after some time it is automatically resolved,
WLSSPI-0011.1: % of execute queue threads used (100.00%) too high (>= 90.00%) [Policy: WLSSPI_0011]
can u plz suggest this issue, is it critical or not ,
can we tune any parameter in weblogic plz suggest.
July 25th, 2012 on 12:14 pm
Since WebLogic 9.2 the threadpool is self managing, i.e., when the need arises it will create more executethreads.
By using work managers you can trottle the threadpool on an application basis.
An example is given here: http://middlewaremagic.com/weblogic/?p=5665 in the ‘EJB processing’ section.
It also gives an explanation on what is going on internally.
July 27th, 2012 on 12:58 am
Hi René,
in my environment we are using only one application in production environment,i am getting execute queue threads used (100.00%)in ticketing tool, because we are created one policy with threshold value.
WLSSPI-0011.1: % of execute queue threads used (100.00%) too high (>= 90.00%) [Policy: WLSSPI_0011]
for this it is generating ticket as incident, to acknowledge this, is there any parameter should i have to change.
by default in production env 25 execute queue thread,how to increase this value.
July 27th, 2012 on 12:50 pm
Note that since WebLogic9.2 the threadpool is self managing, so the when the time is ripe it will create the extra threads.
More information can be found here: http://docs.oracle.com/cd/E11035_01/wls100/perform/topten.html#wp1132662
If you are working with the WebLogic8 thread model, you can find the information you need here: http://docs.oracle.com/cd/E13222_01/wls/docs92/perform/appb_queues.html
The steps the edit the thread queue, count etcetera are outlined here: http://docs.oracle.com/cd/E11035_01/wls100/perform/appb_queues.html#wp1046951
July 27th, 2012 on 1:07 am
Hi Jay/Ravish,
how to reduce socket connections, currently open 7.
&&
open sessions for web application myidm (110.00) too high (>= 100.00)
how to reduce this open sessions, is there any parameter have i tune in weblogic, plz suggest for the same.
July 27th, 2012 on 12:55 pm
Not sure if you mean this (by socket connections) – you can allocate in the WebLogic8 thread model,
some execute thread to act as socket readers: http://docs.oracle.com/cd/E13222_01/wls/docs92/perform/appb_queues.html#wp1046586.
The link outline the steps to changes the Number of Socket Reader Threads For a Server Instance.
You can set the session-timeout to a lower value. Sessions are created by the application you are running. When a user does
not interact with the application for the session timeout value, the session will be deleted.
July 30th, 2012 on 11:52 am
Hi René van Wijk,
Thanks for replying to my posts
is it require to change below parameters in weblogic 10.3.5,
-Dweblogic.Use81StyleExecuteQueues=true
So in that Case …config.xml entry will be like this:
AdminServer
weblogic.kernel.Default
256
true
7001
../../logs/admin_access.log
aaa.bbb.com
because we are using service manager ticketing tool , my managent has configure some policy like,
when execute thread queue reaches to 100% it is generating as one incident,daily we r getting this incident, some times ticket was closed automatically because of self tuning by weblogic server which you mentioned above.
is that incident was critical ,(or) is it require to change any parameters in weblogic 10.3.5,
some times when struck thread happen in server that time also we are getting same.
plz suggest above issue.
July 30th, 2012 on 1:52 pm
If I understand you correctly, you are using WebLogic 10.3.5. In this case do not set the weblogic.Use81StyleExecuteQueues parameter.
In WebLogic 10.3.5, the thread management in self managing, meaning it will start with, for example, three threads and when the need
is present it will created new ones.
Note that in this case the monitoring you are doing is somewhat unnecessary. In this case it makes more sense to monitor if threads are getting stuck.
When too many threads are getting stuck (each consuming memory) the environment (WebLogic Server) can run into an out-of-memory error.
Note that WebLogic provides functionality to protect the server from overloading:
– http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/tuning/TuningForOverload.html
– http://docs.oracle.com/cd/E21764_01/apirefs.1111/e13952/taskhelp/tuning/TuningExecuteThreads.html
July 30th, 2012 on 1:12 pm
in my environment we are deploying only one application
to avoid issue what we have to do
WLSSPI-0011.1: % of execute queue threads used (100.00%) too high (>= 90.00%) [Policy: WLSSPI_0011]
still we are getting same issue,& is it require configure work managers for application also?.
plz suggest me
July 30th, 2012 on 1:20 pm
above issue we are deploying only one application with 2 managed server.
conifiguaration details:
struct thread maxtime : 900sec
min connectionpool 1
max connectionpool 2000
increment 1
July 31st, 2012 on 6:22 pm
Thank you so much for your reply
September 18th, 2012 on 10:32 am
Hi Rene,
Please help me out of this, in my production environment Daily server.out file taking more than 1GB
file system reaches to high,to delete that file weekly basis we are bounceing the server, beacause it is JVM level, how delete server.out file when weblogic server running.
i tested in practice system using this command $>server1.out that time they no imapact on my server,
can apply for the same in production env, plz suggest for the same(plz share the any script for that).
Regards,
Ravi
September 18th, 2012 on 11:11 pm
https://forums.oracle.com/forums/thread.jspa?messageID=10168409�
A good post on logging is provided here: http://lzy.sh/b/weblogic-11g-logging-configuration-settings/ but not on .out file rotation
The information the WebLogic documentation provides can be found here: http://docs.oracle.com/cd/E21764_01/web.1111/e13740/overview.htm#i1079068
One thing to note is the following: You cannot limit the size of the log files Node Manager creates. Thus we need something to write ourselves, when your on Linux
you are in luck. In this post: http://myexperienceswithsoa.blogspot.com/2011/12/rotating-out-files-in-soa-11g-weblogic.html a nice script is provided:
”
By default Weblogic doesn’t have options to rotate the *.out file, so if we are running on Linux boxes, we can add the following snippet under /etc/logrotate.conf file and append a function to handle *.out files
(location of logs directory)/*.out {
copytruncate
rotate 5
size=10M
}
Basically the above function rotates the .out file for 5 times,once each file reaches the 10MB size and then it truncates the file.
”
Another is provided here: http://fusion11g.blogspot.com/2011/07/serverout-files-rotation.html
More information on the logrotate program is provided here: http://www.techrepublic.com/article/manage-linux-log-files-with-logrotate/1052474
You could use a cron job to clean up the log files, cron job examples are provided here: http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
and logrotate example: http://www.thegeekstuff.com/2010/07/logrotate-examples/
September 20th, 2012 on 1:11 pm
Hi Renu,
i tried above the scripts in my linux 5.3 system as mentioned below in root user,
$vi s1.sh
/d01/oracle/wls/user_projects/domain/eksdomain/server/../../manageserver1.out
{
copytruncate
rotate 5
size=10M
}
when i am running $./vi.sh , it is showing (copytruncate, rotate) commands are not working message
even i tried same script in /etc/logrotate file also it is not rotated please suggest for the same.
Regards,
Ravi
Hi,
In my production environment we are using HP-UNIX server
but i can’t find any option like /etc/logrotation file.
in unix env how we will do log rotation.
Regards,
Ravi
September 21st, 2012 on 12:07 pm
The logrotate examples given are for Linux, with HP-UX some information is provided here: http://h30499.www3.hp.com/t5/System-Administration/How-to-do-log-rotation-in-HP-UX/td-p/4652063#.UFwKoY1lTEw
which has a couple of links that might help you out.
December 6th, 2012 on 7:56 am
Hi Rene,
please help me below issue , we are getting below type of issue , when i am connecting to database it is not connecting i am getting type below issue, please its urgent.
Hi,
I have weblogic installed on my machine and when trying to connect to DB linke dwith managed server, it is throwing error as
Apr 5, 2012 5:13:33 PM IST> <Failure occurred in the execution of deployment request with ID '1333626211843' for task 'weblogic.deploy.configChangeTask.6'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
Truncated. see log file for complete stacktrace
weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: NL Exception was generated
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
Truncated. see log file for complete stacktrace
I have set the classpath for weblogic and tried to ping the DB, but its has given me the exception as
Error encountered:
java.sql.SQLRecoverableException: Io exception: NL Exception was generated
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411) at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:490)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:202)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at utils.dbping.main(dbping.java:192)
Could anyone please help me. This is something urgent for me
December 6th, 2012 on 3:20 pm
There is something mentioned here (https://forums.oracle.com/forums/thread.jspa?messageID=2693825 and http://dbaforums.org/oracle/index.php?showtopic=990 which includes more details about RAC) about the connect string not being right (do not know if that is
also the case with you, as you did not post the connect string you are using)
“This was caused by my JDBC-string. I used a string like “jdbc:oracle:thin:@DESCRIPTION = (ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = ……
and I should have used “jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = ……
Note that there is a ‘(‘ before DESCRIPTION.”
“ADMIN_JDBC_URL=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mcharpen-fr-vip.fr.oracle.Com)(PORT=1555))(ADDRESS=(PROTOCOL=TCP)(HOST=suppolite1-vip.fr.oracle.com)(PORT=1555))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl.fr.oracle.com)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=180)(DELAY=5))))”
April 24th, 2016 on 10:11 pm
I have two machines connected via wireless router. Both can ping each other. My node manager is up and running in one machine. I logged into the admin console from the other machine and found that the node manager is reachable. But when I am trying to start the admin server using nmConnect(), I am getting the following error
WLSTException: Error occured while performing nmConnect : Cannot connect to Node
Manager. : [Security:090476]Invalid/unknown SSL header was received from peer D
ESKTOP-HUCQUK5 – 192.168.0.5 during SSL handshake.
Use dumpStack() to view the full stacktrace.
Here 192.168.0.5 is the ip of the machine in which the node manager is running.
I have set the node manager type as plain, and host name to none from my admin console. In the nodemamager.properties file I have set the securedListener as false. But still no result.
December 29th, 2016 on 1:29 pm
Hi,
I have two domains configured on different physical servers. Domain 1 hosted with weblogic server and is clustered. Doamin 2 has Weblogic and OHS server. Domain has a java application deployed on weblogic. Domain 2 has some other java applications and some image stored on a directory. Through url i can login and a jsp will display all the required information. An Ecard is displayed and all the images are shown as expected. While to try to download this Ecard into PDF, a PDF gets generated but it has to comeup with the image on it, which is missing. If i restart and try to download PDF, i get image on PDF. But at peak time this not happening. Below i have posted the error message.
123123
validProfiletrue
Image Error Message–Server returned HTTP response code: 504 for URL: http://xxxx/BagicEcard/Health_Ecard/uplo
ad/GHQ-1919-8403-2017-200627-2Child1-21324_160927170628.jpg
java.io.IOException: Server returned HTTP response code: 504 for URL: http://xxxx/BagicEcard/Health_Ecard/uplo
ad/GHQ-1919-8403-2017-200627-2Child1-21324_160927170628.jpg
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
at java.net.URL.openStream(URL.java:1010)
at com.lowagie.text.Image.getInstance(Unknown Source)
at com.lowagie.text.Image.getInstance(Unknown Source)
at jsp_servlet._health_ecard.__hlth_idcard._jspService(__hlth_idcard.java:215)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
at com.xxxx.weo.struts.WeoRequestProcessor.processForwardConfig(WeoRequestProcessor.java:141)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
at com.xxxx.weo.struts.WeoRequestProcessor.process(WeoRequestProcessor.java:37)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3729)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:22
I have done wget to get the image from domain1 and is successful to download the image. Through jsp on browser i am able to see the image. Its only when downloading PDF this error occurs. But after restart it is fine for some time. Could you please provide your valuable inputs on this. I suspect the response is timing out due to domain 2 slow response. If that is the case, what parameter needs to tuned in this case. Really appreciate your response on this. Looking forward for your valuable inputs.
December 29th, 2016 on 1:45 pm
Hello Noor,
If the PDF size is too large then i am suspecting that your N/W firewall setting Or Network rules might be causing the “HTTP response code: 504”.
As per the RFC specification on HTTP: https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
10.5.5 504 Gateway Timeout
The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request.
So please try with a smaller size of PDF and then find out if the size of PDF is causing any issue or not.
If you are facing this issue with all size of PDF files downloading then you should also check if your application has the mime type defined properly inside the “WEB-INF/web.xml” file or not?
<mime-mapping>
<extension>pdf</extension>
<mime-type>application/pdf</mime-type>
</mime-mapping>
Regards
Jay SenSharma
April 18th, 2018 on 2:14 pm
Hi, may i ask something?
Hope u still manage this web.
I had facing a problem about WLS(Version: 10.3.6.0)
Eg: For my system content with 4 menu link in the side menu, reboot WSL, menu link will missing become 3 link only every times.
I’m required re-deploy my program to solved it for current solution.
Seeking you advice, hope can heard from you.
anything can email me.