java如何监控weblogic 12

现在我想用Java去实现对weblogic的监控,不知道大神们有没有什么好的方法,最好详细点的

3个回答

使用JMX可以对weblogic进行监控。给你点资料
API:http://docs.oracle.com/cd/E13222_01/wls/docs90/wlsmbeanref/core/index.html

我现在正在做weblogic监控这方面的东西呢,如果有什么问题,可以联系我咱俩互相讨论,顺便附上我最初的测试代码
package com.whm.test.weblogic;

import java.io.IOException;
import java.net.MalformedURLException;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Hashtable;

import javax.management.AttributeNotFoundException;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanException;
import javax.management.MBeanServerConnection;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.ReflectionException;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax.naming.Context;

import weblogic.health.HealthState;

public class JmxWeblogic {

private static MBeanServerConnection connection;
private static JMXConnector connector;

private static ObjectName runtimeService;

private static final String RUNTIMESERVICEMBEAN = "com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean";

/**
 * 初始化连接
 * 
 * @throws IOException
 * @throws MalformedURLException
 * @throws MalformedObjectNameException
 */
public static void initConnection() throws IOException,
        MalformedURLException, MalformedObjectNameException {
    String protocol = "t3";
    // String hostname = "192.168.161.101";
    // String portString = "7001";
    // String username = "weblogic";
    // String password = "wang1234";
    String hostname = "127.0.0.1";
    String portString = "7001";
    String username = "test";
    String password = "test1234";
    Integer portInteger = Integer.valueOf(portString);
    int port = portInteger.intValue();
    String jndiroot = "/jndi/";
    String mserver = "weblogic.management.mbeanservers.runtime";
    JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port,
            jndiroot + mserver);

    Hashtable<String, String> h = new Hashtable<String, String>();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
            "weblogic.management.remote");

    connector = JMXConnectorFactory.connect(serviceURL, h);
    connection = connector.getMBeanServerConnection();

    runtimeService = new ObjectName(RUNTIMESERVICEMBEAN);
}

/**
 * 连接池管理
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getConnectorServiceRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // 应用服务运行时 ApplicationRuntimes
    ObjectName[] applicationRuntimes = getAttribute(serverRuntime,
            "ApplicationRuntimes");
    for (int i = 0; i < applicationRuntimes.length; i++) {
        ObjectName applicationRuntime = applicationRuntimes[i];
        ObjectName[] componentRuntimes = getAttribute(applicationRuntime,
                "ComponentRuntimes");
        for (int j = 0; j < componentRuntimes.length; j++) {
            ObjectName componentRuntime = componentRuntimes[j];
            String type = getAttribute(componentRuntime, "Type");
            System.out.println(type);
            if (!type.equals("ConnectorComponentRuntime")) {
                continue;
            }

            ObjectName[] connectionPools = getAttribute(componentRuntime,
                    "ConnectionPools");
            for (int k = 0; k < connectionPools.length; k++) {
                ObjectName connectionPool = connectionPools[k];
                // 连接池的状态 State
                String state = getAttribute(connectionPool, "State");
                // 服务名称 Name
                String name = getAttribute(connectionPool, "Name");
                // 连接池名称 PoolName
                String poolName = getAttribute(connectionPool, "PoolName");
                // 连接池中的当前使用的连接数量 ActiveConnectionsCurrentCount
                Integer activeConnectionsCurrentCount = getAttribute(
                        connectionPool, "ActiveConnectionsCurrentCount");
                // 等待池中连接的最大客户数 HighestNumWaiters
                Long highestNumWaiters = getAttribute(connectionPool,
                        "HighestNumWaiters");
                // 丢失的连接数 ConnectionLeakProfileCount
                Integer connectionLeakProfileCount = getAttribute(
                        connectionPool, "ConnectionLeakProfileCount");
                // 连接池最大连接数 MaxCapacity
                Integer maxCapacity = getAttribute(connectionPool,
                        "StMaxCapacityate");

                System.out.println(name);
                System.out.println(poolName);
                System.out.println(state);
                System.out.println(activeConnectionsCurrentCount);
                System.out.println(highestNumWaiters);
                System.out.println(connectionLeakProfileCount);
                System.out.println(maxCapacity);

            }
        }

    }
}

/**
 * 执行队列运行时
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getExecuteQueueRuntimes(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // 执行队列运行时 ExecuteQueueRuntimes
    ObjectName[] executeQueueRuntimes = getAttribute(serverRuntime,
            "ExecuteQueueRuntimes");
    for (int i = 0; i < executeQueueRuntimes.length; i++) {
        ObjectName executeQueueRuntime = executeQueueRuntimes[i];

        // 队列的名称 Name
        String name = getAttribute(executeQueueRuntime, "Name");
        // 执行线程的总数目 ExecuteThreadTotalCount
        Integer executeThreadTotalCount = getAttribute(executeQueueRuntime,
                "ExecuteThreadTotalCount");
        // 队列中当前空闲线程数 ExecuteThreadCurrentIdleCount
        Integer executeThreadCurrentIdleCount = getAttribute(
                executeQueueRuntime, "ExecuteThreadCurrentIdleCount");
        // 队列中最长的等待时间 PendingRequestOldestTime
        // 取出相应毫秒值
        Long pendingTime = getAttribute(executeQueueRuntime,
                "PendingRequestOldestTime");
        // 获取毫秒值对应的日期,并转换成指定格式
        Date pendingDate = new Date(pendingTime);
        String pendingRequestOldestTime = formatDate(pendingDate,
                "yyyy/MM/dd HH:mm:ss");
        // 队列中等待的请求数 PendingRequestCurrentCount
        Integer pendingRequestCurrentCount = getAttribute(
                executeQueueRuntime, "PendingRequestCurrentCount");
        // 被本队列处理的请求总数 ServicedRequestTotalCount
        Integer servicedRequestTotalCount = getAttribute(
                executeQueueRuntime, "ServicedRequestTotalCount");

        // TODO
        System.out.println(name);
        System.out.println(executeThreadTotalCount);
        System.out.println(executeThreadCurrentIdleCount);
        System.out.println(pendingRequestOldestTime);
        System.out.println(pendingRequestCurrentCount);
        System.out.println(servicedRequestTotalCount);
    }
}

/**
 * JDBC数据源运行时
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getJDBCDataSourceRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // JDBC运行时 JDBCServiceRuntime
    ObjectName jdbcServiceRuntime = getAttribute(serverRuntime,
            "JDBCServiceRuntime");
    // TODO
    // System.out.println(getAttribute(
    // jdbcServiceRuntime, "Name"));
    // JDBC数据源运行时 JDBCDataSourceRuntimeMBeans
    ObjectName[] jdbcDataSourceRuntimeMBeans = getAttribute(
            jdbcServiceRuntime, "JDBCDataSourceRuntimeMBeans");

    for (int i = 0; i < jdbcDataSourceRuntimeMBeans.length; i++) {
        ObjectName jdbcDataSourceRuntimeMBean = jdbcDataSourceRuntimeMBeans[i];

        // 名称 Name
        String name = getAttribute(jdbcDataSourceRuntimeMBean, "Name");

        // // 返回当前等待连接的总数 WaitingForConnectionCurrentCount
        Integer waitingForConnectionCurrentCount = getAttribute(
                jdbcDataSourceRuntimeMBean,
                "WaitingForConnectionCurrentCount");
        // 重新连接失败计数 FailuresToReconnectCount
        Integer failuresToReconnectCount = getAttribute(
                jdbcDataSourceRuntimeMBean, "FailuresToReconnectCount");
        // 状态 State (Running,Suspended,Shutdown,Unhealthy,Unknown)
        String state = getAttribute(jdbcDataSourceRuntimeMBean, "State");
        // 泄漏的连接计数 LeakedConnectionCount
        Integer leakedConnectionCount = getAttribute(
                jdbcDataSourceRuntimeMBean, "LeakedConnectionCount");
        // 部署状态 DeploymentState
        Integer deploymentState = getAttribute(jdbcDataSourceRuntimeMBean,
                "DeploymentState");

         System.out.println(name);
         System.out.println(waitingForConnectionCurrentCount);
         System.out.println(failuresToReconnectCount);
         System.out.println(state);
         System.out.println(leakedConnectionCount);
         System.out.println(deploymentState);
         System.out.println();
    }

}

/**
 * JVM运行时
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getJVMRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // JVM运行时 JVMRuntime
    ObjectName JVMRuntime = getAttribute(serverRuntime, "JVMRuntime");
    // 名称 Name
    String name = getAttribute(JVMRuntime, "Name");
    // 堆大小最大值 HeapSizeMax
    Long heapSizeMax = getAttribute(JVMRuntime, "HeapSizeMax");
    // 返回当前JVM堆中空闲内存数,单位时字节 HeapFreePercent
    Integer heapFreePercent = getAttribute(JVMRuntime, "HeapFreePercent");
    // 当前堆的总空间
    Long heapSizeCurrent = getAttribute(JVMRuntime, "HeapSizeCurrent");
    // 当前堆已使用的空间 HeapFreeCurrent
    Long heapFreeCurrent = getAttribute(JVMRuntime, "HeapFreeCurrent");
    getAttribute(JVMRuntime, "HeapFreeCurrent");

    // TODO
    // System.out.println(name);
    // System.out.println(byteToMB(heapSizeMax));
    // System.out.println(heapFreePercent);
    // System.out.println(byteToMB(heapSizeCurrent));
    // System.out.println(byteToMB(heapFreeCurrent));

}

/**
 * 服务器运行时
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getServerRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {

    // 服务名称 Name
    String name = getAttribute(serverRuntime, "Name");
    // 返回服务器激活时间ActivationTime
    Long activationTime = getAttribute(serverRuntime, "ActivationTime");

    Date date = new Date(activationTime);
    String time = formatDate(date, "yyyy/MM/dd HH:mm:ss");
    // 返回当前服务器监听连接的端口 ListenPort
    Integer listenPort = getAttribute(serverRuntime, "ListenPort");
    // 返回当前服务器监听连接的IP地址 ListenAddress
    String listenAddress = getAttribute(serverRuntime, "ListenAddress");
    // 状态 State
    String state = getAttribute(serverRuntime, "State");
    // 应用服务器的健康状态 HealthState
    HealthState healthState = (HealthState) connection.getAttribute(
            serverRuntime, "HealthState");
    // 当前打开的Socket数量 OpenSocketsCurrentCount
    Integer openSocketsCurrentCount = getAttribute(serverRuntime,
            "OpenSocketsCurrentCount");
    // 打开的Socket的总数 SocketsOpenedTotalCount
    Long socketsOpenedTotalCount = getAttribute(serverRuntime,
            "SocketsOpenedTotalCount");
    // 当前连接数 TODO


    System.out.println(healthState.getState());
    System.out.println(healthState.getMBeanName());
    System.out.println(healthState.getMBeanType());
    System.out.println(healthState.getSubsystemName());
    // TODO

// System.out.println(name);
// System.out.println(time);
// System.out.println(listenPort);
// System.out.println(listenAddress);
// System.out.println(state);
// System.out.println(healthState.getState());
// System.out.println(openSocketsCurrentCount);
// System.out.println(socketsOpenedTotalCount);

}

/**
 * web应用程序运行时组件
 * 
 * @param serverRuntime
 * @throws AttributeNotFoundException
 * @throws InstanceNotFoundException
 * @throws MBeanException
 * @throws ReflectionException
 * @throws IOException
 */
public void getWebAppComponentRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // 获取web应用程序运行时组件
    ObjectName[] applicationRuntimes = getAttribute(serverRuntime,
            "ApplicationRuntimes");
    for (int i = 0; i < applicationRuntimes.length; i++) {
        ObjectName applicationRuntime = applicationRuntimes[i];
        ObjectName[] componentRuntimes = getAttribute(applicationRuntime,
                "ComponentRuntimes");
        for (int j = 0; j < componentRuntimes.length; j++) {
            ObjectName componentRuntime = componentRuntimes[j];
            String componentType = getAttribute(componentRuntime, "Type");
            // web应用程序运行时组件 WebAppComponentRuntime
            if (componentType.equals("WebAppComponentRuntime")) {
                // 单元名 Name
                String name = getAttribute(componentRuntime, "Name");
                // 部署状态 DeploymentState
                Integer deploymentState = getAttribute(componentRuntime,
                        "DeploymentState");
                // 当前打开的Session数 OpenSessionsCurrentCount
                Integer openSessionsCurrentCount = getAttribute(
                        componentRuntime, "OpenSessionsCurrentCount");
                // Web应用程序名称
                // 打开的Session最高数 OpenSessionsHighCount
                Integer openSessionsHighCount = getAttribute(
                        componentRuntime, "OpenSessionsHighCount");
                // 打开的Session的总数 SessionsOpenedTotalCount
                Integer sessionsOpenedTotalCount = getAttribute(
                        componentRuntime, "SessionsOpenedTotalCount");
                // 应用状态 Status
                String status = getAttribute(componentRuntime, "Status");

                // TODO
                System.out.println("name = " + name + ", status = "
                        + deploymentState);
                System.out.println(openSessionsCurrentCount);
                System.out.println(openSessionsHighCount);
                System.out.println(sessionsOpenedTotalCount);
                System.out.println(status);
                System.out.println();
            }
        }
    }
}

/**
 * 线程池运行时
 * 
 * @throws IOException
 * @throws ReflectionException
 * @throws MBeanException
 * @throws InstanceNotFoundException
 * @throws AttributeNotFoundException
 */
public void getThreadPoolRuntime(ObjectName serverRuntime)
        throws AttributeNotFoundException, InstanceNotFoundException,
        MBeanException, ReflectionException, IOException {
    // 获取线程池运行时
    ObjectName threadPoolRuntime = getAttribute(serverRuntime,
            "ThreadPoolRuntime");
    // 暂停的 Suspended
    Boolean suspended = (Boolean) getAttribute(threadPoolRuntime,
            "Suspended");
    // 待处理用户请求计数 PendingUserRequestCount
    Integer pendingUserRequestCount = getAttribute(threadPoolRuntime,
            "PendingUserRequestCount");
    // 占用线程计数 HoggingThreadCount
    Integer hoggingThreadCount = getAttribute(threadPoolRuntime,
            "HoggingThreadCount");
    // 队列长度 QueueLength
    Integer queueLength = getAttribute(threadPoolRuntime, "QueueLength");

    System.out.println(suspended);
    System.out.println(pendingUserRequestCount);
    System.out.println(hoggingThreadCount);
    System.out.println(queueLength);
}

/**
 * 获取weblogic属性参数
 * 
 * @param objectName
 * @param name
 * @return
 */
@SuppressWarnings("unchecked")
public static <T> T getAttribute(ObjectName objectName, String name) {
    Object obj = null;
    try {
        obj = connection.getAttribute(objectName, name);
    } catch (Exception e) {
        // TODO
        e.printStackTrace();
    }
    return (T) obj;
}

/**
 * 日期格式转换
 * 
 * @param date
 * @param format
 * @return
 */
public static String formatDate(Date date, String format) {
    DateFormat df = new SimpleDateFormat(format);
    return df.format(date);
}

/**
 * 字节转换成MB
 * 
 * @param bytes
 * @return
 */
public static String byteToMB(long bytes) {
    double mb = (double) bytes / 1024 / 1024;
    DecimalFormat df = new DecimalFormat("#.00");
    return df.format(mb);
}

// TODO
public static void main(String[] args) throws Exception {
    JmxWeblogic weblogic = new JmxWeblogic();
    initConnection();

    ObjectName serverRuntime = getAttribute(runtimeService, "ServerRuntime");

    weblogic.getConnectorServiceRuntime(serverRuntime);
}

}


你好:
登录weblogic的控制台, http://xxx:7001/console, 有2个server 实例,
但是通过这段代码,获取到的 只有一个, 是哪里有问题吗?

谢谢二楼的回答,顶你哦

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
weblogic 12c 部署java war包 一直出错
昨天遇到一个很奇怪的问题,在weblogic12C上面部署我的项目war包 一直报错, 说拿不到数据源,但是我在IDEA里面使用tomcat是能运行的,然后我试着不部署war包 直接用编译后的项目结构部署上去是可以的,但是就是war包部署后运行就一直报错, 很纠结这个问题,不知道有没有大神能帮我解答下。
weblogic12c oracle10g NotSerializableException
java.rmi.UnmarshalException: oracle.jdbc.driver.T4CConnection; nested exception is: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:476) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272) at com.lenovo.stat.collection.SubmitInfoBean_5ry88c_EOImpl_1211_WLStub.setSubmitObj(Unknown Source) at com.lenovo.stat.collection.SubmitInfoBeanClient.setSubmitObj(SubmitInfoBeanClient.java:125) at com.lenovo.stat.collection.DataSubmit.addItem(DataSubmit.java:83) at com.lenovo.stat.pub.AbstractServletAction.runAction(AbstractServletAction.java:279) at com.lenovo.stat.pub.ServletNavigation.doServlet(ServletNavigation.java:601) at jsp_servlet._pub.__run_action._jspService(__run_action.java:102) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284 ) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.ja va:254) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at weblogic.rmi.extensions.server.CBVOutputStream.writeObject(CBVOutputStream.java:80) at weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:280) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:193) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:461) ... 25 more 我试了将ojdbc14.jar替换weblogic12c里面自带的ojdbc6.在console中配置jdbc数据源时就报错了。有什么其他办法解决这个问题吗?
在weblogic12.1.3部署应用是没问题的,但在weblogic12.1.2部署就提示错误
在weblogic12.1.3部署应用是没问题的,但在weblogic12.1.2部署就提示错误,错误如下: 错误 无法访问所选应用程序。 错误 Apps tool failure: Check nested exception for details 错误 Apps tool failure: Check nested exception for details 错误 java.lang.ArrayIndexOutOfBoundsException weblogic.utils.compiler.ToolFailureException: 29287 at weblogic.application.compiler.FlowDriver.handleStateChangeException(FlowDriver.java:54) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:38) at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:163) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.application.compiler.AppMerge.main(AppMerge.java:194) at weblogic.appmerge.main(appmerge.java:13) Caused by: java.lang.ArrayIndexOutOfBoundsException: 29287 at com.bea.objectweb.asm.ClassReader.readClass(Unknown Source) at com.bea.objectweb.asm.ClassReader.accept(Unknown Source) at com.bea.objectweb.asm.ClassReader.accept(Unknown Source) at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:52) at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:211) at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:203) at weblogic.application.utils.annotation.ClassfinderClassInfos.<init>(ClassfinderClassInfos.java:37) at weblogic.servlet.internal.War.initializeClassInfosIfNecessary(War.java:443) at weblogic.servlet.internal.War.getAnnotatedClasses(War.java:373) at weblogic.servlet.internal.WebBaseModuleExtensionContext.getAnnotatedClasses(WebBaseModuleExtensionContext.java:63) at weblogic.ejb.container.deployer.BaseModuleExtensionFactory.hasAnnotatedEJBs(BaseModuleExtensionFactory.java:50) at weblogic.ejb.tools.EJBToolsModuleExtensionFactory.create(EJBToolsModuleExtensionFactory.java:22) at weblogic.application.compiler.ModuleState.initExtensions(ModuleState.java:206) at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:30) at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:63) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37) at weblogic.application.compiler.BaseMerger.merge(BaseMerger.java:20) at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:75) at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:40) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37) ... 5 more
JMX监控weblogic问题
工作须要,得监控weblogic的指标,例如:连接池、线程数、JMS明细、EJB明细,等指标!在网上了解了一下JMX原理,也做了一个JMX的Hello例子,但是要监控weblogic不知道如何动手,得到了与weblogic的Mbeanserverconnection,但是不知道怎么得到我要的监控指标,是还要注册相应的Mbean?该Mbean要怎么写呀?又怎么从Mbean上得到相应的监控数据,自己做的JMX例子好像太浅,希望哪位JMX老手指点一下,能否提供点JMX资料!我得到Mbeanserverconnection的代码如下: private static MBeanServerConnection lookupMBeanServer9(String ip, String port, String name, String pass) { String protocol; String s5; protocol = "t3"; s5 = "/jndi/weblogic.management.mbeanservers.runtime"; MBeanServerConnection mbeanserverconnection; try { //JarLoader jarloader = new JarLoader((new StringBuilder()).append(".").append(File.separator).append("working").append(File.separator).append("classes").append(File.separator).append("weblogicclient9.jar").toString()); //Thread.currentThread().setContextClassLoader(jarloader); JMXServiceURL jmxserviceurl = new JMXServiceURL(protocol,ip, Integer.parseInt(port), s5); Hashtable hashtable = new Hashtable(); hashtable.put("java.naming.security.principal", name); hashtable.put("java.naming.security.credentials", pass); hashtable.put("jmx.remote.protocol.provider.pkgs", "weblogic.management.remote"); JMXConnector jmxconnector = JMXConnectorFactory.connect(jmxserviceurl, hashtable); mbeanserverconnection = jmxconnector.getMBeanServerConnection(); return mbeanserverconnection; }catch(Exception ex){ ex.printStackTrace(); } return null; }
weblogic12.1.3部署应用没报错,但部署到weblogic12.1.2就报错了
weblogic12.1.3部署应用没报错,但部署到weblogic12.1.2就报错了,错误如下: 错误 无法访问所选应用程序。 错误 Apps tool failure: Check nested exception for details 错误 Apps tool failure: Check nested exception for details 错误 java.lang.ArrayIndexOutOfBoundsException 详细错误: weblogic.utils.compiler.ToolFailureException: 29287 at weblogic.application.compiler.FlowDriver.handleStateChangeException(FlowDriver.java:54) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:38) at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:163) at weblogic.utils.compiler.Tool.run(Tool.java:158) at weblogic.utils.compiler.Tool.run(Tool.java:115) at weblogic.application.compiler.AppMerge.main(AppMerge.java:194) at weblogic.appmerge.main(appmerge.java:13) Caused by: java.lang.ArrayIndexOutOfBoundsException: 29287 at com.bea.objectweb.asm.ClassReader.readClass(Unknown Source) at com.bea.objectweb.asm.ClassReader.accept(Unknown Source) at com.bea.objectweb.asm.ClassReader.accept(Unknown Source) at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:52) at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:211) at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:203) at weblogic.application.utils.annotation.ClassfinderClassInfos.<init>(ClassfinderClassInfos.java:37) at weblogic.servlet.internal.War.initializeClassInfosIfNecessary(War.java:443) at weblogic.servlet.internal.War.getAnnotatedClasses(War.java:373) at weblogic.servlet.internal.WebBaseModuleExtensionContext.getAnnotatedClasses(WebBaseModuleExtensionContext.java:63) at weblogic.ejb.container.deployer.BaseModuleExtensionFactory.hasAnnotatedEJBs(BaseModuleExtensionFactory.java:50) at weblogic.ejb.tools.EJBToolsModuleExtensionFactory.create(EJBToolsModuleExtensionFactory.java:22) at weblogic.application.compiler.ModuleState.initExtensions(ModuleState.java:206) at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:30) at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:63) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37) at weblogic.application.compiler.BaseMerger.merge(BaseMerger.java:20) at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:75) at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:40) at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37) ... 5 more
能监控weblogic的工具,比console更直观方便的那种
有什么工具软件能监控weblogic服务器,能监控线程数、连接数、堆内存的那种?如果有最好有下载地址,之前百度没有找到合适的,望大佬们推荐一下!谢谢!!!
weblogic12c 发布项目失败
我用weblogic12c发布项目总是失败,已经删除了xml-api这个jar,weblogic.xml也加了配置,还是失败,日志如下:请大神看看 Error 500--Internal Server Error org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring.xml]; nested exception is java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:613) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:514) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:582) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:233) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:190) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:175) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1730) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2740) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1704) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:781) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:212) at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:111) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:70) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:582) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:148) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:114) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:335) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:90) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:71) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391) ... 56 more
weblogic12c使用struts2上传文件失败
使用struts2开发的文件上传功能,在Tomcat6、7以及weblogic10中使用都正常,但是在weblogic12c中部署时无法在后台获取到表单中的内容。 前台表单如下: <form id="file_upload_form" method="post" enctype="multipart/form-data" action="systemmanage/videoMng_uploadFile.action"> <table width="100%"> <tr> <td>上传文件</td> <td> <input type="file" name="form.uploadfile" id="uploadFile"/> <input type="hidden" name="form.tree_node_id" value="<%=rowid %>"> </td> </tr> </table> </form> 问题表现: 在后台使用request.getParameter("form.uploadfile")获取的内容为null
项目在weblogic11g中部署成功在weblogic12c中失败?
<2019-5-6 上午10时20分40,703秒 CST> <Error> <HTTP> <BEA-101216> <Servlet: "JAX-RS/Jersey#1" failed to preload on startup in Web application: "vehicleidservice.war". java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rs/core/MultialuedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253) at java.security.AccessController.doPrivileged(Native Method) Truncated. see log file for complete stacktrace > <2019-5-6 上午10时20分40,934秒 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "95386235356465180" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.VerifyError: (lass: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rs/core/MultivaluedMap;Ljava/io/Outputtream;)V) Incompatible object argument for function call" weblogic.application.ModuleException: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/ore/MediaType;Ljavax/ws/rs/core/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) Truncated. see log file for complete stacktrace Caused By: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rscore/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253) at java.security.AccessController.doPrivileged(Native Method) Truncated. see log file for complete stacktrace > <2019-5-6 上午10时20分40,949秒 CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application "vehicleidservice" on [partition-name: DOMAIN].> <2019-5-6 上午10时20分40,975秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "vehicleidservice".> <2019-5-6 上午10时20分40,976秒 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 weblogic.application.ModuleException: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/ore/MediaType;Ljavax/ws/rs/core/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) Truncated. see log file for complete stacktrace Caused By: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rscore/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253) at java.security.AccessController.doPrivileged(Native Method) Truncated. see log file for complete stacktrace > <2019-5-6 上午10时20分41,065秒 CST> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signatue: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rs/core/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:78) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:52) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:262) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:52) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:90) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:631) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:171) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:121) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:348) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:907) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1468) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:459) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:217) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:14) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670) at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352) at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337) at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57) at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41) at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415) at weblogic.work.ExecuteThread.run(ExecuteThread.java:355) Caused by: java.lang.VerifyError: (class: org/apache/cxf/jaxrs/provider/XMLBeansJSONProvider, method: writeTo signature: (Lorg/apache/xmlbeans/XmlObject;Ljava/lang/Class;Ljava/lang/reflect/Type;[Ljava/lang/annotation/Annotation;Ljavax/ws/rs/core/MediaType;Ljavax/ws/rscore/MultivaluedMap;Ljava/io/OutputStream;)V) Incompatible object argument for function call at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:253) at java.security.AccessController.doPrivileged(Native Method) at org.glassfish.jersey.server.model.IntrospectionModeller.getAllDeclaredMethods(IntrospectionModeller.java:247) at org.glassfish.jersey.server.model.IntrospectionModeller.checkForNonPublicMethodIssues(IntrospectionModeller.java:172) at org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder(IntrospectionModeller.java:119) at org.glassfish.jersey.server.model.IntrospectionModeller.access$000(IntrospectionModeller.java:80) at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:112) at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:109) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255) at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:109) at org.glassfish.jersey.server.model.Resource.from(Resource.java:797) at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:465) at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184) at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350) at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255) at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347) at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177) at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369) at javax.servlet.GenericServlet.init(GenericServlet.java:244) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:343) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:294) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326) at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197) at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71) at weblogic.servlet.internal.StubSecurityHelper.initServletInstance(StubSecurityHelper.java:99) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:87) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:71) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:57) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:31) at weblogic.servlet.internal.ServletStubImpl.initStubLifecycleHelper(ServletStubImpl.java:673) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:612) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2064) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:2041) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1930) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3101) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1843) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:884) at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360) at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45) at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
移植到weblogic12c 集群报错
在tomcat中能云行的代码,移植到weblogic12集群中报错 ``` org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1083) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:274) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:243) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:227) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) at weblogic.work.ExecuteThread.run(ExecuteThread.java:263) ```
weblogic12c oracle10g
使用ojdbc6连10g时,报不能序列化问题。这个怎么解决呢。直接用ojdbc14.jar替换server下的ojdbc6.创建wls数据源时失败。有什么办法解决?weblogic12c(12.1) java.rmi.UnmarshalException: oracle.jdbc.driver.T4CConnection; nested exception is: ## java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:476) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272) at com.lenovo.stat.collection.SubmitInfoBean_5ry88c_EOImpl_1211_WLStub.setSubmitObj(Unknown Source) at com.lenovo.stat.collection.SubmitInfoBeanClient.setSubmitObj(SubmitInfoBeanClient.java:125) at com.lenovo.stat.collection.DataSubmit.addItem(DataSubmit.java:83) at com.lenovo.stat.pub.AbstractServletAction.runAction(AbstractServletAction.java:279) at com.lenovo.stat.pub.ServletNavigation.doServlet(ServletNavigation.java:601) at jsp_servlet._pub.__run_action._jspService(__run_action.java:102) at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284 ) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.ja va:254) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at weblogic.rmi.extensions.server.CBVOutputStream.writeObject(CBVOutputStream.java:80) at weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:280) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:193) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:461) ... 25 more
weblogic部署war项目报错java.lang.ClassNotFoundException
<Jan 17, 2018 3:44:42,621 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "621173883586108" for task "12" on [partition-name: DOMAIN]. Error is: "weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor" weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:132) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:244) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:52) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990) at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496) Truncated. see log file for complete stacktrace > <Jan 17, 2018 3:44:42,633 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "cppims2".> <Jan 17, 2018 3:44:42,633 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 weblogic.management.DeploymentException: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:132) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:244) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:52) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:65) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990) at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496) Truncated. see log file for complete stacktrace > =========================================== java.lang.ClassNotFoundException: org.springframework.beans.factory.config.BeanPostProcessor找不到这个类,但是war包里面jar中有 ![图片说明](https://img-ask.csdn.net/upload/201801/17/1516175198_716249.png) 应用使用ext+spring+servlet,之前在tomcat里一直都是正常的,现在领导要求使用weblogic,安装了weblogic12c,但是部署项目时失败,麻烦哪位大神帮忙解决一下,不胜感激
weblogic部署报错ClassNotFoundException
weblogic中部署启动服务报错java.lang.ClassNotFoundException:org.osjava.sj.SimpleContextFactory 请问什么原因?怎么解决? <ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <> <1433817193697> <BEA-101093> <A problem occurred while dispatching the servlet request. weblogic.management.DeploymentException: at weblogic.application.services.BackgroundDeploymentService$OnDemandDeployer.deploy(BackgroundDeploymentService.java:157) weblogic.servlet.internal.OnWebUriDemandDeploymentProvider$OnWebUriDemandListener.OnDemandURIAccessed(OnWebUriDemandDeploymentProvider.java:46) at weblogic.servlet.internal.OnDemandManager.loadOnDemandURI(OnDemandManager.java:113) at weblogic.servlet.internal.MuxableSocketHTTP.handleOnDemandContext(MuxableSocketHTTP.java:194) Caused By: java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
请教大神,weblogic监控应用是unknown状态,weblogic日志有报错?
最近用weblogic监控应用时发现应用是unknown状态,以下是weblogic的报错,项目里面没有报错。请大神帮忙看下? ####<Jul 19, 2018 10:21:18 AM CST> <Info> <Health> <ap-cs-1> <myapp> <weblogic.GCMonitor> <<anonymous>> <> <> <1531966878791> <BEA-310002> <96% of the total memory in the server is free> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param verbose initialized to: true> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param packagePrefix initialized to: jsp_servlet> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param compilerclass initialized to: null> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param compileCommand initialized to: javac> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param compilerval initialized to: javac> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param pageCheckSeconds initialized to: 1> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param encoding initialized to: null> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059837> <BEA-000000> <JspServlet: param superclass initialized to null> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059838> <BEA-000000> <JspServlet: param workingDir initialized to: /opt/wls10.3/domains/base_domain/servers/myapp/tmp/_WL_user/apCS/6exj0q> ####<Jul 19, 2018 10:24:19 AM CST> <Info> <ServletContext-> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1531967059838> <BEA-000000> <JspServlet: initialization complete> ####<Jul 19, 2018 10:42:05 AM CST> <Error> <HTTP> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1531968125757> <BEA-101083> <Connection failure. java.nio.channels.ClosedChannelException at weblogic.security.SSL.jsseadapter.JaApplicationWritableByteChannel.write(JaApplicationWritableByteChannel.java:55) at weblogic.security.SSL.jsseadapter.JaApplicationOutputStream.write(JaApplicationOutputStream.java:64) at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:507) at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:486) at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382) at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:313) at weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:174) at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:111) at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:456) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1506) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1455) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) > ####<Jul 19, 2018 10:42:05 AM CST> <Error> <HTTP> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1531968125759> <BEA-101104> <Servlet execution in servlet context "ServletContext@25538827[app:apCS module:apCS path: spec-version:2.5]" failed, java.nio.channels.ClosedChannelException. java.nio.channels.ClosedChannelException at weblogic.security.SSL.jsseadapter.JaApplicationWritableByteChannel.write(JaApplicationWritableByteChannel.java:55) at weblogic.security.SSL.jsseadapter.JaApplicationOutputStream.write(JaApplicationOutputStream.java:64) at weblogic.servlet.internal.ChunkOutput.writeChunkTransfer(ChunkOutput.java:507) at weblogic.servlet.internal.ChunkOutput.writeChunks(ChunkOutput.java:486) at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:382) at weblogic.servlet.internal.CharsetChunkOutput.flush(CharsetChunkOutput.java:313) at weblogic.servlet.internal.ChunkOutputWrapper.flush(ChunkOutputWrapper.java:174) at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:111) at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:456) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1506) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1455) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) > ####<Jul 19, 2018 11:05:54 AM CST> <Error> <HTTP> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1531969554940> <BEA-101083> <Connection failure. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '8353' bytes instead of stated: '12029' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:422) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1431) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1505) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1455) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) > ####<Jul 19, 2018 11:05:54 AM CST> <Error> <HTTP> <ap-cs-1> <myapp> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1531969554941> <BEA-101104> <Servlet execution in servlet context "ServletContext@25538827[app:apCS module:apCS path: spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '8353' bytes instead of stated: '12029' bytes.. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '8353' bytes instead of stated: '12029' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:422) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1431) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1505) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1455) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) > ####<Jul 19, 2018 11:20:01 AM CST> <Notice> <WebLogicServer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401435> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now> ####<Jul 19, 2018 11:20:01 AM CST> <Alert> <WebLogicServer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401436> <BEA-000396> <Server shutdown has been requested by <WLS Kernel>> ####<Jul 19, 2018 11:20:01 AM CST> <Notice> <WebLogicServer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401437> <BEA-000365> <Server state changed to FORCE_SUSPENDING> ####<Jul 19, 2018 11:20:01 AM CST> <Info> <Deployer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401442> <BEA-149059> <Module apCS of application apCS is transitioning from STATE_ACTIVE to STATE_ADMIN on server myapp.> ####<Jul 19, 2018 11:20:01 AM CST> <Info> <Deployer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401444> <BEA-149060> <Module apCS of application apCS successfully transitioned from STATE_ACTIVE to STATE_ADMIN on server myapp.> ####<Jul 19, 2018 11:20:01 AM CST> <Notice> <WebLogicServer> <ap-cs-1> <myapp> <Thread-1> <<WLS Kernel>> <> <> <1531970401449> <BEA-000365> <Server state changed to ADMIN>
weblogic部署异常,weblogic.management.DeploymentException
<Failed to initialize the application 'bea_wls9_async_response' due to error weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'bea_wls9_async_response.war'. Two port in the AsyncResponseService(WebserviceDescriptionBean) has the same name {http://www.bea.com/async/AsyncResponseService}AsyncResponseServicePortTypePort. . weblogic.management.DeploymentException: Error encountered during prepare phase of deploying WebService module 'bea_wls9_async_response.war'. Two port in the AsyncResponseService(WebserviceDescriptionBean) has the same name {http://www.bea.com/async/AsyncResponseService}AsyncResponseServicePortTypePort. at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:149) at weblogic.wsee.deploy.AppDeploymentExtensionFactory.prepare(AppDeploymentExtensionFactory.java:79) at weblogic.wsee.deploy.AppDeploymentExtensionFactory.access$100(AppDeploymentExtensionFactory.java:15) at weblogic.wsee.deploy.AppDeploymentExtensionFactory$1.prepare(AppDeploymentExtensionFactory.java:219) at weblogic.application.internal.flow.AppDeploymentExtensionFlow.prepare(AppDeploymentExtensionFlow.java:23) Truncated. see log file for complete stacktrace Caused By: weblogic.wsee.ws.WsException: Two port in the AsyncResponseService(WebserviceDescriptionBean) has the same name {http://www.bea.com/async/AsyncResponseService}AsyncResponseServicePortTypePort. at weblogic.wsee.deploy.WSEEAnnotationProcessor.checkWsdlPortNames(WSEEAnnotationProcessor.java:143) at weblogic.wsee.deploy.WSEEAnnotationProcessor.process(WSEEAnnotationProcessor.java:133) at weblogic.wsee.deploy.WSEEAnnotationProcessor.process(WSEEAnnotationProcessor.java:52) at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:111) at weblogic.wsee.deploy.AppDeploymentExtensionFactory.prepare(AppDeploymentExtensionFactory.java:79) Truncated. see log file for complete stacktrace >
weblogic部署问题,一直报错
部署出来的问题 ``` weblogic.application.ModuleException: at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:672) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused By: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators] at weblogic.security.service.SecurityServiceManager.seal(SecurityServiceManager.java:833) at weblogic.security.service.SecurityServiceManager.getSealedSubjectFromWire(SecurityServiceManager.java:522) at weblogic.rjvm.MsgAbbrevInputStream.getSubject(MsgAbbrevInputStream.java:352) at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:351) at weblogic.rmi.cluster.ClusterableServerRef.dispatch(ClusterableServerRef.java:243) at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1023) at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:240) at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:888) at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:330) at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:386) at weblogic.socket.EPollSocketMuxer.dataReceived(EPollSocketMuxer.java:215) at weblogic.socket.EPollSocketMuxer.processSockets(EPollSocketMuxer.java:177) at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:43) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117) > ```
weblogic启动报错java.lang.NoClassDefFoundError: weblogic/security/SecurityLogger
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/security/SecurityLogger at weblogic.security.utils.SecurityUtils.turnOffCryptoJDefaultJCEVerification(SecurityUtils.java:81) at weblogic.Server.main(Server.java:67) Caused by: java.lang.ClassNotFoundException: weblogic.security.SecurityLogger at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(Class Loader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 2 more
weblogic 12 web项目部署问题
错误内容 java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory 求大神解答 错误日志 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at org.hibernate.validator.internal.xml.XmlParserHelper.<init>(XmlParserHelper.java:66) at org.hibernate.validator.internal.xml.ValidationXmlParser.<init>(ValidationXmlParser.java:60) at org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration(ConfigurationImpl.java:287) at org.hibernate.validator.internal.engine.ConfigurationImpl.parseValidationXml(ConfigurationImpl.java:361) Truncated. see log file for complete stacktrace > <Jan 22, 2018 5:29:42 PM CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "zgsxf". weblogic.application.ModuleException: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:216) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:211) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) at org.hibernate.validator.internal.xml.XmlParserHelper.<init>(XmlParserHelper.java:66) at org.hibernate.validator.internal.xml.ValidationXmlParser.<init>(ValidationXmlParser.java:60) at org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration(ConfigurationImpl.java:287) at org.hibernate.validator.internal.engine.ConfigurationImpl.parseValidationXml(ConfigurationImpl.java:361) Truncated. see log file for complete stacktrace
weblogic 12 套字节复用器 weblogic.socket.Muxer 总是占着CPU执行不完。
这段总是占着CPU。 可以加我微信15880877678 才能发详细日记 "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" id=353 idx=0x580 tid=3128 prio=5 alive, native_blocked, daemon at weblogic/socket/NTSocketMuxer.copyData([BIIII)V(Native Method) at weblogic/socket/NTSocketMuxer.copyDataFromNativeBuffer(NTSocketMuxer.java:148)[optimized] at weblogic/socket/NTSocketMuxer.processSockets(NTSocketMuxer.java:99) at weblogic/socket/SocketReaderRequest.run(SocketReaderRequest.java:29) at weblogic/socket/SocketReaderRequest.execute(SocketReaderRequest.java:42) at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:147)
130 个相见恨晚的超实用网站,一次性分享出来
相见恨晚的超实用网站 持续更新中。。。
我花了一夜用数据结构给女朋友写个H5走迷宫游戏
起因 又到深夜了,我按照以往在csdn和公众号写着数据结构!这占用了我大量的时间!我的超越妹妹严重缺乏陪伴而 怨气满满! 而女朋友时常埋怨,认为数据结构这么抽象难懂的东西没啥作用,常会问道:天天写这玩意,有啥作用。而我答道:能干事情多了,比如写个迷宫小游戏啥的! 当我码完字准备睡觉时:写不好别睡觉! 分析 如果用数据结构与算法造出东西来呢? ...
字节跳动视频编解码面经
三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时想着能进去就不错了,管他哪个岗呢,就同意了面试...
win10系统安装教程(U盘PE+UEFI安装)
一、准备工作 u盘,电脑一台,win10原版镜像(msdn官网) 二、下载wepe工具箱 极力推荐微pe(微pe官方下载) 下载64位的win10 pe,使用工具箱制作启动U盘打开软件, 选择安装到U盘(按照操作无需更改) 三、重启进入pe系统 1、关机后,将U盘插入电脑 2、按下电源后,按住F12进入启动项选择(技嘉主板是F12) 选择需要启...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
HAL 硬件抽象层介绍
和你一起终身学习,这里是程序员Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:和你一起终身学习,这里是程序员 Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:一、HAL 概述一、HAL 概述HAL定义了供硬件供应商实施的标准接口,该接口使Android无需考虑底层驱动程序的实现。使用HA...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
致 Python 初学者们!
作者| 许向武 责编 | 屠敏 出品 | CSDN 博客 前言 在 Python 进阶的过程中,相信很多同学应该大致上学习了很多 Python 的基础知识,也正在努力成长。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 Python 这门编程语言,从2009年开始单一使用 Python 应对所有的开发工作,直至今...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
使用 Angular 打造微前端架构的 ToB 企业级应用
这篇文章其实已经准备了11个月了,因为虽然我们年初就开始使用 Angular 的微前端架构,但是产品一直没有正式发布,无法通过生产环境实践验证可行性,11月16日我们的产品正式灰度发布,所以是时候分享一下我们在使用 Angular 微前端这条路上的心得(踩过的坑)了额,希望和 Angular 社区一起成长一起进步,如果你对微前端有一定的了解并且已经在项目中尝试了可以忽略前面的章节。 什么是微前...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
拿下微软、Google、Adobe,印度为何盛产科技圈 CEO?
作者 | 胡巍巍 出品 | CSDN(ID:CSDNnews) 世界500强中,30%的掌舵人,都是印度人。 是的,你没看错。这是近日《哈佛商业评论》的研究结果。 其中又以微软CEO萨提亚·纳德拉(Satya Nadella)、和谷歌CEO桑达尔·皮查伊(Sundar Pichai,以下简称劈柴)最为出名。 微软CEO萨提亚·纳德拉(Satya Nadella) 其他著名印度...
Linux(内核剖析):19---中断总体概述
一、为什么要引入中断? 任何操作系统内核的核心任务,都包含有对连接到计算机上的硬件设备进行有效管理,如硬盘、蓝光碟机、键盘、鼠标、3D 处理器,以及无线电等。而想要管理这些设备,首先要能和它们互通音信才行。众所周知,处理器的速度跟外围硬件设备的速度往往不在一个数量级上,因此,如果内核采取让处理器向硬件发出一个请求,然后专门等待回应的办法,显然差强人意。既然硬件的响应这么慢,那么内核就应该在此期间...
程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
深度学习笔记------卷积神经网络
深度学习笔记------卷积神经网络
一文带你入门Linux
文章目录1.1 Linux的概述:1.1.1 什么是Linux:1.1.1.1 学习Linux之前先了解Unix1.1.1.2 Linux的概述:1.1.1.3 Linux的历史:1.1.1.4 Linux系统的应用:1.1.1.5 Linux的版本1.1.1.6 Linux的主流版本1.2 Linux的安装:1.2.1 虚拟机安装:1.2.1.1 什么是虚拟机1.2.1.2 安装VmWare1....
普通三本毕业,我怎么一路艰辛进入阿里的
英雄不问出处? 自古以来就有这样一句话,真的英雄不问出处吗?这句话太挫了。普通三本院校的我,大四的时候居然都不知道什么是校招,所以出处太重要了。这也是没有机会参加阿里校招的原因,毕竟校招门槛比社招还是要低的,最重要的是校招进入阿里能让你的起点比别人更高。 有幸可以社招进入阿里,了解了校招的思路,赶紧介绍给学弟们,现在我们三本院校的小学弟今年居然有 3 个人通过了阿里的校招。下面我也把这份宝贵的经...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
强烈推荐10本程序员在家读的书
很遗憾,这个春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终将会...
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。
疫情数据接口api
返回json示例 { "errcode":0,//0标识接口正常 "data":{ "date":"2020-01-30 07:47:23",//实时更新时间 "diagnosed":7736,//确诊人数 "suspect":12167,//疑是病例人数 "death":170,//死亡人数 "cur...
智力题(程序员面试经典)
NO.1  有20瓶药丸,其中19瓶装有1克/粒的药丸,余下一瓶装有1.1克/粒的药丸。给你一台称重精准的天平,怎么找出比较重的那瓶药丸?天平只能用一次。 解法 有时候,严格的限制条件有可能反倒是解题的线索。在这个问题中,限制条件是天平只能用一次。 因为天平只能用一次,我们也得以知道一个有趣的事实:一次必须同时称很多药丸,其实更准确地说,是必须从19瓶拿出药丸进行称重。否则,如果跳过两瓶或更多瓶药...
疫情防控,开发者集结出战!
作者 | 屠敏出品 | CSDN(ID:CSDNnews)2020 年伊始,病毒肆虐,人心惶惶。截止北京时间 1 月 31 日 15 时 30 分,全国确诊新型冠状病毒肺炎的数字已达到了...
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
立即提问